# US 2022/0036188 A1 · Systems and methods for legal document generation

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

- Number: US 2022/0036188 A1
- Document ID: US20220036188A1
- Status: Published application
- Kind: A1
- Application number: 17/503,922
- Filed: 2021-10-18
- Published: 2022-02-03
- Earliest claimed: 2018-12-07
- Assignees: Capital One Services, LLC
- Applicants: Capital One Services, LLC
- Inventors: Austin Walters; Jeremy Edward Goodsitt; Fardin Abdi Taghi Abad; Reza Farivar; Vincent PHAM; Mark Watson; Kenneth Taylor; Anh TRUONG
- Web page: https://patentgrep.com/patent/US20220036188A1

## CPC

- G06N 3/08: Learning methods
- G06F 40/289: Phrasal analysis, e.g. finite state techniques or chunking
- G06F 40/30: Semantic analysis
- G06F 40/56: Natural language generation
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/09: Supervised learning
- G06Q 50/18: Legal services
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

A system is configured to receive first training data, train a first neural network (NN) based on the first training data, receive second training data, train a second NN based on the second training data, receive a first plain English phrase, provide the first plain English phrase to the first NN, generate, via the first NN, one or more first legal clauses based on the first plain English phrase, receive a second plain English phrase, provide the second plain English phrase to the first NN, generate, via the first NN, one or more second legal clauses based on the second plain English phrase, provide the one or more first legal clauses and the one or more second legal clauses to the second NN, and generate, via the second NN, a legal document based on the one or more first legal clauses and the one or more second legal clauses.

## Claims

### Claim 1

A system, comprising:
one or more processors; and
a memory in communication with the one or more processors and storing instructions that, when executed by the one or more processors, are configured to cause the system to:
receive first training data;
train a first neural network (NN) based on the first training data;
receive second training data;
train a second NN based on the second training data;
receive a third training data;
train a third NN based on the third training data;
receive a first phrase;
determine whether the first phrase matches the first NN or the third NN;
provide the first phrase to the first NN or the third NN based on determining whether the first phrase corresponds with the first NN or the third NN;
generate, via the first NN or the third NN, one or more first legal clauses based on the first phrase;
receive a second phrase;
determine whether the second phrase corresponds with the first NN or the third NN;
provide the second phrase to the first NN or the third NN based on determining whether the second phrase corresponds with the first NN or the third NN;
generate, via the first NN or the third NN, one or more second legal clauses based on the second phrase;
provide the one or more first legal clauses and the one or more second legal clauses to the second NN; and
generate, via the second NN, a legal document based on the one or more first legal clauses and the one or more second legal clauses.

### Claim 2 (depends on 1)

The system of claim 1, wherein the memory storing further instructions configured to cause the system to:
receive one or more corrected first legal clauses from a user device;
receive a confirmation that the one or more second legal clauses are accurate from the user device;
re-train the first NN or the third NN based on the one or more corrected first legal clauses received from the user device; and
re-train the second NN based on the confirmation received from the user device.

### Claim 3 (depends on 1)

The system of claim 1, wherein the legal document generated is a terms of service document or a non-disclosure agreement.

### Claim 4 (depends on 1)

The system of claim 1, wherein:
first training data comprises phrases paired with respective legal clauses, and the second training data comprises legal clauses and corresponding legal documents.

### Claim 5 (depends on 1)

The system of claim 1, wherein the first NN is a first recurrent neural network (RNN), the second NN is a convolutional neural network (CNN), and the third NN is a second recurrent neural network trained with different training data than the first recurrent neural network.

### Claim 6 (depends on 1)

The system of claim 1, wherein the first NN is a first recurrent neural network (RNN), the second NN is a second RNN, and the third NN is a third RNN.

### Claim 7 (depends on 6)

The system of claim 6, wherein the second RNN utilizes sentence embeddings to generate the legal document from the one or more first legal clauses and the one or more second legal clauses.

### Claim 8

