US20210064448A1 - Utilizing source context and classification in a copy operation - Google Patents

Utilizing source context and classification in a copy operation Download PDF

Info

Publication number
US20210064448A1
US20210064448A1 US16/554,091 US201916554091A US2021064448A1 US 20210064448 A1 US20210064448 A1 US 20210064448A1 US 201916554091 A US201916554091 A US 201916554091A US 2021064448 A1 US2021064448 A1 US 2021064448A1
Authority
US
United States
Prior art keywords
selected content
document
information
processors
program instructions
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
US16/554,091
Other versions
US10956239B1 (en
Inventor
Nadiya Kochura
Anh Uong
Daniel Manning
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
International Business Machines Corp
Original Assignee
International Business Machines Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by International Business Machines Corp filed Critical International Business Machines Corp
Priority to US16/554,091 priority Critical patent/US10956239B1/en
Assigned to INTERNATIONAL BUSINESS MACHINES CORPORATION reassignment INTERNATIONAL BUSINESS MACHINES CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: MANNING, DANIEL, KOCHURA, NADIYA, UONG, ANH
Publication of US20210064448A1 publication Critical patent/US20210064448A1/en
Application granted granted Critical
Publication of US10956239B1 publication Critical patent/US10956239B1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • G06F16/355Class or cluster creation or modification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/93Document management systems
    • G06F17/24
    • G06F17/27
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Definitions

  • the present invention relates generally to the field of content management, and more particularly to augmenting a copy operation with contextual information from a source.
  • Cut, copy and paste are related commands that offer an inter-process communication technique for transferring data through a computer's user interface.
  • the cut command removes the selected data from its original position, while the copy command creates a duplicate; in both cases the selected data is kept in a temporary storage device called the clipboard (i.e., a copy/paste buffer or cache).
  • the data in the clipboard is later inserted in the position where the paste command is issued.
  • the data is available to any application supporting the feature, thus allowing easy data transfer between applications.
  • the clipboard is a buffer that some operating systems provide for short-term storage and transfer within and between application programs.
  • the clipboard is usually temporary and unnamed, and its contents reside in the computer's random-access memory (RAM).
  • the clipboard is sometimes called the paste buffer or the copy/paste buffer.
  • the method includes one or more processors determining that a user provides input selecting content, within a document, and input adding the selected content to a clipboard.
  • the method further includes one or more processors determining a classification of the selected content based on analyzing the selected content and the document utilizing Natural Language Processing (NLP).
  • NLP Natural Language Processing
  • the method further includes one or more processors extracting information associated with the selected content from the document based on the determined classification.
  • the method further includes one or more processors updating the clipboard with the selected content and the extracted information.
  • the method further includes in response to receiving a request from the user to initiate a paste operation to a target location, one or more processors pasting the selected content and the extracted information from the clipboard to the target location.
  • FIG. 1 is a functional block diagram of a data processing environment, in accordance with an embodiment of the present invention.
  • FIG. 2 is a flowchart depicting operational steps of a program for augmenting a copy operation with contextual information from a source, in accordance with an embodiment of the present invention.
  • FIG. 3 depicts a block diagram of components of a computing system representative of the client devices and server of FIG. 1 , in accordance with an embodiment of the present invention.
  • Embodiments of the present invention allow for an intelligent system for enhancing the copying and pasting of information.
  • Embodiments of the present invention can analyze content that is copied to a clipboard to identify contextual attributes that are associated with the data.
  • embodiments of the present invention identify that an author of source content provides a citation link for use when the content is copied and shared. Accordingly, embodiments of the present invention can identify the author preference, extract relevant information (e.g., as metadata) from the source content, and include the extracted information in the clipboard (i.e., copy/paste buffer).
  • embodiments of the present invention automatically augment the target location (e.g., target document) with the extracted information and additional information based on a classification of the source and/or target.
  • Some embodiments of the present invention recognize that copying information is a common and effective method for creating and updating electronic documents. However, during the copying of information, the original context can be lost, which can result in improper, incomplete, or misleading usage of the copied information. Embodiments of the present invention recognize the benefits of a system that can transfer contextual information during a copy/paste operation.
  • Various embodiments of the present invention provide advantages, which include providing a system that preserves information context during a copy/paste operation. Additional embodiments of the present invention apply transformation rule during copy/paste operations to ensure the information context is replicated at the target location.
  • Embodiments of the present invention also provide advantages of learning the association between content categories and context attributes or context entities. Accordingly, embodiments of the present invention can apply the associations and classifications at runtime, to identify and extract context attributes from the source document and including the extracted information in the clipboard during the copy/paste operation. Further embodiments of the present invention provide an additional advantage of utilizing machine learning and natural language processing (NLP) to classify the source document and utilize the classification to determine which context attributes to extract and include in the clipboard or copy/paste buffer.
  • NLP machine learning and natural language processing
  • FIG. 1 is a functional block diagram illustrating a distributed data processing environment, generally designated 100 , in accordance with one embodiment of the present invention.
  • FIG. 1 provides only an illustration of one implementation and does not imply any limitations with regard to the environments in which different embodiments may be implemented. Many modifications to the depicted environment may be made by those skilled in the art without departing from the scope of the invention as recited by the claims.
  • An embodiment of data processing environment 100 includes client device 110 , client device 120 , source document 130 , target location 140 , and server 150 , all interconnected over network 105 .
  • an individual utilizing client device 110 is an author of content included in source document 130 and an individual utilizing client device 120 selects the authored content from source document for a copy operation (e.g., to target location 140 ).
  • server 150 provides services (e.g., classification module 152 and copy program 200 ) to enhance the copy operation with contextual information associated with the authored content, in accordance with various embodiments of the present invention.
  • Network 105 can be, for example, a local area network (LAN), a telecommunications network, a wide area network (WAN), such as the Internet, or any combination of the three, and include wired, wireless, or fiber optic connections.
  • network 105 can be any combination of connections and protocols that will support communications between client device 110 , client device 120 , source document 130 , target location 140 , and server 150 , in accordance with embodiments of the present invention.
  • network 105 facilitates communication among a plurality of networked computing devices (e.g., client device 110 and client device 120 ), corresponding users (e.g., an individual utilizing client device 110 and/or client device 120 ), data sources (e.g., source document 130 , target location 140 ) and corresponding management services (e.g., server 150 ).
  • client device 110 and client device 120 a plurality of networked computing devices
  • users e.g., an individual utilizing client device 110 and/or client device 120
  • data sources e.g., source document 130 , target location 140
  • management services e.g., server 150
  • client device 110 and client device 120 may be a workstation, personal computer, personal digital assistant, mobile phone, or any other device capable of executing computer readable program instructions, in accordance with embodiments of the present invention.
  • client device 110 and client device 120 are representative of any electronic device or combination of electronic devices capable of executing computer readable program instructions.
  • Client device 110 and client device 120 may include components as depicted and described in further detail with respect to FIG. 3 , in accordance with embodiments of the present invention.
  • client device 110 and client device 120 are smart devices, such as a smartphone, a smart watch, etc.
  • Client device 110 includes user interface 112 and application 114 .
  • User interface 112 is a program that provides an interface between a user of client device 110 and a plurality of applications that reside on the computing device (e.g., application 114 ).
  • a user interface such as user interface 112 , refers to the information (such as graphic, text, and sound) that a program presents to a user, and the control sequences the user employs to control the program.
  • user interface 112 is a graphical user interface.
  • GUI graphical user interface
  • GUIs are types of user interface that allows users to interact with electronic devices, such as a computer keyboard and mouse, through graphical icons and visual indicators, such as secondary notation, as opposed to text-based interfaces, typed command labels, or text navigation.
  • GUIs were introduced in reaction to the perceived steep learning curve of command-line interfaces which require commands to be typed on the keyboard. The actions in GUIs are often performed through direct manipulation of the graphical elements.
  • user interface 112 is a script or application programming interface (API).
  • Application 114 can be representative of one or more applications (e.g., an application suite) that operate on client device 110 .
  • application 114 is a client-side application of an enterprise associated with server 150 and source document 130 .
  • application 114 is a web browser that an individual utilizing client device 110 utilizes (e.g., via user interface 112 ) to access and provide information over network 105 , such as providing information (e.g., code) to source document 130 , defining code use parameters and preferences to server 150 , etc.
  • application 114 can be representative of applications that provide additional functionality (e.g., camera, messaging, etc.), in accordance with various aspects of the present invention.
  • client device 120 includes user interface 122 , application 124 , and clipboard 126 .
  • the respective instances of user interface 122 and application 124 include functionality as described above, with regard to respective instances of user interface 112 and application 114 .
  • client device 110 and client device 120 are personal computing devices, where a user of client device 110 is an author of code included in source document 130 and a user of client device 120 is copying the code (provided by the user of client device 110 ) in source document 130 .
  • Clipboard 126 is a buffer (i.e., a copy/paste buffer) that client device 120 utilizes for storing data for transfer within or between applications or sources.
  • client device 120 hosts clipboard 126 in random-access memory (RAM).
  • clipboard 126 include information that a user of client device 120 has selected for copying.
  • clipboard 126 include the information that the user of client device 120 has selected for copying and additional information that server 150 (e.g., via classification module 152 and copy program 200 ) indicates to associate with the copied information.
  • clipboard 126 in response to a user of client device 120 selecting to copy a code snippet from source document 130 , clipboard 126 includes a copy of the selected code snippet and associated attribution information, which can be defined by the author of the code snippet (e.g., a user of client device 110 ).
  • clipboard 126 can be hosted on server 150 and/or client device 120 can replicate clipboard 126 on server 150 .
  • client device 120 can replicate information in clipboard 126 to a corresponding location on server 150 (e.g., in database 154 ).
  • source document 130 is an exemplary depiction of a location or entity that includes information that is copied in a copy/paste operation (e.g., by a user of client device 120 ).
  • source document 130 is a webpage that includes code snippets, source code, text, etc.
  • source document 130 is a text document that is hosted and accessible via network 105 , which includes text information and associated metadata.
  • an author of content in source document 130 can define that if a portion of content is copied, the copy/paste operation will also include specified information.
  • source document 130 For example, a user of client device 110 posts a code snippet to source document 130 and defines (e.g., tag) that if the code snippet is included in a copy/paste operation, then an author citation is also included in the clipboard.
  • source document 130 includes the user preference and definition as metadata tags associated with the code snippet.
  • source document 130 can be a webpage, text document, file, application, repository, or location accessible over network 105 (e.g., to server 150 ).
  • Target location 140 is an exemplary depiction of one or more locations that correspond to a destination for content in a copy/paste operation. For example, a user of client device 120 copies a code snippet from source document 130 to paste the code snippet to target location 140 .
  • target location 140 can be a webpage, text document, file, application, repository, or location accessible over network 105 (e.g., to server 150 ).
  • server 150 can be a desktop computer, a computer server, or any other computer systems, known in the art.
  • server 150 represents computer systems utilizing clustered computers and components (e.g., database server computers, application server computers, etc.) that act as a single pool of seamless resources when accessed by elements of data processing environment 100 (e.g., client device 110 , client device 120 , source document 130 , and target location 140 ).
  • server 150 is representative of any electronic device or combination of electronic devices capable of executing computer readable program instructions.
  • Server 150 may include components as depicted and described in further detail with respect to FIG. 3 , in accordance with embodiments of the present invention.
  • Server 150 includes classification module 152 , copy program 200 , and database 154 .
  • server 150 operates to manage copy and paste operations associated with one or more users (e.g., client device 110 and client device 120 ), one or more data sources/locations (e.g., source document 130 and target location 140 ), or a combination thereof.
  • server 150 utilizes (in conjunction with copy program 200 ) classification module 152 to analyze sources and destinations of content (e.g., source document 130 and target location 140 ) to determine classifications that identify types and categories associated with the respective content location.
  • Classification module 152 can employ a variety of techniques to classify content, such as but not limited to, NLP classification of text, machine learning, Topic Model networks, Zero-shot learning, linguistic analysis image analysis and classification.
  • classification module 152 operates during a copy/paste operation at runtime to determine and assign tags that correspond to the type and category of content in the copy/paste operation.
  • classification module 152 in response to a user selecting content for a copy/paste operation, classification module 152 can identify a type and category of the selected content and the location of the selected content (e.g., based on a context of source document 130 ). For example, classification module can classify selected content into one of a plurality of categories/types, such as confidential, programming code, opinion, medical information, financial information, etc.
  • copy program 200 augments a copy operation with contextual information from a source, in accordance with an embodiment of the present invention.
  • server 150 can utilize copy program 200 in combination with classification module to classify content as a certain category or type and learn context attributes or entities that are associated with content categories/types.
  • Copy program 200 can extract information from a source of content (e.g., entity values associated with a category), such as source document 130 , and include the extracted information in a copy/paste buffer (e.g., clipboard 126 ). Accordingly, server 150 can utilize copy program 200 to preserve the original informational context of content that is copied from one location to another (e.g., from source document 13 to target location 140 ).
  • server 150 includes information associated with registered users (e.g., in database 154 ) and utilizes information associated with registered users of the content classification and attribution system of server 150 (via copy program 200 ). For example, an individual utilizing client device 120 completes a registration process, provides information, and authorizes the collection and analysis (i.e., opts-in) of relevant data, by server 150 (e.g., via copy program 200 ). In various embodiments, a user can opt-in or opt-out of certain categories of data collection. In addition, an author user (e.g., a user of client device 110 ) can indicate that particular content cannot be copied (e.g., block inclusion in a copy/paste operation).
  • Database 154 can be implemented with any type of storage device, for example, persistent storage 305 , which is capable of storing data that may be accessed and utilized by server 150 , client device 110 , and client device 120 , such as a database server, a hard disk drive, or a flash memory. In other embodiments, database 154 can represent multiple storage devices and collections of data within server 150 . In various embodiments, database 154 includes information that copy program 200 can access and utilize, in accordance with embodiments of the present invention.
  • persistent storage 305 which is capable of storing data that may be accessed and utilized by server 150 , client device 110 , and client device 120 , such as a database server, a hard disk drive, or a flash memory.
  • database 154 can represent multiple storage devices and collections of data within server 150 .
  • database 154 includes information that copy program 200 can access and utilize, in accordance with embodiments of the present invention.
  • database 154 includes content tags that are defined and applied by authors of content. For example, a content creator (e.g., a user of client device 110 ) associated with a code snippet on source document 130 defines that if the code snippet is to be used externally, then a citation should be applied. In this example, database 154 includes the citation tag associated with the code snippet and the content creator, along with associated attribution information. In additional embodiments, database 154 includes content category and context attribute mapping information, which copy program 200 can utilize and update. For example, database 154 includes mapped associations between content categories and context attributes (e.g., based in information from classification module 152 ). In various embodiments, copy program 200 can analyze a user's pattern when copying and pasting content to determine whether a particular category of copied content correlates to a target location.
  • a content creator e.g., a user of client device 110
  • database 154 includes the citation tag associated with the code snippet and the content creator, along with associated attribution information.
  • database 154 includes mapping information that indicates which types of information (e.g., attributes) that copy program 200 should extract based on a classification of content or source location. For example, database 154 includes an indication that for a code snippet in source document 130 , copy program should at least extract a source citation and contact information. In an additional aspect, database 154 can also include mapped associations that are based on user preferences, such as an author's defined tags or preferences for authored content.
  • FIG. 2 is a flowchart depicting operational steps of copy program 200 , a program for augmenting a copy operation with contextual information from a source, in accordance with an embodiment of the present invention.
  • copy program 200 initiates in response to a user initiating a copy operation (e.g., a user, via a device accessible over network 105 , selecting content and providing a command to copy).
  • copy program 200 initiates in response to a user accessing a document (e.g., a user, via a device accessible over network 105 , accesses a document).
  • copy program 200 operates as a background process while a user is accessing an application, such as application 124 or application 114 .
  • copy program 200 identifies a user accessing a document.
  • copy program 200 identifies that a user of client device 120 is accessing source document 130 .
  • copy program 200 is monitoring a webpage (i.e., source document 130 ), which has registered and authorized monitoring, for indications of access and initiation of copy operations on included content (e.g., text, code snippets, images, etc.).
  • copy program 200 identifies that a user (e.g., of client device 120 ) accesses the webpage.
  • copy program 200 determines that the user is making a selection to copy.
  • copy program 200 determines that the user (identified in step 202 ) has made a selection of content within source document 130 and has provided input initiating a copy operation.
  • copy program 200 determines that the user of client device 120 , while accessing source document 130 , provides input (e.g., via user interface 122 ) selecting a code snippet and input initiating a copy operation (e.g., requesting to add content to clipboard 126 ).
  • copy program 200 identifies the initiation of a copy operation at runtime, to employ the processing of copy program 200 during runtime of a copy/paste operation.
  • copy program 200 identifies metadata associated with the selected content.
  • copy program 200 identifies metadata that is associated with selected content for the copy operation (from step 204 ) and the source of the selected content (e.g., source document 130 , identified in step 202 ).
  • Copy program 200 can identify metadata that is included in the source of the copied content (e.g., metadata embedded in source document 130 ).
  • copy program 200 can identify metadata that is stored in database 154 and associated with the source of the copied content.
  • database 154 can store metadata associated with source document 130 , metadata associated with the author of the copied content and/or source document 130 (e.g., a user of client device 110 ), metadata associated with the user that is selecting the content to copy (e.g., a user of client device 120 ), etc.
  • copy program 200 identifies metadata that indicates attributes, entities, and context of the selected content.
  • copy program 200 analyzes the selected content and source document 130 to identify metadata.
  • copy program 200 identifies metadata (and other relevant information) that is stored in database 154 and associated with source document 130 , the selected content, the author, or a combination thereof.
  • the identified metadata and information can include metadata indicating the author, tags that the author applied to the selected content and source document 130 , content usage guidelines associated with source document 130 and the selected content, attributes of source document 130 and the selected content, comments, descriptive metadata providing information associated with source document 130 and the selected content, defined preferences and/or default preferences (e.g., a baseline, or user-defined, amount and definition of contextual information), etc.
  • the metadata tags can correspond to citation information (e.g., provide citation if used externally, indications of references to provide, etc.), whether content can be included in a copy/paste operation (e.g., locked content), category tags, attribute tags, contact information for an author, etc.
  • citation information e.g., provide citation if used externally, indications of references to provide, etc.
  • content can be included in a copy/paste operation (e.g., locked content)
  • category tags e.g., attribute tags, contact information for an author, etc.
  • copy program 200 analyzes the content usage guidelines of a website (e.g., source document 130 ) and identifies defined guidelines and preferences for sharing content that appears on the webpage.
  • the content usage guidelines of the website dictate that a user can copy and reproduce content from the website (e.g., images, program code, infographics, videos, documents, etc.), as long as the user provides a citation of the website and a link to the website.
  • copy program 200 in response to the user indicating intent to copy content from the website (e.g., user selecting to copy program code from source document 130 ), copy program 200 associated the content usage guidelines information with the copy/paste operation.
  • copy program 200 determines a classification of the selected content.
  • copy program 200 utilizes classification module 132 to analyze selected content for the copy operation (from step 204 ) and the source of the selected content (e.g., source document 130 , identified in step 202 ) to determine one or more classifications.
  • copy program 200 leverages the NLP and machine learning capabilities of classification module 152 to determine classification(s) of the selected content and source document 130 .
  • copy program 200 can determine one or more classifications associated with the selected content that indicate a type and/or category of content, such as program code, product information, confidential, medical information, historical information, educational information, personal information, financial information, etc.
  • copy program 200 can also determine a classification of the source location of the content selected for copy (e.g., source document 130 ).
  • copy program 200 utilizing classification module 152 , analyzes an image that is selected to copy (in step 202 ).
  • copy program 200 classifies the image as a medical information, based on an image classification analysis and an analysis of source document 130 (and associated metadata from step 206 ).
  • copy program 200 At runtime of a copy/paste operation (e.g., initiated in step 204 ), utilizes classification module to analyze the context of the selected content in source document 130 and classify the selected content into a predefined category and/or type.
  • copy program 200 utilizing classification module 152 , classifies the content that the user is selecting to copy (in step 204 ) as being program code.
  • copy program 200 determines a classification of the target location.
  • copy program 200 utilizes classification module 152 to analyze an indicated target location for the copy/paste operation (i.e., a paste location, such as target location 140 ) to determine one or more classifications.
  • an indicated target location for the copy/paste operation i.e., a paste location, such as target location 140
  • copy program 200 can proceed to step 212 .
  • copy program 200 can utilize processes and techniques discussed previously with regard to step 208 to determine a classification (e.g., type and/or category) of target location 140 ).
  • copy program 200 identifies a predetermined ruleset (e.g., in database 154 ) that is associated with a classification of one or more of the user initiating the copy/paste operation, the selected content, source document 130 , target location 140 .
  • a predetermined ruleset e.g., in database 154
  • copy program 200 can analyze user behavior in copy/paste operations to determine information associated with a copy/paste operation to target location 140 .
  • copy program 200 analyzes actions of a user while the user repeatedly copies and pastes semantically similar content, followed by copying and pasting content with similar attributes. For example, a user is preparing a report about vegetation in a certain region and reviews multiple sources of information. Then the user performs multiple sequential copy/paste operations of descriptions of plants from the multiple sources.
  • copy program 200 determines a classification of the plant description content (e.g., determining attributes), stores the classification association, with the ability to apply the classification association a next time that the user copies data associated with the plants.
  • copy program 200 extracts information associated with the selected content.
  • copy program 200 utilizes information from steps 206 , 208 , and 210 to determine which information to extract.
  • copy program 200 operates to extract the information at runtime of the copy/paste operation.
  • copy program 200 stores a mapping of information (e.g., a mapping of content types/categories and corresponding attributes) in database 154 for later use.
  • copy program 200 utilizes determined classifications (e.g., categories and types of content) to access database 154 to determine which attributes are mapped to the determined classifications.
  • Copy program 200 can utilize the mapping information to determine which attributes of source document 130 to extract, such as author contact/attribution information, website citation, etc.
  • copy program 200 (in step 206 ) identifies metadata associated with the selected content (from step 204 ) that includes a tag from an author indicating to cite the author when copying the selected content.
  • copy program 200 based on (in step 208 ) an analysis of the selected content or the copy/paste operation and source document 130 , determines a classification of “program code” for the selected content.
  • copy program 200 extracts author citation information (e.g., social media contact information) and attributes from source document 130 that correspond to the “program code” classification (e.g., based on mapped associations in database 154 ).
  • copy program 200 extracts information attributes that are related to program code (per database 154 ), such as an author citation, a citation of source document 130 , usage guidelines, link to support documentation, etc.
  • copy program 200 (in step 208 ) analyzes an image included in the selected content and classifies the image as a “medical information,” based on an image classification analysis and an analysis of source document 130 .
  • copy program 200 determines that the classification of “medical information” is associated with required attributes of “data” and “time.” Accordingly, copy program 200 extracts date and time information from source document 130 (step 212 ).
  • copy program 200 can utilize user behavior information (from step 210 ) to determine which information to extract.
  • copy program 200 utilizes entity recognition to extract entities from text based on pattern matching, linguistics, syntax, semantics, machine learning, or a combination thereof.
  • Copy program 200 can extract attributes and entities based on a mapping of content categories to context attributes (e.g., in database 154 ) to extract entities and attributes that are relevant to a content type or category, based on a classification.
  • copy program 200 updates the clipboard with the extracted information associated with the selected content.
  • copy program 200 updates clipboard 126 to include the selected content (from step 204 ) and the extracted information associated with the selected content (from step 212 ).
  • copy program 200 can update the clipboard with at least a defined baseline of information (e.g., metadata indicating that the content was copied, metadata indicating the source, etc.).
  • copy program 200 can update the clipboard with the extracted information as metadata that is included with and associated with the selected content in a paste operation, additional text or content included in a paste operation, etc.
  • copy program 200 updates the copy/paste buffer (e.g., temporary storage) of clipboard 126 with information extracted in step 212 .
  • copy program 200 receives a request to paste to the target location.
  • copy program 200 subsequent to determining that a user is selecting content to copy (in step 204 ), receives a request from the user to paste the copied content to target location 140 .
  • copy program 200 receives the paste request via user input into user interface 122 of client device 120 to paste content to target location 140 , indicating a location within target location 140 .
  • copy program 200 pastes the selected content and associated information from the clipboard.
  • copy program 200 pastes the selected content (from step 204 ) and associated information (extracted in step 212 and utilized to update the clipboard in step 214 ) from clipboard 126 to target location 140 .
  • copy program 200 applies corresponding transformation rules during the copy/paste operation to ensure that the information content is replicated to the destination (e.g., for the copied content and associated information).
  • Copy program 200 can paste copied content along with the extracted content from the clipboard as additional text, as associated metadata, or a combination thereof.
  • Embodiments of the present invention provide a system (e.g., through use of copy program 200 ) that utilizes machine learning to classify a source document and determine which context attributes and entities are important. Accordingly, copy program 200 can include the information in a destination document (e.g., target location 140 ), along with the original content. Additional aspects of the present invention can provide advantages of automatically extracting and including accurate citations of sources for content. Embodiments of the present invention can also leverage access control information of a document or user to determine whether to allow copying or sharing of content (e.g., preventative measures for confidential information).
  • source document 130 is a source code repository that includes a plurality of code snippets.
  • copy program 200 automatically creates a citation (e.g., as a code comment, README, etc.) to highlight the code usage across multiple projects/locations.
  • FIG. 3 depicts computer system 300 , which is representative of client device 110 , client device 120 , and server 150 , in accordance with an illustrative embodiment of the present invention. It should be appreciated that FIG. 3 provides only an illustration of one implementation and does not imply any limitations with regard to the environments in which different embodiments may be implemented. Many modifications to the depicted environment may be made.
  • Computer system 300 includes processor(s) 301 , cache 303 , memory 302 , persistent storage 305 , communications unit 307 , input/output (I/O) interface(s) 306 , and communications fabric 304 .
  • Communications fabric 304 provides communications between cache 303 , memory 302 , persistent storage 305 , communications unit 307 , and input/output (I/O) interface(s) 306 .
  • Communications fabric 304 can be implemented with any architecture designed for passing data and/or control information between processors (such as microprocessors, communications and network processors, etc.), system memory, peripheral devices, and any other hardware components within a system.
  • processors such as microprocessors, communications and network processors, etc.
  • Communications fabric 304 can be implemented with one or more buses or a crossbar switch.
  • Memory 302 and persistent storage 305 are computer readable storage media.
  • memory 302 includes random access memory (RAM).
  • RAM random access memory
  • memory 302 can include any suitable volatile or non-volatile computer readable storage media.
  • Cache 303 is a fast memory that enhances the performance of processor(s) 301 by holding recently accessed data, and data near recently accessed data, from memory 302 .
  • persistent storage 305 includes a magnetic hard disk drive.
  • persistent storage 305 can include a solid state hard drive, a semiconductor storage device, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, or any other computer readable storage media that is capable of storing program instructions or digital information.
  • the media used by persistent storage 305 may also be removable.
  • a removable hard drive may be used for persistent storage 305 .
  • Other examples include optical and magnetic disks, thumb drives, and smart cards that are inserted into a drive for transfer onto another computer readable storage medium that is also part of persistent storage 305 .
  • Software and data 310 can be stored in persistent storage 305 for access and/or execution by one or more of the respective processor(s) 301 via cache 303 .
  • client device 110 software and data 310 is representative of user interface 112 and application 114 .
  • client device 120 software and data 310 is representative of user interface 122 , application 124 , and clipboard 126 .
  • software and data 310 is representative of classification module 152 , copy program 200 , and database 154 .
  • Communications unit 307 in these examples, provides for communications with other data processing systems or devices.
  • communications unit 307 includes one or more network interface cards.
  • Communications unit 307 may provide communications through the use of either or both physical and wireless communications links.
  • Program instructions and data e.g., software and data 310 used to practice embodiments of the present invention may be downloaded to persistent storage 305 through communications unit 307 .
  • I/O interface(s) 306 allows for input and output of data with other devices that may be connected to each computer system.
  • I/O interface(s) 306 may provide a connection to external device(s) 308 , such as a keyboard, a keypad, a touch screen, and/or some other suitable input device.
  • External device(s) 308 can also include portable computer readable storage media, such as, for example, thumb drives, portable optical or magnetic disks, and memory cards.
  • Program instructions and data e.g., software and data 310
  • I/O interface(s) 306 also connect to display 309 .
  • Display 309 provides a mechanism to display data to a user and may be, for example, a computer monitor.
  • the present invention may be a system, a method, and/or a computer program product at any possible technical detail level of integration
  • the computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention
  • the computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device.
  • the computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • a non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read-only memory
  • EPROM or Flash memory erasable programmable read-only memory
  • SRAM static random access memory
  • CD-ROM compact disc read-only memory
  • DVD digital versatile disk
  • memory stick a floppy disk
  • a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon
  • a computer readable storage medium is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
  • Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network.
  • the network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers.
  • a network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
  • Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, configuration data for integrated circuitry, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++, or the like, and procedural programming languages, such as the “C” programming language or similar programming languages.
  • the computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
  • electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
  • These computer readable program instructions may be provided to a processor of a computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
  • These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
  • the computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s).
  • the functions noted in the blocks may occur out of the order noted in the Figures.
  • two blocks shown in succession may, in fact, be accomplished as one step, executed concurrently, substantially concurrently, in a partially or wholly temporally overlapping manner, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.

