# US 2021/0064448 A1 · Utilizing source context and classification in a copy operation

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0064448 A1
- Document ID: US20210064448A1
- Status: Published application
- Kind: A1
- Application number: 16/554,091
- Filed: 2019-08-28
- Published: 2021-03-04
- Earliest claimed: 2019-08-28
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Nadiya Kochura; Anh Uong; Daniel Manning
- Web page: https://patentgrep.com/patent/US20210064448A1

## CPC

- G06F 9/543: {User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]}
- G06F 16/35: Clustering; Classification
- G06F 3/0481: 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
- G06F 3/04842: Selection of displayed objects or displayed text elements (G06F3/0482 takes precedence)
- G06F 16/355: Creation or modification of classes or clusters
- G06F 16/93: Document management systems
- G06F 40/166: Editing, e.g. inserting or deleting
- G06F 40/20: Natural language analysis (semantic analysis of natural language G06F40/30)
- G06F 40/279: Recognition of textual entities
- G06F 40/30: Semantic analysis
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## 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.

## Claims

### Claim 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.

### Claim 2 (depends on 1)

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.

### Claim 3

(canceled)

### Claim 4 (depends on 2)

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.

### Claim 5 (depends on 4)

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.

### Claim 6 (depends on 1)

The method of claim 1, wherein:
the document is a webpage, and
the selected content is program code.

### Claim 7 (depends on 1)

The method of claim 1, wherein the clipboard is a copy/paste buffer for a copy/paste operation.

### Claim 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.

### Claim 9 (depends on 8)

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.

### Claim 10

(canceled)

### Claim 11 (depends on 9)

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.

### Claim 12 (depends on 11)

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.

### Claim 13 (depends on 8)

The computer program product of claim 8, wherein the clipboard is a copy/paste buffer for a copy/paste operation.

### Claim 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.

### Claim 15 (depends on 14)

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.

### Claim 16

(canceled)

### Claim 17 (depends on 15)

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.

### Claim 18 (depends on 17)

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.

### Claim 19 (depends on 14)

The computer system of claim 14, wherein:
the document is a webpage, and
the selected content is program code.

### Claim 20 (depends on 14)

The computer system of claim 14, wherein the clipboard is a copy/paste buffer for a copy/paste operation.

### Claim 21 (depends on 1)

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.

### Claim 22 (depends on 1)

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.
