Skip to content
Lucerna Law

Practice guides

AI Clause Extraction: Pulling Terms From Contracts

By Published 10 min readUpdated

AI clause extraction means asking a model to find named terms in a contract, such as the renewal date, the notice period and the liability cap, and to set each one in a table beside the passage it came from. The table is a finding aid. A lawyer still opens every cell that matters and reads the page.

What is AI clause extraction?

AI clause extraction is the job of pulling specific terms out of contract text into a fixed layout: one row for each contract or each term, one column for each thing you want to know. It answers "what does each agreement say about assignment?" and leaves "is that acceptable?" to the lawyer.

That makes it a narrower job than review. A review reads one agreement against a client's position and asks what is wrong with it. Extraction asks the same short list of questions of every agreement and writes the answers down in the same order. The post on what AI contract review catches and misses covers the first job. This one covers the table.

The output has names in different offices: a schedule of terms, a contract abstract, a lease abstract, a diligence chart. They share three properties.

  • Fixed columns. The questions are chosen before the reading starts.
  • A source for each cell. Every entry points to the section and page it was taken from.
  • No opinion. The cell holds what the clause provides, in the contract's words where the words matter.

Extraction suits work where the same question is asked many times: a data room before an acquisition, a company's customer agreements before a price change, a set of leases before a sale. It also suits a single long agreement that several people will consult for months.

Which clauses are worth extracting into a table?

The clauses worth extracting are the ones somebody will act on: terms with a date, a number, a party's consent, or a consequence. A column earns its place when a person will sort or filter by it. The purpose of the table decides the list, so write the purpose down first.

Purpose of the tableColumns that tend to matterWhat to define before asking
Buying a companyAssignment, change of control, exclusivity, term and renewalWhether "change of control" includes a merger or a sale of shares
Managing renewalsInitial term, renewal mechanism, notice to stop renewal, price increaseWhether the date wanted is the renewal date or the last day to give notice
Assessing a disputeGoverning law, forum, notice of breach, cure period, limitation of liabilityWhether carve-outs from the cap belong in the same cell
Selling a buildingRent, escalations, options, tenant termination rights, estoppel obligationsWhether amendments are read as part of the lease

The third column is the easy one to skip. A model given the bare word "termination" has to guess whether you mean termination for convenience, for breach, for insolvency, or all three. Each guess produces a tidy cell. A one-sentence definition removes the guess.

Keep the table narrow. Eight columns that are each defined and each checked are worth more than thirty that nobody opens. A column can always be added in a second pass, with its own question.

Building a schedule of terms from one contract

A schedule of terms for one contract is built row by row: each row a term, with what the contract provides, the exact words, and the section it sits in. Ask for a few related terms at a time. A request for everything at once invites a long answer in which the later rows get thinner.

A request that works names the document, names the terms, and says what each cell must hold.

Ask the file

In the Master Services Agreement dated June 12, 2023, find the initial term, how the agreement renews, and the notice needed to stop a renewal. For each, give what the agreement provides in one sentence, quote the operative words, and name the section.

Then the next group.

Ask the file

In the same agreement, find every limit on either party's liability and every exception to those limits. Quote each and name the section. If the agreement has no such limit, say that you found none.

Four habits keep the schedule honest.

  1. Ask for the quotation as well as the paraphrase. A paraphrase of "may terminate on thirty days' written notice following an uncured material breach" can lose "uncured" without anyone noticing. The quotation shows what was dropped.
  2. Ask for every place a term appears. Termination rights can sit under their own heading, and also in the insolvency clause, the force majeure clause and the statement of work.
  3. Ask about the amendments separately. Then ask which answers in the schedule an amendment changes.
  4. Copy checked rows into your own document. The chat is where the answer arrives. The schedule the team relies on is the one a person has verified and saved.

Extracting the same clause across many contracts

Extracting one clause across many contracts works when every agreement is asked the same question in the same words, and the answer names the file each row came from. The risk grows with the number of files. A table of fifty rows looks equally confident in row three and row forty-three.

Take a hypothetical acquisition with fifty customer agreements in the data room. The buyer wants to know which ones need the customer's consent before the seller's business changes hands.

Ask the file

For each customer agreement in this matter, state whether a party needs the other's consent to assign the agreement, and whether a change of control is treated as an assignment. Quote the clause, name the section, and name the file. List separately any agreement where you found no assignment clause.

Three things can go wrong that a single contract does not expose.

The tool may not have read every agreement. Some tools send a model only the passages that best match a question once a matter is large. An answer built that way can leave a contract out with no sign that it did. Count the rows. If fifty files went in and forty-four came back, six are missing, and the answer will not say which six unless you ask.

Agreements get mixed. Contracts made from one template read alike, so a clause quoted in one row may have come from the agreement next to it. The file named in the citation settles it, which is one reason to check the source and not only the words.

Batches drift. Asking five agreements at a time is easier to check than asking fifty. It only works if the wording of the question stays identical from batch to batch.

What goes wrongWhyThe check
An agreement is left outSome tools send a model only the best-matching passages once a matter is largeCount the rows against the files that went in
Agreements get mixedContracts made from one template read alikeLook at the file named in the citation
Batches driftThe question changes between batchesKeep its wording identical from batch to batch