Abstract

Aspects of the present invention disclose a method, computer program product, and system for augmenting a copy operation with contextual information from a source. The method includes one or more processors determining that a user provides input selecting content, within a document, and input adding the selected content to a clipboard. The method further includes one or more processors determining a classification of the selected content based on analyzing the selected content and the document utilizing Natural Language Processing (NLP). The method further includes one or more processors extracting information associated with the selected content from the document based on the determined classification. The method further includes one or more processors updating the clipboard with the selected content and the extracted information.

Description

    BACKGROUND OF THE INVENTION
  • The present invention relates generally to the field of content management, and more particularly to augmenting a copy operation with contextual information from a source.
  • Copying information from various data sources is a common and effective method for creating and updating electronic documents. In human-computer interaction and user interface design, cut, copy and paste are related commands that offer an inter-process communication technique for transferring data through a computer's user interface. The cut command removes the selected data from its original position, while the copy command creates a duplicate; in both cases the selected data is kept in a temporary storage device called the clipboard (i.e., a copy/paste buffer or cache). The data in the clipboard is later inserted in the position where the paste command is issued. The data is available to any application supporting the feature, thus allowing easy data transfer between applications. The clipboard is a buffer that some operating systems provide for short-term storage and transfer within and between application programs. The clipboard is usually temporary and unnamed, and its contents reside in the computer's random-access memory (RAM). The clipboard is sometimes called the paste buffer or the copy/paste buffer.
  • SUMMARY
  • Aspects of the present invention disclose a method, computer program product, and system for augmenting a copy operation with contextual information from a source. The method includes one or more processors determining that a user provides input selecting content, within a document, and input adding the selected content to a clipboard. The method further includes one or more processors determining a classification of the selected content based on analyzing the selected content and the document utilizing Natural Language Processing (NLP). The method further includes one or more processors extracting information associated with the selected content from the document based on the determined classification. The method further includes one or more processors updating the clipboard with the selected content and the extracted information. In another embodiment, the method further includes in response to receiving a request from the user to initiate a paste operation to a target location, one or more processors pasting the selected content and the extracted information from the clipboard to the target location.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • FIG. 1 is a functional block diagram of a data processing environment, in accordance with an embodiment of the present invention.
  • FIG. 2 is a flowchart depicting operational steps of a program for augmenting a copy operation with contextual information from a source, in accordance with an embodiment of the present invention.
  • FIG. 3 depicts a block diagram of components of a computing system representative of the client devices and server of FIG. 1, in accordance with an embodiment of the present invention.
  • DETAILED DESCRIPTION
  • Embodiments of the present invention allow for an intelligent system for enhancing the copying and pasting of information. Embodiments of the present invention can analyze content that is copied to a clipboard to identify contextual attributes that are associated with the data. In an example scenario, embodiments of the present invention identify that an author of source content provides a citation link for use when the content is copied and shared. Accordingly, embodiments of the present invention can identify the author preference, extract relevant information (e.g., as metadata) from the source content, and include the extracted information in the clipboard (i.e., copy/paste buffer). Upon pasting the source content, embodiments of the present invention automatically augment the target location (e.g., target document) with the extracted information and additional information based on a classification of the source and/or target.
  • Some embodiments of the present invention recognize that copying information is a common and effective method for creating and updating electronic documents. However, during the copying of information, the original context can be lost, which can result in improper, incomplete, or misleading usage of the copied information. Embodiments of the present invention recognize the benefits of a system that can transfer contextual information during a copy/paste operation.
  • Various embodiments of the present invention provide advantages, which include providing a system that preserves information context during a copy/paste operation. Additional embodiments of the present invention apply transformation rule during copy/paste operations to ensure the information context is replicated at the target location.
  • Embodiments of the present invention also provide advantages of learning the association between content categories and context attributes or context entities. Accordingly, embodiments of the present invention can apply the associations and classifications at runtime, to identify and extract context attributes from the source document and including the extracted information in the clipboard during the copy/paste operation. Further embodiments of the present invention provide an additional advantage of utilizing machine learning and natural language processing (NLP) to classify the source document and utilize the classification to determine which context attributes to extract and include in the clipboard or copy/paste buffer.
  • Implementation of embodiments of the invention may take a variety of forms, and exemplary implementation details are discussed subsequently with reference to the Figures.
  • The present invention will now be described in detail with reference to the Figures. FIG. 1 is a functional block diagram illustrating a distributed data processing environment, generally designated 100, in accordance with one embodiment of the present invention. FIG. 1 provides only an illustration of one implementation and does not imply any limitations with regard to the environments in which different embodiments may be implemented. Many modifications to the depicted environment may be made by those skilled in the art without departing from the scope of the invention as recited by the claims.
  • An embodiment of data processing environment 100 includes client device 110, client device 120, source document 130, target location 140, and server 150, all interconnected over network 105. In an example embodiment, an individual utilizing client device 110 is an author of content included in source document 130 and an individual utilizing client device 120 selects the authored content from source document for a copy operation (e.g., to target location 140). In this example embodiment, server 150 provides services (e.g., classification module 152 and copy program 200) to enhance the copy operation with contextual information associated with the authored content, in accordance with various embodiments of the present invention.
  • Network 105 can be, for example, a local area network (LAN), a telecommunications network, a wide area network (WAN), such as the Internet, or any combination of the three, and include wired, wireless, or fiber optic connections. In general, network 105 can be any combination of connections and protocols that will support communications between client device 110, client device 120, source document 130, target location 140, and server 150, in accordance with embodiments of the present invention. In various embodiments, network 105 facilitates communication among a plurality of networked computing devices (e.g., client device 110 and client device 120), corresponding users (e.g., an individual utilizing client device 110 and/or client device 120), data sources (e.g., source document 130, target location 140) and corresponding management services (e.g., server 150).
  • In various embodiments of the present invention, client device 110 and client device 120 may be a workstation, personal computer, personal digital assistant, mobile phone, or any other device capable of executing computer readable program instructions, in accordance with embodiments of the present invention. In general, client device 110 and client device 120 are representative of any electronic device or combination of electronic devices capable of executing computer readable program instructions. Client device 110 and client device 120 may include components as depicted and described in further detail with respect to FIG. 3, in accordance with embodiments of the present invention. In an example embodiment, client device 110 and client device 120 are smart devices, such as a smartphone, a smart watch, etc.
  • Client device 110 includes user interface 112 and application 114. User interface 112 is a program that provides an interface between a user of client device 110 and a plurality of applications that reside on the computing device (e.g., application 114). A user interface, such as user interface 112, refers to the information (such as graphic, text, and sound) that a program presents to a user, and the control sequences the user employs to control the program. A variety of types of user interfaces exist. In one embodiment, user interface 112 is a graphical user interface. A graphical user interface (GUI) is a type of user interface that allows users to interact with electronic devices, such as a computer keyboard and mouse, through graphical icons and visual indicators, such as secondary notation, as opposed to text-based interfaces, typed command labels, or text navigation. In computing, GUIs were introduced in reaction to the perceived steep learning curve of command-line interfaces which require commands to be typed on the keyboard. The actions in GUIs are often performed through direct manipulation of the graphical elements. In another embodiment, user interface 112 is a script or application programming interface (API).
  • Application 114 can be representative of one or more applications (e.g., an application suite) that operate on client device 110. In an example embodiment, application 114 is a client-side application of an enterprise associated with server 150 and source document 130. In another example embodiment, application 114 is a web browser that an individual utilizing client device 110 utilizes (e.g., via user interface 112) to access and provide information over network 105, such as providing information (e.g., code) to source document 130, defining code use parameters and preferences to server 150, etc. In other aspects of the present invention, application 114 can be representative of applications that provide additional functionality (e.g., camera, messaging, etc.), in accordance with various aspects of the present invention.
  • In additional aspects of the present invention, client device 120 includes user interface 122, application 124, and clipboard 126. The respective instances of user interface 122 and application 124 include functionality as described above, with regard to respective instances of user interface 112 and application 114. In an example embodiment, client device 110 and client device 120 are personal computing devices, where a user of client device 110 is an author of code included in source document 130 and a user of client device 120 is copying the code (provided by the user of client device 110) in source document 130.
  • Clipboard 126 is a buffer (i.e., a copy/paste buffer) that client device 120 utilizes for storing data for transfer within or between applications or sources. In various embodiments, client device 120 hosts clipboard 126 in random-access memory (RAM). In example embodiments, clipboard 126 include information that a user of client device 120 has selected for copying. In additional embodiments, clipboard 126 include the information that the user of client device 120 has selected for copying and additional information that server 150 (e.g., via classification module 152 and copy program 200) indicates to associate with the copied information. For example, in response to a user of client device 120 selecting to copy a code snippet from source document 130, clipboard 126 includes a copy of the selected code snippet and associated attribution information, which can be defined by the author of the code snippet (e.g., a user of client device 110). In alternate embodiments, clipboard 126 can be hosted on server 150 and/or client device 120 can replicate clipboard 126 on server 150. For example, client device 120 can replicate information in clipboard 126 to a corresponding location on server 150 (e.g., in database 154).
  • In various embodiments of the present invention, source document 130 is an exemplary depiction of a location or entity that includes information that is copied in a copy/paste operation (e.g., by a user of client device 120). In an example embodiment, source document 130 is a webpage that includes code snippets, source code, text, etc. In another embodiment, source document 130 is a text document that is hosted and accessible via network 105, which includes text information and associated metadata. In various embodiments, an author of content in source document 130 can define that if a portion of content is copied, the copy/paste operation will also include specified information. For example, a user of client device 110 posts a code snippet to source document 130 and defines (e.g., tag) that if the code snippet is included in a copy/paste operation, then an author citation is also included in the clipboard. In this example, source document 130 includes the user preference and definition as metadata tags associated with the code snippet. In various embodiments, source document 130 can be a webpage, text document, file, application, repository, or location accessible over network 105 (e.g., to server 150).
  • Target location 140 is an exemplary depiction of one or more locations that correspond to a destination for content in a copy/paste operation. For example, a user of client device 120 copies a code snippet from source document 130 to paste the code snippet to target location 140. In various embodiments, target location 140 can be a webpage, text document, file, application, repository, or location accessible over network 105 (e.g., to server 150).
  • In example embodiments, server 150 can be a desktop computer, a computer server, or any other computer systems, known in the art. In certain embodiments, server 150 represents computer systems utilizing clustered computers and components (e.g., database server computers, application server computers, etc.) that act as a single pool of seamless resources when accessed by elements of data processing environment 100 (e.g., client device 110, client device 120, source document 130, and target location 140). In general, server 150 is representative of any electronic device or combination of electronic devices capable of executing computer readable program instructions. Server 150 may include components as depicted and described in further detail with respect to FIG. 3, in accordance with embodiments of the present invention.
  • Server 150 includes classification module 152, copy program 200, and database 154. In one embodiment, server 150 operates to manage copy and paste operations associated with one or more users (e.g., client device 110 and client device 120), one or more data sources/locations (e.g., source document 130 and target location 140), or a combination thereof.
  • In various embodiments of the present invention, server 150 utilizes (in conjunction with copy program 200) classification module 152 to analyze sources and destinations of content (e.g., source document 130 and target location 140) to determine classifications that identify types and categories associated with the respective content location. Classification module 152 can employ a variety of techniques to classify content, such as but not limited to, NLP classification of text, machine learning, Topic Model networks, Zero-shot learning, linguistic analysis image analysis and classification. In example embodiments, classification module 152 operates during a copy/paste operation at runtime to determine and assign tags that correspond to the type and category of content in the copy/paste operation. In an example scenario, in response to a user selecting content for a copy/paste operation, classification module 152 can identify a type and category of the selected content and the location of the selected content (e.g., based on a context of source document 130). For example, classification module can classify selected content into one of a plurality of categories/types, such as confidential, programming code, opinion, medical information, financial information, etc.
  • In example embodiments, copy program 200 augments a copy operation with contextual information from a source, in accordance with an embodiment of the present invention. In various embodiments, server 150 can utilize copy program 200 in combination with classification module to classify content as a certain category or type and learn context attributes or entities that are associated with content categories/types. Copy program 200 can extract information from a source of content (e.g., entity values associated with a category), such as source document 130, and include the extracted information in a copy/paste buffer (e.g., clipboard 126). Accordingly, server 150 can utilize copy program 200 to preserve the original informational context of content that is copied from one location to another (e.g., from source document 13 to target location 140).
  • In example embodiments, server 150 includes information associated with registered users (e.g., in database 154) and utilizes information associated with registered users of the content classification and attribution system of server 150 (via copy program 200). For example, an individual utilizing client device 120 completes a registration process, provides information, and authorizes the collection and analysis (i.e., opts-in) of relevant data, by server 150 (e.g., via copy program 200). In various embodiments, a user can opt-in or opt-out of certain categories of data collection. In addition, an author user (e.g., a user of client device 110) can indicate that particular content cannot be copied (e.g., block inclusion in a copy/paste operation).
  • Database 154 can be implemented with any type of storage device, for example, persistent storage 305, which is capable of storing data that may be accessed and utilized by server 150, client device 110, and client device 120, such as a database server, a hard disk drive, or a flash memory. In other embodiments, database 154 can represent multiple storage devices and collections of data within server 150. In various embodiments, database 154 includes information that copy program 200 can access and utilize, in accordance with embodiments of the present invention.
  • In one embodiment, database 154 includes content tags that are defined and applied by authors of content. For example, a content creator (e.g., a user of client device 110) associated with a code snippet on source document 130 defines that if the code snippet is to be used externally, then a citation should be applied. In this example, database 154 includes the citation tag associated with the code snippet and the content creator, along with associated attribution information. In additional embodiments, database 154 includes content category and context attribute mapping information, which copy program 200 can utilize and update. For example, database 154 includes mapped associations between content categories and context attributes (e.g., based in information from classification module 152). In various embodiments, copy program 200 can analyze a user's pattern when copying and pasting content to determine whether a particular category of copied content correlates to a target location.
  • In additional embodiments, database 154 includes mapping information that indicates which types of information (e.g., attributes) that copy program 200 should extract based on a classification of content or source location. For example, database 154 includes an indication that for a code snippet in source document 130, copy program should at least extract a source citation and contact information. In an additional aspect, database 154 can also include mapped associations that are based on user preferences, such as an author's defined tags or preferences for authored content.
  • FIG. 2 is a flowchart depicting operational steps of copy program 200, a program for augmenting a copy operation with contextual information from a source, in accordance with an embodiment of the present invention. In one embodiment, copy program 200 initiates in response to a user initiating a copy operation (e.g., a user, via a device accessible over network 105, selecting content and providing a command to copy). In another embodiment, copy program 200 initiates in response to a user accessing a document (e.g., a user, via a device accessible over network 105, accesses a document). In various embodiments, copy program 200 operates as a background process while a user is accessing an application, such as application 124 or application 114.
  • In step 202, copy program 200 identifies a user accessing a document. In one embodiment, copy program 200 identifies that a user of client device 120 is accessing source document 130. In an example scenario, copy program 200 is monitoring a webpage (i.e., source document 130), which has registered and authorized monitoring, for indications of access and initiation of copy operations on included content (e.g., text, code snippets, images, etc.). In this example embodiment, copy program 200 identifies that a user (e.g., of client device 120) accesses the webpage.
  • In step 204, copy program 200 determines that the user is making a selection to copy. In one embodiment, copy program 200 determines that the user (identified in step 202) has made a selection of content within source document 130 and has provided input initiating a copy operation. For example, copy program 200 determines that the user of client device 120, while accessing source document 130, provides input (e.g., via user interface 122) selecting a code snippet and input initiating a copy operation (e.g., requesting to add content to clipboard 126). In various embodiments of the present invention, copy program 200 identifies the initiation of a copy operation at runtime, to employ the processing of copy program 200 during runtime of a copy/paste operation.
  • In step 206, copy program 200 identifies metadata associated with the selected content. In one embodiment, copy program 200 identifies metadata that is associated with selected content for the copy operation (from step 204) and the source of the selected content (e.g., source document 130, identified in step 202). Copy program 200 can identify metadata that is included in the source of the copied content (e.g., metadata embedded in source document 130). In addition, copy program 200 can identify metadata that is stored in database 154 and associated with the source of the copied content. For example, database 154 can store metadata associated with source document 130, metadata associated with the author of the copied content and/or source document 130 (e.g., a user of client device 110), metadata associated with the user that is selecting the content to copy (e.g., a user of client device 120), etc. In an example aspect, copy program 200 identifies metadata that indicates attributes, entities, and context of the selected content.
  • In an example embodiment, copy program 200 analyzes the selected content and source document 130 to identify metadata. In an additional example embodiment, copy program 200 identifies metadata (and other relevant information) that is stored in database 154 and associated with source document 130, the selected content, the author, or a combination thereof. In such embodiments, the identified metadata and information can include metadata indicating the author, tags that the author applied to the selected content and source document 130, content usage guidelines associated with source document 130 and the selected content, attributes of source document 130 and the selected content, comments, descriptive metadata providing information associated with source document 130 and the selected content, defined preferences and/or default preferences (e.g., a baseline, or user-defined, amount and definition of contextual information), etc. For example, the metadata tags can correspond to citation information (e.g., provide citation if used externally, indications of references to provide, etc.), whether content can be included in a copy/paste operation (e.g., locked content), category tags, attribute tags, contact information for an author, etc.
  • In another example scenario, copy program 200 analyzes the content usage guidelines of a website (e.g., source document 130) and identifies defined guidelines and preferences for sharing content that appears on the webpage. In this example scenario, the content usage guidelines of the website dictate that a user can copy and reproduce content from the website (e.g., images, program code, infographics, videos, documents, etc.), as long as the user provides a citation of the website and a link to the website. Accordingly, in response to the user indicating intent to copy content from the website (e.g., user selecting to copy program code from source document 130), copy program 200 associated the content usage guidelines information with the copy/paste operation.
  • In step 208, copy program 200 determines a classification of the selected content. In one embodiment, copy program 200 utilizes classification module 132 to analyze selected content for the copy operation (from step 204) and the source of the selected content (e.g., source document 130, identified in step 202) to determine one or more classifications. In various embodiments, copy program 200 leverages the NLP and machine learning capabilities of classification module 152 to determine classification(s) of the selected content and source document 130. In various aspects of the present invention, copy program 200 can determine one or more classifications associated with the selected content that indicate a type and/or category of content, such as program code, product information, confidential, medical information, historical information, educational information, personal information, financial information, etc.
  • In another aspect, copy program 200 can also determine a classification of the source location of the content selected for copy (e.g., source document 130). In an example scenario, copy program 200, utilizing classification module 152, analyzes an image that is selected to copy (in step 202). In this scenario, copy program 200 classifies the image as a medical information, based on an image classification analysis and an analysis of source document 130 (and associated metadata from step 206).
  • In various embodiments of the present invention, at runtime of a copy/paste operation (e.g., initiated in step 204), copy program 200 utilizes classification module to analyze the context of the selected content in source document 130 and classify the selected content into a predefined category and/or type. In an example embodiment, copy program 200, utilizing classification module 152, classifies the content that the user is selecting to copy (in step 204) as being program code.
  • In step 210, copy program 200 determines a classification of the target location. In one embodiment, copy program 200 utilizes classification module 152 to analyze an indicated target location for the copy/paste operation (i.e., a paste location, such as target location 140) to determine one or more classifications. In an alternate embodiment, if copy program 200 is not aware of, or does not have access to, target location 140, then copy program 200 can proceed to step 212. In various embodiments of the present invention, copy program 200 can utilize processes and techniques discussed previously with regard to step 208 to determine a classification (e.g., type and/or category) of target location 140). In another embodiment, copy program 200 identifies a predetermined ruleset (e.g., in database 154) that is associated with a classification of one or more of the user initiating the copy/paste operation, the selected content, source document 130, target location 140.
  • In an example embodiment, copy program 200 can analyze user behavior in copy/paste operations to determine information associated with a copy/paste operation to target location 140. In one example scenario, copy program 200 analyzes actions of a user while the user repeatedly copies and pastes semantically similar content, followed by copying and pasting content with similar attributes. For example, a user is preparing a report about vegetation in a certain region and reviews multiple sources of information. Then the user performs multiple sequential copy/paste operations of descriptions of plants from the multiple sources. In this example, copy program 200 determines a classification of the plant description content (e.g., determining attributes), stores the classification association, with the ability to apply the classification association a next time that the user copies data associated with the plants.
  • In step 212, copy program 200 extracts information associated with the selected content. In one embodiment, copy program 200 utilizes information from steps 206, 208, and 210 to determine which information to extract. In various embodiments, copy program 200 operates to extract the information at runtime of the copy/paste operation. In additional embodiments, copy program 200 stores a mapping of information (e.g., a mapping of content types/categories and corresponding attributes) in database 154 for later use. In additional embodiments, copy program 200 utilizes determined classifications (e.g., categories and types of content) to access database 154 to determine which attributes are mapped to the determined classifications. Copy program 200 can utilize the mapping information to determine which attributes of source document 130 to extract, such as author contact/attribution information, website citation, etc.
  • In an example scenario, copy program 200 (in step 206) identifies metadata associated with the selected content (from step 204) that includes a tag from an author indicating to cite the author when copying the selected content. In addition, copy program 200, based on (in step 208) an analysis of the selected content or the copy/paste operation and source document 130, determines a classification of “program code” for the selected content. Accordingly, copy program 200 (in step 212) extracts author citation information (e.g., social media contact information) and attributes from source document 130 that correspond to the “program code” classification (e.g., based on mapped associations in database 154). For example, copy program 200 extracts information attributes that are related to program code (per database 154), such as an author citation, a citation of source document 130, usage guidelines, link to support documentation, etc.
  • In an additional example scenario, copy program 200 (in step 208) analyzes an image included in the selected content and classifies the image as a “medical information,” based on an image classification analysis and an analysis of source document 130. In this example scenario, copy program 200 determines that the classification of “medical information” is associated with required attributes of “data” and “time.” Accordingly, copy program 200 extracts date and time information from source document 130 (step 212). In further embodiments, copy program 200 can utilize user behavior information (from step 210) to determine which information to extract.
  • In example embodiments, copy program 200 utilizes entity recognition to extract entities from text based on pattern matching, linguistics, syntax, semantics, machine learning, or a combination thereof. Copy program 200 can extract attributes and entities based on a mapping of content categories to context attributes (e.g., in database 154) to extract entities and attributes that are relevant to a content type or category, based on a classification.
  • In step 214, copy program 200 updates the clipboard with the extracted information associated with the selected content. In one embodiment, copy program 200 updates clipboard 126 to include the selected content (from step 204) and the extracted information associated with the selected content (from step 212). In another embodiment, copy program 200 can update the clipboard with at least a defined baseline of information (e.g., metadata indicating that the content was copied, metadata indicating the source, etc.). In various embodiments, copy program 200 can update the clipboard with the extracted information as metadata that is included with and associated with the selected content in a paste operation, additional text or content included in a paste operation, etc. In an example embodiment, copy program 200 updates the copy/paste buffer (e.g., temporary storage) of clipboard 126 with information extracted in step 212.
  • In step 216, copy program 200 receives a request to paste to the target location. In one embodiment, copy program 200, subsequent to determining that a user is selecting content to copy (in step 204), receives a request from the user to paste the copied content to target location 140. For example, copy program 200 receives the paste request via user input into user interface 122 of client device 120 to paste content to target location 140, indicating a location within target location 140.
  • In step 218, copy program 200 pastes the selected content and associated information from the clipboard. In one embodiment, copy program 200 pastes the selected content (from step 204) and associated information (extracted in step 212 and utilized to update the clipboard in step 214) from clipboard 126 to target location 140. In an additional embodiment, copy program 200 applies corresponding transformation rules during the copy/paste operation to ensure that the information content is replicated to the destination (e.g., for the copied content and associated information). Copy program 200 can paste copied content along with the extracted content from the clipboard as additional text, as associated metadata, or a combination thereof.
  • Embodiments of the present invention provide a system (e.g., through use of copy program 200) that utilizes machine learning to classify a source document and determine which context attributes and entities are important. Accordingly, copy program 200 can include the information in a destination document (e.g., target location 140), along with the original content. Additional aspects of the present invention can provide advantages of automatically extracting and including accurate citations of sources for content. Embodiments of the present invention can also leverage access control information of a document or user to determine whether to allow copying or sharing of content (e.g., preventative measures for confidential information).
  • In an example embodiment, source document 130 is a source code repository that includes a plurality of code snippets. In response to a user of client device 120 selecting a code snippet from source document 130 for a copy/paste operation, copy program 200 automatically creates a citation (e.g., as a code comment, README, etc.) to highlight the code usage across multiple projects/locations.
  • FIG. 3 depicts computer system 300, which is representative of client device 110, client device 120, and server 150, in accordance with an illustrative embodiment of the present invention. It should be appreciated that FIG. 3 provides only an illustration of one implementation and does not imply any limitations with regard to the environments in which different embodiments may be implemented. Many modifications to the depicted environment may be made. Computer system 300 includes processor(s) 301, cache 303, memory 302, persistent storage 305, communications unit 307, input/output (I/O) interface(s) 306, and communications fabric 304. Communications fabric 304 provides communications between cache 303, memory 302, persistent storage 305, communications unit 307, and input/output (I/O) interface(s) 306. Communications fabric 304 can be implemented with any architecture designed for passing data and/or control information between processors (such as microprocessors, communications and network processors, etc.), system memory, peripheral devices, and any other hardware components within a system. For example, communications fabric 304 can be implemented with one or more buses or a crossbar switch.
  • Memory 302 and persistent storage 305 are computer readable storage media. In this embodiment, memory 302 includes random access memory (RAM). In general, memory 302 can include any suitable volatile or non-volatile computer readable storage media. Cache 303 is a fast memory that enhances the performance of processor(s) 301 by holding recently accessed data, and data near recently accessed data, from memory 302.
  • Program instructions and data (e.g., software and data 310) used to practice embodiments of the present invention may be stored in persistent storage 305 and in memory 302 for execution by one or more of the respective processor(s) 301 via cache 303. In an embodiment, persistent storage 305 includes a magnetic hard disk drive. Alternatively, or in addition to a magnetic hard disk drive, persistent storage 305 can include a solid state hard drive, a semiconductor storage device, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, or any other computer readable storage media that is capable of storing program instructions or digital information.
  • The media used by persistent storage 305 may also be removable. For example, a removable hard drive may be used for persistent storage 305. Other examples include optical and magnetic disks, thumb drives, and smart cards that are inserted into a drive for transfer onto another computer readable storage medium that is also part of persistent storage 305. Software and data 310 can be stored in persistent storage 305 for access and/or execution by one or more of the respective processor(s) 301 via cache 303. With respect to client device 110, software and data 310 is representative of user interface 112 and application 114. With respect to client device 120, software and data 310 is representative of user interface 122, application 124, and clipboard 126. With respect to server 150, software and data 310 is representative of classification module 152, copy program 200, and database 154.
  • Communications unit 307, in these examples, provides for communications with other data processing systems or devices. In these examples, communications unit 307 includes one or more network interface cards. Communications unit 307 may provide communications through the use of either or both physical and wireless communications links. Program instructions and data (e.g., software and data 310) used to practice embodiments of the present invention may be downloaded to persistent storage 305 through communications unit 307.
  • I/O interface(s) 306 allows for input and output of data with other devices that may be connected to each computer system. For example, I/O interface(s) 306 may provide a connection to external device(s) 308, such as a keyboard, a keypad, a touch screen, and/or some other suitable input device. External device(s) 308 can also include portable computer readable storage media, such as, for example, thumb drives, portable optical or magnetic disks, and memory cards. Program instructions and data (e.g., software and data 310) used to practice embodiments of the present invention can be stored on such portable computer readable storage media and can be loaded onto persistent storage 305 via I/O interface(s) 306. I/O interface(s) 306 also connect to display 309.
  • Display 309 provides a mechanism to display data to a user and may be, for example, a computer monitor.
  • The programs described herein are identified based upon the application for which they are implemented in a specific embodiment of the invention. However, it should be appreciated that any particular program nomenclature herein is used merely for convenience, and thus the invention should not be limited to use solely in any specific application identified and/or implied by such nomenclature.
  • The present invention may be a system, a method, and/or a computer program product at any possible technical detail level of integration. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
  • The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
  • Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
  • Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, configuration data for integrated circuitry, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++, or the like, and procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
  • Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
  • These computer readable program instructions may be provided to a processor of a computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
  • The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
  • The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the Figures. For example, two blocks shown in succession may, in fact, be accomplished as one step, executed concurrently, substantially concurrently, in a partially or wholly temporally overlapping manner, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
  • The descriptions of the various embodiments of the present invention have been presented for purposes of illustration but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The terminology used herein was chosen to best explain the principles of the embodiment, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (22)

