# US 2021/0174030 A1 · Chatbot providing a defeating reply

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

- Number: US 2021/0174030 A1
- Document ID: US20210174030A1
- Status: Published application
- Kind: A1
- Application number: 17/112,081
- Filed: 2020-12-04
- Published: 2021-06-10
- Earliest claimed: 2019-12-05
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Boris Galitsky
- Web page: https://patentgrep.com/patent/US20210174030A1

## CPC

- G06F 40/35: Discourse or dialogue representation
- G06F 40/253: Grammatical analysis; Style critique
- G06F 40/279: Recognition of textual entities
- H04L 51/02: using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages
- G06F 40/211: Syntactic parsing, e.g. based on context-free grammar [CFG] or unification grammars
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Techniques are disclosed for generating defeating textual replies. A computer-implemented method generates a first communicative discourse tree from an utterance and as second communicative discourse tree from a candidate answer derived from a search of keywords in the utterance. The method translates the first communicative discourse tree into a first logical formula from and the second communicative discourse tree into a second logical formula. The method determines that the first logical formula is a negation of the second logical formula. The method further provides the candidate answer to a user device responsive to the determining.

## Claims

### Claim 1

A method for negating a claim within an utterance, the method comprising:
accessing a user utterance comprising fragments of text, wherein each fragment is an elementary discourse unit;
generating, from the user utterance, a first discourse tree that represents rhetorical relationships between the fragments of text of the user utterance, wherein the discourse tree comprises a plurality of nodes, each nonterminal node representing a rhetorical relationship between two of the fragments, each terminal node of the nodes of the discourse tree being associated with one of the fragments;
constructing, from the discourse tree, a first communicative discourse tree by matching each fragment that has a verb in the discourse tree with a predetermined verb signature;
translating the first communicative discourse tree into a first logical formula;
identifying topic keywords from the user utterance;
providing the topic keywords to a search engine;
obtaining, from the search engine, a candidate answer comprising fragments of text;
generating, from the candidate answer, a second discourse tree that represents rhetorical relationships between the fragments of text of the candidate answer;
constructing, from the second discourse tree, a second communicative discourse tree;
translating the second communicative discourse tree into a second logical formula;
determining that the first logical formula is a negation of the second logical formula; and
providing the candidate answer to a user device responsive to the determining.

### Claim 2 (depends on 1)

The method of claim 1, wherein the translating of each communicative discourse tree comprises:
identifying, from the respective communicative discourse tree, a rhetorical relation that corresponds to a nucleus elementary discourse unit and a satellite elementary discourse unit;
constructing, from the identified rhetorical relation, a logical formula that has a reason and a conclusion by mapping the nucleus elementary discourse unit to the reason and the satellite elementary discourse unit to the conclusion;
identifying, from the nucleus elementary discourse unit, a first logical atom that corresponds to text of the nucleus elementary discourse unit;
identifying, from the satellite elementary discourse unit, a second logical atom that corresponds to text of the satellite elementary discourse unit;
substituting, in the logical formula, the first logical atom for the reason; and
substituting, in the logical formula, the second logical atom for the conclusion.

### Claim 3 (depends on 2)

The method of claim 2, wherein the logical atom is compatible with logical atomism.

### Claim 4 (depends on 2)

The method of claim 2, wherein identifying a logical atom comprises identifying an entity, an action associated with the entity, and a condition associated with the entity.

### Claim 5 (depends on 2)

The method of claim 2, wherein the identified rhetorical relation includes one of cause, explanation, condition, or reason.

### Claim 6 (depends on 1)

The method of claim 1, wherein identifying a negation comprises, iteratively, for a predefined number of iterations:
creating a theorem by applying a set of argumentation rules to a set of axioms and the second logical formula;
comparing the theorem to the first logical formula; and
responsive to determining that the theorem is a negation of the first logical formula, identifying the first logical formula as a negation of the second logical formula.

### Claim 7 (depends on 1)

The method of claim 1, wherein identifying topic keywords comprises identifying, in the user utterance, one or more nouns or entities.

### Claim 8 (depends on 1)

The method of claim 1, further comprising receiving the user utterance from the user device.

### Claim 9 (depends on 1)

The method of claim 1, wherein matching each fragment that has a verb in a discourse tree to a predetermined verb signature comprises:
accessing a plurality of verb signatures, wherein each verb signature comprises the verb of the fragment and a sequence of thematic roles, wherein each thematic roles describes a respective relationship between the verb and related words;
determining, for each verb signature of the plurality of verb signatures, a plurality of thematic roles of the respective signature that match a role of a word in the fragment;
selecting a particular verb signature from the plurality of verb signatures based on the particular verb signature comprising a highest number of matches; and
associating the particular verb signature with the fragment.

### Claim 10 (depends on 1)

The method of claim 1, wherein the logical formula is an expression of formal logic that includes logical atoms derived from text.

### Claim 11

A non-transitory computer-readable storage medium storing computer-executable program instructions, wherein when executed by a processing device, the program instructions cause the processing device to perform operations comprising:
accessing a user utterance comprising fragments of text, wherein each fragment is an elementary discourse unit;
generating, from the user utterance, a first discourse tree that represents rhetorical relationships between the fragments of text of the user utterance, wherein the discourse tree comprises a plurality of nodes, each nonterminal node representing a rhetorical relationship between two of the fragments, each terminal node of the nodes of the discourse tree being associated with one of the fragments;
constructing, from the discourse tree, a first communicative discourse tree by matching each fragment that has a verb in the discourse tree with a predetermined verb signature;
translating the first communicative discourse tree into a first logical formula;
identifying topic keywords from the user utterance;
providing the topic keywords to a search engine;
obtaining, from the search engine, a candidate answer comprising fragments of text;
generating, from the candidate answer, a second discourse tree that represents rhetorical relationships between the fragments of text of the candidate answer;
constructing, from the second discourse tree, a second communicative discourse tree;
translating the second communicative discourse tree into a second logical formula;
determining that the first logical formula is a negation of the second logical formula; and
providing the candidate answer to a user device responsive to the determining.

