# US 2023/0274087 A1 · Logical role determination of clauses in conditional constructions of natural language

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

- Number: US 2023/0274087 A1
- Document ID: US20230274087A1
- Status: Published application
- Kind: A1
- Application number: 17/682,177
- Filed: 2022-02-28
- Published: 2023-08-31
- Earliest claimed: 2022-02-28
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Octavian Popescu; Irene Lizeth Manotas Gutiérrez; Vadim Sheinin; Ngoc Phuoc An Vo; Algimantas Cerniauskas
- Web page: https://patentgrep.com/patent/US20230274087A1

## CPC

- G06F 40/211: Syntactic parsing, e.g. based on context-free grammar [CFG] or unification grammars
- G06F 40/289: Phrasal analysis, e.g. finite state techniques or chunking
- 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

A natural language processor and applicable method receives an input sentence of natural language from a natural language corpus. The input sentence comprises sentence clauses that include a conditional clause. The processor performs natural language processing (NLP), using an NLP model, on the input sentence. The processing comprises using a set of rules determining the sentence clauses and which of the sentence clause is the conditional clause, determining one or more logical connections between the sentence clauses, and determining a role of the sentence clauses based upon the one or more identified logical connections. The sentence clauses are tagged to produce a labeled sentence that is output to an entity that is one or more of a storage device, a network interface, a storage device, and an input of a further language processor or application.

## Claims

### Claim 1

A computer implemented method, using a natural language processor, comprising:
receiving an input sentence of natural language from a natural language corpus, the sentence comprising sentence clauses that include a conditional clause;
performing natural language processing (NLP), using an NLP model, on the input sentence, wherein the processing comprises, using a set of rules:
determining the sentence clauses and which of the sentence clause is the conditional clause;
determining one or more logical connections between the sentence clauses; and
determining a role of the sentence clauses based upon the one or more identified logical connections; and
tagging the sentence clauses to produce a labeled sentence; and
outputting the labeled sentence to an entity selected from the group consisting of a storage device, a network interface, a storage device, and an input of a further language processor or application.

### Claim 2 (depends on 1)

The method of claim 1, wherein the role is selected from the group consisting of: a context, a logical test clause (LTC), a consequent, and an independent.

### Claim 3 (depends on 2)

The method of claim 2, further comprising classifying the consequent as either an action or a consequence.

### Claim 4 (depends on 1)

The method of claim 1, wherein the NLP uses a parser that uses lexical, syntactic, and semantic parsing, and the rules comprise syntactic rules and semantic rules.

### Claim 5 (depends on 4)

The method of claim 4, wherein the parser is used for:
identifying lemmas, dependencies, constituents, and features; and
producing sentence metadata.

### Claim 6 (depends on 5)

The method of claim 5, wherein the NLP uses an aligner for:
receiving the sentence and the sentence metadata comprising syntactic and semantic information; and
producing sentence information attached to at least one of words or phrases of the sentence by applying usable alignment aspects to the sentence.

### Claim 7 (depends on 6)

The method of claim 6, wherein the useable alignment aspects are selected from the group consisting of: a) inchoative verbs; b) transparent verbs; c) modal verbal constructions; d) auxiliary detection; e) ambiguity; f) imperative construction; g) coordination; h) verbal phrase; i) idiomatic usage; and j) parts-of-speech (PoS), PoS constituents, and PoS corrections.

### Claim 8 (depends on 7)

The method of claim 7, wherein the usable alignment aspects comprise: a) inchoative verbs; b) transparent verbs; c) modal verbal constructions; d) auxiliary detection; e) ambiguity; f) imperative construction; g) coordination; h) verbal phrase; i) idiomatic usage; and j) parts-of-speech (PoS), PoS constituents, or PoS corrections.

### Claim 9 (depends on 8)

The method of claim 8, wherein:
the inchoative verbs include “create” and “show”;
the transparent verbs include “determine” and “believe”;
the modal verbal construction includes “needs to be”;
the auxiliary detection includes “get” and “be” + [not, no] + [noun, adj, prep];
the ambiguity includes “orders”, “request”, “check”, and “update”;
the imperative construction includes “have to” and “need to”; and
the coordination includes “and”, “or”, “and/or”, “but”, and “otherwise”.