1. A method comprising:
determining, by one or more processors, that a user provides input selecting content, within a document, and input adding the selected content to a clipboard;
identifying, by one or more processors, metadata, included within the document, that is associated with the selected content;
identifying, by one or more processors, author preference information for the selected content based on the identified metadata, the author preference information including usage and attribution instructions that correspond to the selected content, as defined by an author associated with the selected content;
extracting, by one or more processors, information associated with the selected content from the document based on the author preference information; and
updating, by one or more processors, the clipboard with the selected content and the extracted information.
2. The method of claim 1, further comprising:
in response to receiving a request from the user to initiate a paste operation to a target location, pasting, by one or more processors, the selected content and the extracted information from the clipboard to the target location.
3. (canceled)
4. The method of claim 2, further comprising:
determining, by one or more processors, a classification of the selected content based on analyzing the selected content and the document utilizing Natural Language Processing (NLP);
determining, by one or more processors, a classification of the target location; and
extracting, by one or more processors, information from the document based on the determined classification of the selected content and the determined classification of the target location.
5. The method of claim 4, wherein extracting information associated with the selected content from the document based on the determined classification, further comprises:
determining, by one or more processors, attributes that are associated with the determined classification of the selected content; and
extracting, by one or more processors, information from the document that is associated with the determined attributes.
6. The method of claim 1, wherein:
the document is a webpage, and
the selected content is program code.
7. The method of claim 1, wherein the clipboard is a copy/paste buffer for a copy/paste operation.
8. A computer program product comprising:
one or more computer readable storage media and program instructions stored on the one or more computer readable storage media, the program instructions comprising:
program instructions to determine that a user provides input selecting content, within a document, and input adding the selected content to a clipboard;
program instructions to identify metadata, included within the document, that is associated with the selected content;
program instructions to identify author preference information for the selected content based on the identified metadata, the author preference information including usage and attribution instructions that correspond to the selected content, as defined by an author associated with the selected content;
program instructions to extract information associated with the selected content from the document based on the author preference information; and
program instructions to update the clipboard with the selected content and the extracted information.
9. The computer program product of claim 8, further comprising program instructions, stored on the one or more computer readable storage media, to:
in response to receiving a request from the user to initiate a paste operation to a target location, paste the selected content and the extracted information from the clipboard to the target location.
10. (canceled)
11. The computer program product of claim 9, further comprising program instructions, stored on the one or more computer readable storage media, to:
determine a classification of the selected content based on analyzing the selected content and the document utilizing Natural Language Processing (NLP);
determine a classification of the target location; and
extract information from the document based on the determined classification of the selected content and the determined classification of the target location.
12. The computer program product of claim 11, wherein the program instructions to extract information associated with the selected content from the document based on the determined classification, further comprise program instructions to:
determine attributes that are associated with the determined classification of the selected content; and
extract information from the document that is associated with the determined attributes.
13. The computer program product of claim 8, wherein the clipboard is a copy/paste buffer for a copy/paste operation.
14. A computer system comprising:
one or more computer processors;
one or more computer readable storage media; and
program instructions stored on the computer readable storage media for execution by at least one of the one or more processors, the program instructions comprising:
program instructions to determine that a user provides input selecting content, within a document, and input adding the selected content to a clipboard;
program instructions to identify metadata, included within the document, that is associated with the selected content;
program instructions to identify author preference information for the selected content based on the identified metadata, the author preference information including usage and attribution instructions that correspond to the selected content, as defined by an author associated with the selected content;
program instructions to extract information associated with the selected content from the document based on the author preference information; and
program instructions to update the clipboard with the selected content and the extracted information.
15. The computer system of claim 14, further comprising program instructions, stored on the computer readable storage media for execution by at least one of the one or more processors, to:
in response to receiving a request from the user to initiate a paste operation to a target location, paste the selected content and the extracted information from the clipboard to the target location.
16. (canceled)
17. The computer system of claim 15, further comprising program instructions, stored on the computer readable storage media for execution by at least one of the one or more processors, to:
determine a classification of the selected content based on analyzing the selected content and the document utilizing Natural Language Processing (NLP);
determine a classification of the target location; and
extract information from the document based on the determined classification of the selected content and the determined classification of the target location.
18. The computer system of claim 17, wherein the program instructions to extract information associated with the selected content from the document based on the determined classification, further comprise program instructions to:
determine attributes that are associated with the determined classification of the selected content; and
extract information from the document that is associated with the determined attributes.
19. The computer system of claim 14, wherein:
the document is a webpage, and
the selected content is program code.
20. The computer system of claim 14, wherein the clipboard is a copy/paste buffer for a copy/paste operation.
21. The method of claim 1, wherein extracting information associated with the selected content from the document based on the author preference information further comprises:
determining, by one or more processors, that the identified author preference information for the selected content includes an instruction to include an author citation when copying content; and
extracting, by one or more processors, author citation information that corresponds to the selected content from the document.
22. The method of claim 1, wherein extracting information associated with the selected content from the document based on the author preference information further comprises:
determining, by one or more processors, that the selected content is program code; and
extracting, by one or more processors, a link to support documentation, from the document, that is associated with the program code.
US16/554,091 2019-08-28 2019-08-28 Utilizing source context and classification in a copy operation Active US10956239B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/554,091 US10956239B1 (en) 2019-08-28 2019-08-28 Utilizing source context and classification in a copy operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US16/554,091 US10956239B1 (en) 2019-08-28 2019-08-28 Utilizing source context and classification in a copy operation