### Claim 12 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the translating of each communicative discourse tree comprises:
identifying, from the respective communicative discourse tree, a rhetorical relation that corresponds to a nucleus elementary discourse unit and a satellite elementary discourse unit;
constructing, from the identified rhetorical relation, a logical formula that has a reason and a conclusion by mapping the nucleus elementary discourse unit to the reason and the satellite elementary discourse unit to the conclusion;
identifying, from the nucleus elementary discourse unit, a first logical atom that corresponds to text of the nucleus elementary discourse unit;
identifying, from the satellite elementary discourse unit, a second logical atom that corresponds to text of the satellite elementary discourse unit;
substituting, in the logical formula, the first logical atom for the reason; and
substituting, in the logical formula, the second logical atom for the conclusion.

### Claim 13 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein the logical atom is compatible with logical atomism.

### Claim 14 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein identifying a negation comprises, iteratively, for a predefined number of iterations:
creating a theorem by applying a set of argumentation rules to a set of axioms and the second logical formula;
comparing the theorem to the first logical formula; and
responsive to determining that the theorem is a negation of the first logical formula, identifying the first logical formula as a negation of the second logical formula.

### Claim 15 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein matching each fragment that has a verb in a discourse tree to a predetermined verb signature comprises:
accessing a plurality of verb signatures, wherein each verb signature comprises the verb of the fragment and a sequence of thematic roles, wherein each thematic roles describes a respective relationship between the verb and related words;
determining, for each verb signature of the plurality of verb signatures, a plurality of thematic roles of the respective signature that match a role of a word in the fragment;
selecting a particular verb signature from the plurality of verb signatures based on the particular verb signature comprising a highest number of matches; and
associating the particular verb signature with the fragment.

### Claim 16

A system comprising:
a non-transitory computer-readable medium storing computer-executable program instructions; and
a processing device communicatively coupled to the non-transitory computer-readable medium for executing the computer-executable program instructions, wherein executing the computer-executable program instructions configures the processing device to perform operations comprising:
accessing a user utterance comprising fragments of text, wherein each fragment is an elementary discourse unit;
generating, from the user utterance, a first discourse tree that represents rhetorical relationships between the fragments of text of the user utterance, wherein the discourse tree comprises a plurality of nodes, each nonterminal node representing a rhetorical relationship between two of the fragments, each terminal node of the nodes of the discourse tree being associated with one of the fragments;
constructing, from the discourse tree, a first communicative discourse tree by matching each fragment that has a verb in the discourse tree with a predetermined verb signature;
translating the first communicative discourse tree into a first logical formula;
identifying topic keywords from the user utterance;
providing the topic keywords to a search engine;
obtaining, from the search engine, a candidate answer comprising fragments of text;
generating, from the candidate answer, a second discourse tree that represents rhetorical relationships between the fragments of text of the candidate answer;
constructing, from the second discourse tree, a second communicative discourse tree;
translating the second communicative discourse tree into a second logical formula;
determining that the first logical formula is a negation of the second logical formula; and
providing the candidate answer to a user device responsive to the determining.

### Claim 17 (depends on 16)

The system of claim 16, wherein the translating of each communicative discourse tree comprises:
identifying, from the respective communicative discourse tree, a rhetorical relation that corresponds to a nucleus elementary discourse unit and a satellite elementary discourse unit;
constructing, from the identified rhetorical relation, a logical formula that has a reason and a conclusion by mapping the nucleus elementary discourse unit to the reason and the satellite elementary discourse unit to the conclusion;
identifying, from the nucleus elementary discourse unit, a first logical atom that corresponds to text of the nucleus elementary discourse unit;
identifying, from the satellite elementary discourse unit, a second logical atom that corresponds to text of the satellite elementary discourse unit;
substituting, in the logical formula, the first logical atom for the reason; and
substituting, in the logical formula, the second logical atom for the conclusion.

### Claim 18 (depends on 17)

The system of claim 17, wherein the translating of each communicative discourse tree comprises mapping one or more rhetorical relations or elementary discourse units of the communicative discourse tree to a template, wherein the template identifies a corresponding logical formula.

### Claim 19 (depends on 16)

The system of claim 16, wherein identifying a negation comprises, iteratively, for a predefined number of iterations:
creating a theorem by applying a set of argumentation rules to a set of axioms and the second logical formula;
comparing the theorem to the first logical formula; and
responsive to determining that the theorem is a negation of the first logical formula, identifying the first logical formula as a negation of the second logical formula.

### Claim 20 (depends on 16)

The system of claim 16, wherein matching each fragment that has a verb in a discourse tree to a predetermined verb signature comprises:
accessing a plurality of verb signatures, wherein each verb signature comprises the verb of the fragment and a sequence of thematic roles, wherein each thematic roles describes a respective relationship between the verb and related words;
determining, for each verb signature of the plurality of verb signatures, a plurality of thematic roles of the respective signature that match a role of a word in the fragment;
selecting a particular verb signature from the plurality of verb signatures based on the particular verb signature comprising a highest number of matches; and
associating the particular verb signature with the fragment.
