# US 2020/0394273 A1 · Self-learning natural-language generation rules engine with diachronic linguistic analysis

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

- Number: US 2020/0394273 A1
- Document ID: US20200394273A1
- Status: Published application
- Kind: A1
- Application number: 16/438,715
- Filed: 2019-06-12
- Published: 2020-12-17
- Earliest claimed: 2019-06-12
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Craig M. Trim; Martin G. Keen; Michael Bender; Aaron K. Baughman
- Web page: https://patentgrep.com/patent/US20200394273A1

## CPC

- G06F 40/56: Natural language generation
- G06F 40/30: Semantic analysis
- G06F 40/55: Rule-based translation
- G06N 5/025: Extracting rules from data
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A self-learning natural-language generation (NLG) system receives raw data from Internet-of-Things sensors or other data sources and a set of natural-language reports previously generated from the raw data by a legacy report-generation mechanism. The system divides the reports into two groups that are distinguished by differences in temporal characteristics of the reports or of the raw data from which each report is generated. The system performs a diachronic linguistic analysis that correlates values of the temporal characteristics with differences between linguistic features of each report group's natural-language text. The system creates translation rules that instruct the NLG system how to reproduce these differences and uses the rules to translate the raw data into its own natural-language reports. The system then compares the new and legacy reports and, if the new reports do not accurately reproduce the linguistic differences, analyzes more reports to improve its ability to accurately generate natural-language text.

## Claims

### Claim 1

A natural-language generation (NLG) system comprising a processor, a memory coupled to the processor, and a computer-readable hardware storage device coupled to the processor, the storage device containing program code configured to be run by the processor via the memory to implement a method for self-learning natural-language generation, the method comprising:
the processor retrieving raw data from one or more extrinsic sources;
the processor partitioning the raw data into short-term data that is more recent than a predetermined threshold date and long-term data that is at least as old as the threshold date;
the processor receiving a set of short-term legacy reports that comprise natural-language translations of subsets of the short-term data and a set of long-term legacy reports that comprise natural-language translations of subsets of the long-term data;
the processor performing a diachronic linguistic analysis that identifies linguistic differences between the short-term legacy reports and the long-term legacy reports;
the processor inferring, as a function of the linguistic differences, one or more translation rules by which a rules engine of the NLG system generates natural-language text; and
the processor storing the one or more translation rules in a rulebase of the NLG system.

### Claim 2 (depends on 1)

The system of claim 1, where the diachronic linguistic analysis comprises:
the processor identifying a short-term linguistic characteristic that is characteristic of natural language generated from short-term data but is not characteristic of natural language generated from long-term data;
the processor identifying a long-term linguistic characteristic that is characteristic of natural language generated from long-term data but is not characteristic of natural language generated from short-term data; and
the processor identifying an achronal linguistic characteristic that is both characteristic of natural language generated from short-term data and characteristic of natural language generated from long-term data.

### Claim 3 (depends on 1)

The system of claim 1, where the one or more extrinsic sources comprise Internet-of-Things (IoT) devices.

### Claim 4 (depends on 1)

The system of claim 1,
where the one or more translation rules comprise a first rule for translating short-term data into natural language and a second rule for translating long-term data into natural language, and
where the first rule specifies an action that is distinct from any action specified by the second rule.

### Claim 5 (depends on 1)

The system of claim 1, where at least one of the inferred translation rules specifies that the rules engine should determine whether a block of input data is short-term data or long-term data before determining how to translate the block of input data into natural language.

### Claim 6 (depends on 1)

The system of claim 1, further comprising:
the processor generating a set of NLG-generated reports by using the inferred rules to translate the raw data into natural language.

### Claim 7 (depends on 6)

The system of claim 6, further comprising:
the processor comparing the NLG-generated reports to the legacy reports; and
the processor updating the translation rules such that the updated translation rules translate the received raw data into natural language that more closely matches natural language comprised by the legacy reports.

### Claim 8

A method comprising:
a processor of a self-learning natural-language generation system retrieving raw data from one or more extrinsic sources, where the system comprises the processor, a memory coupled to the processor, and a computer-readable hardware storage device coupled to the processor, the storage device containing program code configured to be run by the processor via the memory to implement the method;
the processor partitioning the raw data into short-term data that is more recent than a predetermined threshold date and long-term data that is at least as old as the threshold date;
the processor receiving a set of short-term legacy reports that comprise natural-language translations of subsets of the short-term data and a set of long-term legacy reports that comprise natural-language translations of subsets of the long-term data;
the processor performing a diachronic linguistic analysis that identifies linguistic differences between the short-term legacy reports and the long-term legacy reports;
the processor inferring, as a function of the linguistic differences, one or more translation rules by which a rules engine of the NLG system generates natural-language text; and
the processor storing the one or more translation rules in a rulebase of the NLG system.

