Compare two texts with separate character-edit, word-set, and word-frequency measures.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Levenshtein distance counts the minimum single-character insertions, deletions, and substitutions that transform one normalized string into another. Jaccard and Dice use unique word sets, while cosine uses word-frequency vectors; they stay separate because identical-looking percentages can mean different kinds of overlap.
Input1: The quick brown fox Input2: The fast brown fox
Jaccard: 0.6 Cosine: 0.75 Dice: 0.75 LEVENSHTEIN Distance: 5 Similarity: 73.68
Copy-edit comparisons, search ranking experiments, and duplicate-record reviews use different similarity measures for different failure modes.