# Doc Compare > Compare two versions of a contract, lease, policy or terms page by meaning. Paragraphs (or sentences) are matched with sentence embeddings that run in the browser, then marked same, reworded, changed meaning, only in A or only in B. The changes that matter come first (numbers, dates, duties, negations, swapped parties), each linked to its passage, with redline and side-by-side views and a printable report. Free, no API key, no sign-in, documents never uploaded. URL: https://doc-compare.skillsafe.ai/ ## What it does - Input: two documents, pasted or opened from PDF (with a text layer), DOCX, ODT, RTF, HTML, EPUB, Markdown or text. Or two sentences for a quick check. "Try an example" fills both sides with two versions of a sample policy; pressing Compare then runs the same on-device comparison as for any document, with no result prepared ahead of time. - Unit: paragraph or sentence. Paragraphs longer than about 90 words are compared in parts. - Model: all-MiniLM-L6-v2 (sentence-transformers, Apache-2.0, 384 dimensions), run with ONNX Runtime Web on WebGPU or WebAssembly. One 90 MB download, cached by the browser. - Alignment: identical units first, then one-to-one greedy matching by cosine similarity above a match level (0.55 at the default sensitivity); pairs out of order are marked as moved. - Classification: same (identical words), reworded (similarity at or above the reworded level, 0.75 by default, and no check fires), changed meaning (below that level, or any enabled check below fires), only in A, only in B. - Checks on every matched pair: - Negation added or removed. - Numbers in any spelling: digits, spelled-out numbers (twenty-one), ordinals (first, 5th, thirty-first), fractions (half, a quarter), percentages (five percent, 5%), money ($1,500, 1,500 dollars) and clock times (3 p.m., 15:00). The same value written two ways is not a change: thirty (30) days and 30 days, the 1st and the first. - Durations with their unit: 12 months against 12 weeks is a change; two weeks and 14 days, or one year and 12 months, are not. Business days are kept apart from calendar days. - Weekday and month names, and frequency words (daily, weekly, monthly, quarterly, yearly). - Duty and permission wording, compared by class: duty (must, shall, is required to, has to), permission (may, can, is allowed to, is permitted to), prohibition (must not, shall not, may not, is prohibited from), advice (should, ought to), no duty (need not, is not required to, optional). Only a change of class is flagged, so must and is required to are the same. - Scope words (all, some, only) and opposite or swapped words (hired and fired, before and after, landlord and tenant). - Sensitivity: two presets that only move the two similarity levels. Strict (match 0.55, reworded 0.85) for a contract or lease about to be signed; Balanced (0.55, 0.75), the default. Each family of checks can be switched off on its own: numbers and dates, negation, duties and permissions, parties and opposite words, scope words. A switched-off check never appears in a reason or in the summary. An Advanced section holds the two levels as sliders; moving one sets the sensitivity to Custom. The choices are remembered in the browser (local storage) and every export and the printed report state them. - Output: one plain verdict sentence with counts; a "What changed" summary with one entry per changed passage, its reasons in plain words and the changed words marked, each linked to its place; side-by-side, redline (struck-through and underlined words) and stacked views that show the original text verbatim; reworded and unchanged passages shown muted without word marks; similarity scores hidden unless asked for; a sticky toolbar with filter, view, previous and next difference; print or save as PDF; Markdown, CSV and JSON export. - Measured, per sensitivity preset, with real model similarities. On 132 contract, lease and policy sentence pairs with known answers (72 written with the rules, 60 written blind): Strict flagged 4 harmless rewordings (precision 95%) and Balanced 2 (97%); neither missed a real change (recall 100%). On 60 pairs of ordinary prose written blind, where the change sits in everyday words rather than in a number, a negation or a duty word, the tool is much weaker: Strict caught 13 of the 30 real changes and flagged 14 of the 30 harmless rewrites; Balanced caught 6 and flagged 9. It is built for contracts, leases, policies and terms, not for judging a change of argument in free prose. - Limits: English only, for both the model and the checks. Up to 1,500 units per document. Scanned PDFs without a text layer cannot be read. Formatting, tracked changes, comments and footnotes are not compared. A change made in ordinary words, with no number, negation or duty word involved, often passes as reworded at any sensitivity (see Measured). It is a reading aid, not legal advice. ## Why embeddings alone are not enough Sentence embeddings place "The tenant may sublet the apartment" and "The tenant may not sublet the apartment" close together (similarity about 0.88), and "hired" close to "fired". The explicit checks catch these, and every changed-meaning mark shows its reason. ## Privacy and cost Everything runs in the page. No API key and no credits. The pasted text is kept in the tab's session storage so a reload does not lose it; it is never sent anywhere. Signing in is optional and only saves a comparison report (counts and the quoted passages that differ) to the person's SkillSafe account. The sensitivity and check settings, and nothing else, are remembered in local storage. ## Developer surface - API tutorial for saved comparisons: https://doc-compare.skillsafe.ai/api.html - There is no run endpoint: the comparison is computed on the device. Part of SkillSafe: https://skillsafe.ai/