### Claim 9 (depends on 8)

The method of claim 8, where the diachronic linguistic analysis comprises:
the processor identifying a short-term linguistic characteristic that is characteristic of natural language generated from short-term data but is not characteristic of natural language generated from long-term data;
the processor identifying a long-term linguistic characteristic that is characteristic of natural language generated from long-term data but is not characteristic of natural language generated from short-term data; and
the processor identifying an achronal linguistic characteristic that is both characteristic of natural language generated from short-term data and characteristic of natural language generated from long-term data.

### Claim 10 (depends on 8)

The method of claim 8, where the one or more extrinsic sources comprise Internet-of-Things (IoT) devices.

### Claim 11 (depends on 8)

The method of claim 8,
where the one or more translation rules comprise a first rule for translating short-term data into natural language and a second rule for translating long-term data into natural language, and
where the first rule specifies an action that is distinct from any action specified by the second rule.

### Claim 12 (depends on 8)

The method of claim 8, where at least one of the inferred translation rules specifies that the rules engine should determine whether a block of input data is short-term data or long-term data before determining how to translate the block of input data into natural language.

### Claim 13 (depends on 8)

The method of claim 8, further comprising:
the processor generating a set of NLG-generated reports by using the inferred rules to translate the raw data into natural language;
the processor comparing the NLG-generated reports to the legacy reports; and
the processor updating the translation rules such that the updated translation rules translate the received raw data into natural language that more closely matches natural language comprised by the legacy reports.

### Claim 14 (depends on 8)

The method of claim 8, further comprising providing at least one support service for at least one of creating, integrating, hosting, maintaining, and deploying computer-readable program code in the computer system, wherein the computer-readable program code in combination with the computer system is configured to implement the retrieving, the partitioning, the receiving, the performing, the inferring, and the storing.

### Claim 15

A computer program product, comprising a computer-readable hardware storage device having a computer-readable program code stored therein, the program code configured to be executed by a natural-language generation system comprising a processor, a memory coupled to the processor, and a computer-readable hardware storage device coupled to the processor, the storage device containing program code configured to be run by the processor via the memory to implement a method for self-learning natural-language generation, method comprising:
the processor retrieving raw data from one or more extrinsic sources;
the processor partitioning the raw data into short-term data that is more recent than a predetermined threshold date and long-term data that is at least as old as the threshold date;
the processor receiving a set of short-term legacy reports that comprise natural-language translations of subsets of the short-term data and a set of long-term legacy reports that comprise natural-language translations of subsets of the long-term data;
the processor performing a diachronic linguistic analysis that identifies linguistic differences between the short-term legacy reports and the long-term legacy reports;
the processor inferring, as a function of the linguistic differences, one or more translation rules by which a rules engine of the NLG system generates natural-language text; and
the processor storing the one or more translation rules in a rulebase of the NLG system.

### Claim 16 (depends on 15)

The computer program product of claim 15, where the diachronic linguistic analysis comprises:
the processor identifying a short-term linguistic characteristic that is characteristic of natural language generated from short-term data but is not characteristic of natural language generated from long-term data;
the processor identifying a long-term linguistic characteristic that is characteristic of natural language generated from long-term data but is not characteristic of natural language generated from short-term data; and
the processor identifying an achronal linguistic characteristic that is both characteristic of natural language generated from short-term data and characteristic of natural language generated from long-term data.

### Claim 17 (depends on 15)

The computer program product of claim 15, where the one or more extrinsic sources comprise Internet-of-Things (IoT) devices.

### Claim 18 (depends on 15)

The computer program product of claim 15,
where the one or more translation rules comprise a first rule for translating short-term data into natural language and a second rule for translating long-term data into natural language, and
where the first rule specifies an action that is distinct from any action specified by the second rule.

### Claim 19 (depends on 15)

The computer program product of claim 15, where at least one of the inferred translation rules specifies that the rules engine should determine whether a block of input data is short-term data or long-term data before determining how to translate the block of input data into natural language.

### Claim 20 (depends on 15)

The computer program product of claim 15, further comprising:
the processor generating a set of NLG-generated reports by using the inferred rules to translate the raw data into natural language;
the processor comparing the NLG-generated reports to the legacy reports; and
the processor updating the translation rules such that the updated translation rules translate the received raw data into natural language that more closely matches natural language comprised by the legacy reports.