Publications (2)

Publication Number Publication Date
US20210064448A1 true US20210064448A1 (en) 2021-03-04
US10956239B1 US10956239B1 (en) 2021-03-23

Family

ID=74679828

Family Applications (1)

Application Number Title Priority Date Filing Date
US16/554,091 Active US10956239B1 (en) 2019-08-28 2019-08-28 Utilizing source context and classification in a copy operation

Country Status (1)

Country Link
US (1) US10956239B1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220078195A1 (en) * 2020-09-09 2022-03-10 Qualtrics, Llc Dynamically mapping entity members to permission roles for digital survey resources based on digital metadata
US20230297217A1 (en) * 2022-03-15 2023-09-21 International Business Machines Corporation Multi-location copying and context based pasting
US11973802B2 (en) * 2020-09-09 2024-04-30 Qualtrics, Llc Dynamically mapping entity members to permission roles for digital survey resources based on digital metadata

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11768955B2 (en) * 2020-12-15 2023-09-26 Citrix Systems, Inc. Mitigating insecure digital storage of sensitive information

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6944821B1 (en) 1999-12-07 2005-09-13 International Business Machines Corporation Copy/paste mechanism and paste buffer that includes source information for copied data
US7237189B2 (en) 2002-02-11 2007-06-26 Sap Aktiengesellschaft Offline e-learning system
US20040015785A1 (en) 2002-02-22 2004-01-22 Bo-In Lin Automatic link generation for linking to relevant data records circumstantial to document processes
US7340685B2 (en) 2004-01-12 2008-03-04 International Business Machines Corporation Automatic reference note generator
US20050203935A1 (en) 2004-03-11 2005-09-15 International Business Machines Corporation Clipboard content and document metadata collection
US20060218492A1 (en) 2005-03-22 2006-09-28 Andrade Jose O Copy and paste with citation attributes
US20070011749A1 (en) 2005-07-11 2007-01-11 Simdesk Technologies Secure clipboard function
US8656461B2 (en) 2006-07-28 2014-02-18 Microsoft Corporation Copy-paste trust system
US8453066B2 (en) * 2006-11-06 2013-05-28 Microsoft Corporation Clipboard augmentation with references
US8296671B2 (en) * 2008-05-01 2012-10-23 Microsoft Corporation Enabling access to rich data by intercepting paste operations
US20110126092A1 (en) 2009-11-21 2011-05-26 Harris Technology, Llc Smart Paste
EP2423831A1 (en) 2010-08-27 2012-02-29 Axel Springer Digital TV Guide GmbH Recommender system with consistent profile application
AU2015253661B2 (en) * 2014-04-28 2018-01-18 Solventum Intellectual Properties Company Identification and analysis of copied and pasted passages in medical documents
US20160034602A1 (en) 2014-08-01 2016-02-04 Lenovo (Singapore) Pte. Ltd. Storing and presenting data associating information in a file with the source of the information
US20170154188A1 (en) 2015-03-31 2017-06-01 Philipp MEIER Context-sensitive copy and paste block
EP3196798A1 (en) 2016-01-19 2017-07-26 Secude AG Context-sensitive copy and paste block
US10650086B1 (en) * 2016-09-27 2020-05-12 Palantir Technologies Inc. Systems, methods, and framework for associating supporting data in word processing
US10599772B2 (en) * 2017-11-01 2020-03-24 International Business Machines Corporation Cognitive copy and paste

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220078195A1 (en) * 2020-09-09 2022-03-10 Qualtrics, Llc Dynamically mapping entity members to permission roles for digital survey resources based on digital metadata
US11973802B2 (en) * 2020-09-09 2024-04-30 Qualtrics, Llc Dynamically mapping entity members to permission roles for digital survey resources based on digital metadata
US20230297217A1 (en) * 2022-03-15 2023-09-21 International Business Machines Corporation Multi-location copying and context based pasting
US11899910B2 (en) * 2022-03-15 2024-02-13 International Business Machines Corporation Multi-location copying and context based pasting

