Skip to content
Lucerna Law

Practice guides

AI Document Comparison: Two Versions, What Changed

By Published 9 min readUpdated

AI document comparison means asking a model that has read two versions of a document, or two documents of one kind, what differs between them and what each difference does. It describes changes in sentences with a cite to each text. It is not a redline, and every reported difference is checked against both texts before anyone relies on it.

What can AI document comparison tell you that a redline cannot?

AI document comparison can tell you what a change means: that a reworded clause does the same thing as before, or that one altered number shifts who pays. A redline does not try to. It marks changed wording mechanically, and a model makes no promise to find every change. Each is weak where the other is strong.

The table sets out what each is for. It describes no particular word processor, and what a given compare feature marks is checked in that program.

A mechanical compareAsking a model
Finding every changed wordWhat it is built forNo promise of completeness
Saying what a change doesNot its jobYes, as a draft opinion to check
A rewritten paragraphMay show the whole paragraph as changedCan say what survived the rewrite
Two different file formatsMay not be possibleWorks on any two texts it can read
OutputA marked documentSentences with cites

The practical consequence is an order of work. Where both versions exist as editable files, the mechanical compare comes first and is the source for the set of changes. The model then helps with a different question: of these ninety marks, which twelve matter, and why.

The order of work when both versions are editable files
  1. 01

    Mechanical compare

    The source for the set of changes

  2. 02

    Ask the model

    Which marks matter, and why

  3. 03

    Open both cites

    Read the two passages side by side

  4. 04

    Working table

    The difference in your own words, with both cites

Where the two texts cannot be mechanically compared, the model is the only quick route, and the checking gets heavier. That may be the case with a PDF and a Word file, with two documents typed separately, or with two statements that share a subject and no wording.

Which pairs of documents are worth comparing with AI?

The pairs worth comparing with AI are those where meaning matters more than wording: drafts of an agreement, an original policy and its amendment, two declarations by one witness, and a document set beside the summary someone gave of it. Each pair has its own question.

  • Two drafts of an agreement. The question is what the other side changed and what it costs. Comparing a draft with a firm's own standard form is covered under comparing a contract draft against your standard.
  • An original and an amended policy. The question is which obligations were added, removed or narrowed, and on what date the new text took effect. An employee handbook, an insurance form and a set of bylaws all raise it.
  • A lease and its amendments. The question is the current state of each term. The terms themselves are listed in the guide to AI lease review.
  • Two declarations by one witness. The question is what the second adds, drops or changes. What can be done with a contradiction is set out in finding inconsistencies in testimony.
  • A document and a description of it. A cover email says "only minor edits". The comparison tests that sentence.

How version questions arise across a deal's documents is described in AI for corporate lawyers.

What to ask when comparing two versions of a document

When comparing two versions of a document, ask about one section or one subject at a time, name both files in the question, and ask for the wording from each with its cite. A single request to "list all differences" produces a long answer that cannot be checked and has no way to show what it left out.

Five questions cover the ground. The file names here are from a hypothetical remote-work policy and its replacement.

Ask the file

Compare section 4 (Equipment) in "Remote Work Policy 2023" with the section on equipment in "Remote Work Policy 2025". Quote each sentence that differs, from both, with its cite.

What does "Remote Work Policy 2025" require of an employee that "Remote Work Policy 2023" does not? Quote each new requirement.

What did "Remote Work Policy 2023" say that has no counterpart in "Remote Work Policy 2025"? Quote each removed passage.

Is any term defined differently in the two policies? Quote both definitions.

Does any section of the 2023 policy appear in the 2025 policy under a different heading or number?

The second and third are deliberately separate, for the reason given in comparing a contract draft against your standard: an added passage has no counterpart to be compared with, and neither has a removed one.

Two files called "Policy final" and "Policy final (2)" give the model, and the reader of its answer, nothing to hold. Rename them by date or by author before they go in.

How do changes get missed in an AI comparison of two documents?

Changes get missed in an AI comparison in six ways: a moved clause, a changed definition, a one-sided addition or deletion, a small number, text the tool did not read, and a file too large to be read whole. Each has a question or a check that reduces it.

How the change is missedThe question or check
A clause movedAsk whether any section appears under a different heading or number
A definition changedAsk whether any term is defined differently, and for both definitions
An addition or deletion on one sideAsk about additions and deletions separately
A small numberAsk for every number, date, percentage and time limit, side by side
Text the tool did not readAsk, because the answer will not say so otherwise
A file too large to be read wholeKeep the two versions in a small matter of their own

