Guide
Comparing two texts with cosine, phrase overlap and simhash
Sometimes you need to know how close two texts really are: two product descriptions written from the same supplier sheet, an old article and its rewrite, or a guest post and a page already on your site. Reading both can mislead, because texts that share a template look alike at a glance. This tool measures the closeness three ways and combines them into a plain verdict.
Cosine similarity
Both texts are turned into lists of words with their counts, which you can picture as arrows in a space with one direction per word. The cosine of the angle between the arrows is the similarity: 100% means the same words in the same proportions, 0% means no words in common. It ignores word order, so a text with its sentences shuffled would score high. That makes it a good measure of vocabulary overlap.
Shared three-word phrases
The second figure looks at order. Each text is cut into overlapping runs of three words, and the tool counts the share of runs that appear in both texts out of all runs in either. Two texts that reuse whole sentences have many shared runs even when other words differ, so this number rises sharply when text has been copied rather than rewritten.
Simhash
A simhash condenses a text into 64 bits. The tool computes it for both texts and reports how many bits differ. A small difference means the texts have almost the same set of weighted words. The note under the result mentions that a difference of 3 bits or fewer is a common cut-off for near duplicates, and says that cut-offs are conventions, not search engine rules.
The verdict
The result is Near duplicates when the simhash difference is 3 or less, or the phrase overlap is 70% or more. It is Strong overlap when cosine reaches 80% or phrase overlap reaches 30%. It is Some overlap when cosine reaches 50%, and Different texts otherwise. These thresholds are fixed in the tool and are meant to help you triage, so read the three numbers as well as the label.
A worked example
The first sample compares two product descriptions that differ in a few words. The cosine similarity is 90.1%, the shared three-word phrases are 43.3% and the simhash difference is 10 of 64 bits, which gives the verdict Strong overlap: the vocabulary is nearly the same, but enough phrases differ that it is not a copy. The second sample replaces Text B with a sentence about quarterly revenue and enterprise renewals. The cosine is 0.0%, the phrase overlap is 0.0% and the simhash differs in 27 of 64 bits, so the verdict is Different texts.
Limits
The tool compares only the two texts you give it. It does not search the web, so it cannot show whether either text was copied from another source, and it is not a plagiarism checker. Short texts give unstable results, stop words influence the cosine score and the measures treat words as plain strings, so synonyms and paraphrases score as different. Everything runs in your browser and nothing is uploaded.
Related tools
- Diff Checker shows exactly which words and lines differ between two texts.
- Passive Voice Checker reviews the style of a rewrite.
- Keyword Permutation Combiner makes many phrases from lists, which can create near-duplicates.
- Anchor Text Ratio Analyzer examines the wording of links rather than pages.
Checked against the current version of the Text Similarity Checker on .