Also Published As

Publication number Publication date
US10956239B1 (en) 2021-03-23

Similar Documents

Publication Publication Date Title
US11093216B2 (en) Automatic discovery of microservices from monolithic applications
US10048838B2 (en) Data transfer target applications through content analysis
US11036937B2 (en) Contraction aware parsing system for domain-specific languages
US9495410B1 (en) File creation through virtual containers
US9588952B2 (en) Collaboratively reconstituting tables
US20160283083A1 (en) Intelligent interactive screen capture
US10437779B2 (en) Intelligent interactive screen capture
US20210133270A1 (en) Referencing multiple uniform resource locators with cognitive hyperlinks
US10956239B1 (en) Utilizing source context and classification in a copy operation
US20190188623A1 (en) Cognitive and dynamic business process generation
US11226832B2 (en) Dynamic generation of user interfaces based on dialogue
US10216719B2 (en) Relation extraction using QandA
US20220012421A1 (en) Extracting content from as document using visual information
US9372845B2 (en) Managing product configuration
US11356395B1 (en) Generating a rich hyperlink within a messaging environment
WO2022116827A1 (en) Automatic delineation and extraction of tabular data in portable document format using graph neural networks
CN116670664A (en) Resistance reinforcement for automatically responding queries
US20170289301A1 (en) Caching shared content in distributed systems
US11966562B2 (en) Generating natural languages interface from graphic user interfaces
US11720465B2 (en) Determining diagnostic information utilizing program code
US11176322B2 (en) Predicting if a message will be understood by recipients

Legal Events

Date Code Title Description
AS Assignment

Owner name: INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW YORK

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:KOCHURA, NADIYA;UONG, ANH;MANNING, DANIEL;SIGNING DATES FROM 20190821 TO 20190823;REEL/FRAME:050202/0961

FEPP Fee payment procedure

Free format text: ENTITY STATUS SET TO UNDISCOUNTED (ORIGINAL EVENT CODE: BIG.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

STCF Information on status: patent grant

Free format text: PATENTED CASE