Producing a Redline Between Two Contract Versions
AnyTool’s Contract Compare / Redline tool takes two pasted contract texts — Version A (the original or the counterparty’s draft) and Version B (the revised or your own draft) — and computes a real text redline so a reviewer can see exactly what changed. It splits both versions into lines and finds their longest common subsequence (LCS) with a dynamic-programming table, which aligns the unchanged spine of the document and isolates everything that is only in one version: lines present only in B are insertions (shown green), lines present only in A are deletions (shown red), and a deletion immediately followed by an insertion is treated as a REWORDED line and diffed again at the word level so only the words that actually changed are highlighted — added words in green, removed words struck through in red. The same single computation drives two views: a unified inline redline with +/− markers and line numbers, and a side-by-side view with the original on the left and the revised on the right. A summary reports how many lines were added, removed and reworded and the share of the document that changed, mirroring how a legal “blackline” presents differences between two drafts.
- Aligns the two versions with a longest-common-subsequence line diff
- Insertions in green, deletions in red, reworded lines highlighted at the word level
- One computation feeds both a unified inline view and a side-by-side view
- Summary counts added / removed / reworded lines and the percent of the document changed
- Equivalent to a legal blackline — what changed between two versions, not in-progress comments