A clause that moved

A clause carried from section 9 to section 14 with one word changed may be reported as deleted from one place and added in another, or not reported at all. The fifth question above is there for this.

A definition that changed

Suppose "Workday" meant Monday to Friday in the old text and now means any day the office is open. Every clause that uses the word has changed, and not one of those clauses shows a mark. A comparison that goes clause by clause passes over all of them. The guide to clause tables explains how defined terms and cross-references change a clause.

A number, a date or a "not"

"Thirty days" becoming "thirteen days" is a small change on the page and a large one in effect. Ask outright for every number, date, percentage and time limit in each version, side by side, as its own question.

Text the tool never read

A comparison covers only what was read. A footnote, a header, a comment in the margin, a schedule attached as an image, or a version that exists only as a scan may sit outside it. The answer will not say so unless asked.

A file read in part

A tool that sends the model only the passages matching a question, once a file passes a certain size, may hand it section 4 of one version and not the other. Small matters with only the two versions in them avoid this.

Checking every reported difference against both texts

Every reported difference is checked by opening both cited passages and reading them side by side. One open passage is not enough. A quotation from the new version can be perfect while the claim about the old version is wrong, and the difference is a claim about both.

  1. Open the cite to the first text. Confirm the quoted words are there, on that page, in that section.
  2. Open the cite to the second text. Confirm its words the same way.
  3. Read a paragraph either side of each. A proviso or an exception in the next sentence can undo the difference.
  4. Check the defined terms in both quotations. If a capitalized word appears, look at its definition in each version.
  5. Write the difference in your own words in the working table, with both cites. The model's sentence is not carried over unread.
  6. Mark what was not compared. Sections nobody asked about are listed as unreviewed, not as unchanged.

The working table for the hypothetical policy might read as follows once checked.

Subject2023 policy2025 policyEffect
EquipmentEmployer supplies a laptop (s. 4.1)Employer supplies a laptop "on request" (s. 5.1)Narrowed
Home internetReimbursed up to a stated sum (s. 4.3)No counterpartRemoved
Core hoursNone10 AM to 3 PM local time (s. 3.2)Added
"Remote day"Any day worked off site (s. 1)A day approved in advance (s. 1)Definition changed

The fourth row came from the definitions question. A clause-by-clause pass would not have shown it.

General steps for checking any record cite are in how to verify a citation to a document in the file.

Comparing two declarations by one witness

Two declarations by one witness are compared fact by fact, not paragraph by paragraph, because the second need not be a marked-up copy of the first. The question for each fact is whether the later statement repeats it, changes it, drops it or adds to it.

Take a hypothetical witness who signed a declaration in January and a second in June. The method is to list the facts in the first, then put each to the second.

Ask the file

List each factual statement in "Declaration of the site manager, January" as a numbered list, with its paragraph number.

For each of those statements, say whether "Declaration of the site manager, June" repeats it, changes it, or does not mention it. Quote the June wording where there is any.

What facts does the June declaration state that the January declaration does not?

"Does not mention it" is again a statement of absence. It is a list of places to read, and the June declaration is short enough to read whole. A dropped fact may matter as much as a changed one, and only the reader can say whether silence in the second document means anything.

Document comparison in Lucerna Law: no redline view

Lucerna Law's pages describe no redline view and no side-by-side comparison screen. What its homepage describes is asking questions across the files in a matter and getting answers that cite passages. A comparison there is an answer in a chat, with a cite to each version that opens the passage in its file.

Several facts about how it reads files bear on comparing versions.

  • File names carry the versions. A file's title comes from its file name, and the title is given to the model. Clear names are how a question tells two versions apart.
  • Word files are read without three things. The README says footnotes, headers and comments in a .docx file are not read. It does not say how tracked changes are handled, so a clean copy of each version is the safer upload.
  • PDF cites are by page and paragraph. The page is the PDF's own, and paragraph breaks are inferred from line spacing, so the document's own section number is taken from the opened page.
  • Scans are read without a check. A scanned page in a PDF of up to 1,000 pages is read from its image, with no text in the file to check the reading against. A signed version that exists only as a scan in a longer PDF is not in the comparison.
  • Size decides how much is read. The homepage says a matter of up to about 150 single-spaced pages goes to the model whole. Keeping the two versions in a matter of their own keeps both in view.
  • The citation check is limited. It confirms the cited passage was given to the model, not that the passage shows the difference claimed.

A complete list of changes is still the job of a comparison tool built for that. The model's part is the reading of what those changes do.