A method for generating a legal document, comprising:
receiving first training data;
training a first neural network (NN) based on the first training data;
receiving second training data;
training a second NN based on the second training data;
receiving a third training data;
training a third NN based on the third training data;
receiving a first plain English phrase;
determining whether the first phrase corresponds with the first NN or the third NN;
providing the first phrase to the first NN or the third NN based on determining whether the first phrase corresponds with the first NN or the third NN;
generating, via the first NN or the third NN, one or more first legal clauses based on the first phrase;
receiving a second phrase;
determining whether the second phrase matches the first NN or the third NN;
providing the second phrase to the first NN or the third NN based on determining whether the second phrase corresponds with the first NN or the third NN;
generating, via the first NN or the third NN, one or more second legal clauses based on the second phrase;
providing the one or more first legal clauses and the one or more second legal clauses to the second NN; and
generating, via the second NN, the legal document based on the one or more first legal clauses and the one or more second legal clauses.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
receiving one or more corrected first legal clauses from a user device;
receiving a confirmation that the one or more second legal clauses are accurate from the user device;
re-training the first NN or the third NN based on the one or more corrected first legal clauses received from the user device; and
re-training the second NN based on the confirmation received from the user device

### Claim 10 (depends on 8)

The method of claim 8, wherein:
the legal document generated is a terms of service document or a non-disclosure agreement, and
first training data comprises plain English phrases paired with respective legal clauses.

### Claim 11 (depends on 10)

The method of claim 10, wherein the second training data comprises legal clauses and corresponding legal documents.

### Claim 12 (depends on 8)

The method of claim 8, wherein the first NN is a first recurrent neural network (RNN), the second NN is a convolutional neural network (CNN), and the third NN is a second RNN.

### Claim 13 (depends on 8)

The method of claim 8, wherein the first NN is a first recurrent neural network (RNN), the second NN is a second RNN, and the third NN is a third RNN.

### Claim 14 (depends on 13)

The method of claim 13, wherein the second RNN utilizes word embeddings and sentence embeddings to generate the legal document from the one or more first legal clauses and the one or more second legal clauses.

### Claim 15

A system, comprising:
one or more processors; and
a memory in communication with the one or more processors and storing instructions that, when executed by the one or more processors, are configured to cause the system to:
receive a first phrase;
determine whether the first plain English phrase corresponds with a first NN or a third NN;
provide the first phrase to the first NN or the third NN based on determining whether the first phrase corresponds with the first NN or the third NN;
generate, via the first NN or the third NN, one or more first legal clauses based on the first phrase;
receive a second phrase;
determine whether the second phrase corresponds with the first NN or the third NN;
provide the second phrase to the first NN or the third NN based on determining whether the second phrase corresponds with the first NN or the third NN;
generate, via the first NN or the third NN, one or more second legal clauses based on the second phrase;
provide the one or more first legal clauses and the one or more second legal clauses to a second NN; and
generate, via the second NN, a legal document based on the one or more first legal clauses and the one or more second legal clauses.

### Claim 16 (depends on 15)

The system of claim 15, wherein the memory storing further instructions configured to cause the system to:
receive one or more corrected first legal clauses from a user device;
receive a confirmation that the one or more second legal clauses are accurate from the user device;
train the first NN based on the one or more corrected first legal clauses received from the user device; and
train the second NN based on the confirmation received from the user device.

### Claim 17 (depends on 15)

The system of claim 15, wherein the first NN is a first recurrent neural network (RNN), the second NN is a convolutional neural network (CNN), and the third NN is a second RNN.

### Claim 18 (depends on 15)

The system of claim 15, wherein the first NN is a first recurrent neural network (RNN), the second NN is a second RNN, and the third NN is a third RNN.

### Claim 19 (depends on 18)

The system of claim 18, wherein the second RNN utilizes sentence embeddings to generate the legal document from the one or more first legal clauses and the one or more second legal clauses.

### Claim 20 (depends on 15)

The system of claim 15, wherein the first phrase is a request to draft one or more particular clauses for the one or more first legal clauses.