How much of a large table to check by hand is a matter of professional judgment. The ABA's Formal Opinion 512 on generative AI tools gives an example on this point. It says a lawyer who uses a tool to review and summarize numerous, lengthy contracts "would not necessarily have to manually review the entire set of documents" if the lawyer had first tested the tool's accuracy on a smaller subset by reviewing those documents manually, comparing them with the tool's summaries, and "finding the summaries accurate." The same passage says the appropriate amount of verification depends on the tool and the task.

The post on AI for in-house counsel has more on asking one agreement or a whole portfolio.

How do defined terms and cross-references change an extracted clause?

Defined terms and cross-references change an extracted clause because the clause borrows meaning from somewhere else in the contract. A cell that quotes the clause exactly can still be wrong about what the clause does.

Take a cap that reads: "Supplier's aggregate liability shall not exceed the Fees, subject to Section 11.4." Two questions are hiding in that one cell.

  • What are "the Fees"? The definitions article may say fees paid in the twelve months before the claim, or fees payable over the whole term. Those can be very different numbers.
  • What does Section 11.4 do? It may take indemnity claims and confidentiality breaches out of the cap altogether.

A table that records "capped at the Fees" has copied the contract faithfully and told the reader very little. Two additions to the request deal with it.

Ask the file

For each clause you quoted, list every capitalized term in it, give that term's definition in the agreement's words, and name the section where it is defined.

For each clause you quoted that refers to another section, schedule or exhibit, quote the part it refers to. If what it refers to is not in this matter's files, say so.

The last sentence of that second request matters. A contract may point to a schedule, an order form or a set of standard terms that was never uploaded. The price or the service level may live there, and no model can read a document it was not given. The contract review post goes further into what a model misses in a contract, including clauses that are simply absent.

For the table itself, add a column. Call it "Depends on" and put the defined terms and section numbers in it. A reader who sees that column knows the cell is not the whole answer.

A clause quoted perfectly can still be half a clause.

Checking each cell of a clause table against the page

Checking a cell of a clause table means opening the cited passage and confirming three things: the words are there, they belong to the right contract, and nothing next to them changes the meaning. Filled cells and empty cells need different checks, and the empty ones take longer.

A filled cell

Open the citation and run the three checks above, reading the paragraph before and after the quoted words. The guide to verifying AI citations sets out how to check a citation to a document in the file, step by step.

An empty cell

An empty cell says "no assignment clause was found". It does not say "this contract has no assignment clause". The model may have been shown part of the file, or the clause may use words the question did not. Search the agreement yourself for the plain vocabulary: "assign", "transfer", "successor", "change of control". Then read the general provisions at the back, where such clauses can sit.

CellWhat it saysHow to check it
FilledWhat the cited passage providesThe words are there, they belong to the right contract, and nothing next to them changes the meaning
EmptyThat no clause was found, not that the contract has noneSearch the agreement yourself for the plain vocabulary, then read the general provisions at the back

Before the table leaves your desk

  • Every row names a file, and the count of rows matches the count of agreements.
  • Every filled cell was opened, or the table says which cells were opened and which were not.
  • Every empty cell was searched by hand, or is marked "not found, not verified".
  • Amendments were asked about, and the rows they change are updated.
  • Defined terms and cross-references in each quoted clause were followed.
  • Signed versions were used, and any row built from an unsigned draft says so.

When one of the agreements later becomes evidence in a dispute, the verified row is a start on its entry in the exhibit list. The guide to AI exhibit review picks up from there.

Clause extraction in Lucerna Law and where it stops

Lucerna Law answers extraction questions from contracts uploaded to a matter as PDFs or Word files, and each answer cites the passages it rests on. The answer arrives in the chat for you to check and edit. Its pages describe no spreadsheet export of an answer and no built-in clause table.

Several of its documented limits bear on a table of terms.

  • Large matters are read in part. The homepage puts the line at about 150 single-spaced pages of text in a matter. Under it, the model receives everything. Over it, the model receives a selection matched to each question. Fifty contracts can pass that size, so count the rows and treat every "not found" as unverified.
  • Scans are read without a check. A scanned page in a PDF of up to 1,000 pages is read from its image, and the file holds no text to check that reading against. A signed copy that exists only as a scan in a longer PDF contributes nothing to the table.
  • A PDF citation is page and paragraph. The page is the PDF's own page, which may not be the number printed on the document, and paragraph breaks are inferred from line spacing. Cite the contract by its own section numbers once you have opened the passage.
  • The citation check is narrow. A citation to something the model never received is struck through on the page. A citation that survives has passed that one test only. Nobody but the reader has tested whether the passage says what the cell says.

A matter's search window looks for a plain, case-insensitive match in the text of its files, which is one place to start the hand search on an empty cell. It finds only the words typed, so the agreement itself is still the thing to read.

Each answered question is recorded with who asked and when, and a firm member can download a matter's record as a CSV file. That record shows which extraction questions were put and what came back. The product section of the homepage describes the path from upload to cited answer. This post describes a method and is not legal advice.