### Claim 10 (depends on 6)

The method of claim 6, wherein the NLP uses a rule executor for:
receiving the ordered information;
determining a set of triggers within the ordered information; and
for all triggers, performing all-trigger activities.

### Claim 11 (depends on 10)

The method of claim 10, wherein a rule applier performs the all-trigger activities comprising:
determining a beginning of a conditional clause;
determining an end of the conditional clause;
checking to determine whether the trigger really starts a conditional rule;
checking a compatibility of previously extracted triggers;
extracting the conditional clause;
extracting phrases related to the conditional;
choosing an action or consequence; and
choosing an unconditional action when one exists.

### Claim 12 (depends on 11)

The method of claim 11, wherein the rule applier further performs:
determining an action versus entailment;
determining a continuation of the conditional clause; and
resolving a conflict associated with the conditional clause.

### Claim 13 (depends on 11)

The method of claim 11, wherein:
the determining of the beginning of a conditional clause comprises use of the words “if”, “when”, and “unless”;
the determining of the end of the conditional clause comprises use of the word “then”;
the determining the action versus entailment comprises using at least one of imperatives and the modals “should” and “can”;
the resolving of the conflicts associated with the conditional clause use rules for determining which is context and which is not.

### Claim 14 (depends on 1)

The method of claim 1, further comprising using a pre-processor for:
determining whether a sequence of lexical items introduces a logical test;
determining whether there is a predicate following the beginning of a logical test;
determining a scope of the predicate; and
determining the end of the conditional clause.

### Claim 15 (depends on 11)

The method of claim 11, wherein the rule applier identifies logically linked conditional clauses that are logically linked to a logical test clause (LTC) by:
determining whether an argument from a particular clause is linked syntactically or semantically to the conditional clause;
extracting all such conditional clauses as candidates;
identifying an imperative versus an entailment character of the clause; and
determining for each candidate whether it is a context clause or a consequent clause.

### Claim 16

A natural language processing apparatus, comprising:
a memory; and
a processor that is configured to:
receive an input sentence of natural language from a natural language corpus, the sentence comprising sentence clauses that include a conditional clause;
perform natural language processing (NLP), using an NLP model, the input sentence, wherein the processing comprises, using a set of rules:
determine the sentence clauses and which of the sentence clause is the conditional clause;
determine one or more logical connections between the sentence clauses; and
determine a role of the sentence clauses based upon the one or more identified logical connections; and
tag the sentence clauses to produce a labeled sentence; and
output the labeled sentence to an entity selected from the group consisting of a storage device, a network interface, a storage device, and an input of a further language processor or application.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein the NLP uses a parser that uses lexical, syntactic, and semantic parsing, and the rules comprise syntactic rules and semantic rules.

### Claim 18 (depends on 16)

The apparatus of claim 16, wherein the NLP uses an aligner for:
receiving the sentence and the sentence metadata; and
producing sentence information attached to at least one of words or phrases of the sentence by applying usable alignment aspects to the sentence.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein the NLP uses a rule executor for:
receiving sentence information;
determining a set of triggers within the sentence information; and
for all triggers, performing all-trigger activities, wherein the all-trigger activities cause the processor to:
determine a beginning of a conditional clause;
determine an end of the conditional clause;
check to determine whether the trigger really starts a conditional rule;
check a compatibility of previously extracted triggers;
extract the conditional clause;
extract phrases related to the conditional;
choose an action or consequence; and
choose an unconditional action when one exists.

### Claim 20

A computer program product for a natural language processing apparatus, the computer program product comprising:
one or more computer readable storage media, and program instructions collectively stored on the one or more computer readable storage media, the program instructions comprising program instructions to:
receive an input sentence of natural language from a natural language corpus, the sentence comprising sentence clauses that include a conditional clause;
perform natural language processing (NLP), using an NLP model, the input sentence, wherein the processing comprises, using a set of rules:
determine the sentence clauses and which of the sentence clause is the conditional clause;
determine one or more logical connections between the sentence clauses; and
determine a role of the sentence clauses based upon the one or more identified logical connections; and
tag the sentence clauses to produce a labeled sentence; and
output the labeled sentence to an entity selected from the group consisting of a storage device, a network interface, a storage device, and an input of a further language processor or application.
