Text Compare
Compare Text A and Text B by unique words and clearly show words found in both, only in A, and only in B.
Use the Text Compare
Compare the words in two texts and clearly see what they share and what appears only in each text.
Calculations and text processing happen locally in your browser. ToolLott does not send these inputs to a server for this tool.
How to use it
ToolLott compares unique words case-insensitively. Punctuation is ignored for word matching, while apostrophes inside words are retained.
How the Text Compare works
The Text Compare tool compares unique words in Text A and Text B, then groups them into words present in both texts, words only in Text A, and words only in Text B.
Calculation breakdown
ToolLott will explain the current inputs and displayed result here.
How the Text Compare processes text
ToolLott tokenises Text A and Text B into words, compares them case-insensitively, removes duplicate occurrences within each text, and then groups the unique words into three sets: words found in both texts, words only in Text A, and words only in Text B. Punctuation outside words is ignored, while apostrophes inside words are retained.
Step-by-step method
- Read Text A and Text B and extract word tokens from each input.
- Normalise word matching to be case-insensitive and retain the first displayed form of each unique word.
- Compare the two unique-word sets and display words in both, only in Text A, and only in Text B.
Worked example
Noah, a operations coordinator, has two two-line configuration notes—“a/b” and “a/c”—and needs to see exactly what changed before approving the revision.
Example inputs
- left = a b
- right = a c
Calculation / processing
Left = a then b; right = a then c.Line a is common to both inputs.b is removed and c is added, giving 1 unchanged · 1 added · 1 removed.
The result is a line-level comparison. It shows structural changes without pretending to be a character-by-character semantic diff.
Assumptions
- Text is processed exactly as supplied except for the options explicitly selected by the user.
- The tool performs its transformation locally and does not infer hidden context beyond its documented rules.
Limitations
- Matching is case-insensitive and punctuation outside words is ignored.
- The result compares unique word membership, not sentence meaning, grammar, order or semantic similarity.
Common questions
Does the Text Compare change my original source automatically?
No. ToolLott generates a result/preview; you decide whether to copy or use it.
Is the processing deterministic?
Yes for the same input and settings, except where a tool explicitly documents random generation.
Does ToolLott understand the meaning of the text?
These utility modes apply documented text rules; they are not a general semantic or editorial review engine.
Methodology sources
This page uses basic mathematical or ToolLott implementation logic that does not require an external factual source. The worked result is still tied to the production tool and QA example.
Related ToolLott tools
A realistic way Noah could use this tool
Noah is a operations coordinator.
Noah has two two-line configuration notes—“a/b” and “a/c”—and needs to see exactly what changed before approving the revision.
They use the worked values shown in the tool: Original text: 2 lines; Changed text: 2 lines.
ToolLott returns “1 unchanged · 1 added · 1 removed”. That gives Noah a concrete figure to check against the real task before they copy it into the next document or decision.
Fictional scenario using realistic example data. For Ready tools, the worked result is tied to the tested example shown in the tool. Replace the figures with your own inputs and independently verify important professional, financial, legal, health or safety decisions.
What this tool is for
Use it to compare two texts by unique words and show words in both, only in Text A and only in Text B.
It sits within ToolLott’s Text Tools collection, where you can also count words and characters, compare text, replace wording, change case, remove duplicate lines, edit Markdown and convert text to speech.