# US 2026/0073135 A1 · Transaction evaluation against rules using large language models

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

- Number: US 2026/0073135 A1
- Document ID: US20260073135A1
- Status: Published application
- Kind: A1
- Application number: 18/830,001
- Filed: 2024-09-10
- Published: 2026-03-12
- Earliest claimed: 2024-09-10
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Kyle Gene Brown; Steven Edward Atkin
- Web page: https://patentgrep.com/patent/US20260073135A1

## CPC

- G06F 40/205: Parsing
- G06F 8/30: Creation or generation of source code
- G06F 40/30: Semantic analysis
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented method for evaluating transactions against rules includes parsing sections of a document with conditional language and generating rules from the conditional language using a large language model. The rules are associated with corresponding sections of the document such that when a rule fires the rule is associated with the corresponding sections of the document. The rules are executed against transactions to discover exceptions. A narrative is generated to explain the exceptions to a user. The narrative includes the rules with the corresponding sections and an explanation.

## Claims

### Claim 1

A computer-implemented method for evaluating transactions against rules, comprising:
parsing sections of a document with conditional language;
generating rules from the conditional language using a large language model;
associating the rules with corresponding sections of the document such that when a rule fires the rule is associated with the corresponding sections of the document;
executing the rules against transactions to discover exceptions; and
generating a narrative to explain the exceptions to a user, the narrative including the rules with the corresponding sections and an explanation.

### Claim 2 (depends on 1)

The method of claim 1, wherein parsing sections of the document with conditional language includes extracting statements expressed as if-then style rules.

### Claim 3 (depends on 1)

The method of claim 1, wherein associating the rules with corresponding sections of the document includes prompting the large language model with a prompt that includes an instruction to add a document reference, from which the rule was taken, to generated code so that document reference is logged when the rule fires.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
logging the document reference in a log at execution time; and
parsing, by the large language model, the log including the document reference in the explanation.

### Claim 5 (depends on 3)

The method of claim 3, wherein the document reference includes a uniform resource locator (URL) link.

### Claim 6 (depends on 1)

The method of claim 1, wherein associating the rules with corresponding sections includes:
identifying the corresponding sections for which the rules are ambiguous; and
resolving an ambiguity by specifying necessary details needed in creation of the rule and in the explanation.

### Claim 7 (depends on 1)

The method of claim 1, wherein generating rules from the conditional language includes tuning the large language model on a specific rule-based language or library set with a special-purpose code generator large language model.

### Claim 8 (depends on 1)

The method of claim 1, further comprising responsive to an exception, performing an automatic notification action to an entity that caused the exception.

### Claim 9 (depends on 1)

The method of claim 1, wherein the rules are generated before runtime to reduce calls to the large language model.

### Claim 10

A transaction evaluation system, comprising:
a hardware processor; and
a memory that stores a computer program which, when executed by the hardware processor, causes the hardware processor to:
parse sections of a document with conditional language;
generate rules from the conditional language using a large language model;
associate the rules with corresponding sections of the document such that when a rule fires the rule is associated with the corresponding sections of the document;
execute the rules against transactions to discover exceptions; and
generate a narrative to explain the exceptions to a user, the narrative including the rules with the corresponding sections and an explanation.

### Claim 11 (depends on 10)

The system of claim 10, wherein the computer program causes the hardware processor to extract statements expressed as if-then style rules.

### Claim 12 (depends on 10)

The system of claim 10 wherein the computer program causes the hardware processor to prompt the large language model with a prompt that includes an instruction to add a document reference, from which the rule was taken, to generated code so that document reference is logged when the rule fires.

### Claim 13 (depends on 12)

The system of claim 12, wherein the computer program causes the hardware processor to log the document reference in a log at execution time; and parse, by the large language model, the log including the document reference in the explanation.

### Claim 14 (depends on 12)

The system of claim 12, wherein the document reference includes a uniform resource locator (URL) link.

### Claim 15 (depends on 10)

The system of claim 10, wherein the computer program causes the hardware processor to identify the corresponding sections for which the rules are ambiguous; and resolve an ambiguity by specifying necessary details needed in creation of the rule and in the explanation.

### Claim 16 (depends on 10)

The system of claim 10, wherein the computer program causes the hardware processor to tune the large language model on a specific rule-based language or library set with a special-purpose code generator large language model.

### Claim 17 (depends on 10)

The system of claim 10, wherein the computer program causes the hardware processor to, responsive to an exception, perform an automatic notification action to an entity that caused the exception.

### Claim 18 (depends on 10)

The system of claim 10, wherein the rules are generated before runtime to reduce calls to the large language model.

### Claim 19

A computer program product for deploying a transaction evaluation system, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a hardware processor to cause the hardware processor to:
parse sections of a document with conditional language;
generate rules from the conditional language using a large language model;
associate the rules with corresponding sections of the document such that when a rule fires the rule is associated with the corresponding sections of the document;
execute the rules against transactions to discover exceptions; and
generate a narrative to explain the exceptions to a user, the narrative including the rules with the corresponding sections and an explanation.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the program instructions executable by the hardware processor cause the hardware processor to generate the rules before runtime to reduce calls to the large language model.
