Jaro Similarity Calculator
Calculate Jaro similarity between two strings from matching characters within a sliding window and their transposition count.
Description
Measure character-level similarity between two strings with the Jaro matching-window and transposition formula.
Jaro similarity compares two strings by matching nearby characters and penalizing matched characters that appear in a different order. It is commonly useful for short names, labels, and record-linkage candidates where a small typo or transposition is plausible.
When to use Jaro Similarity Calculator
- Compare short names with possible character swaps
- Rank candidate record matches
- Inspect matching-character and transposition components
How the calculation works
Characters match only within a window based on half the longer string length. The score averages the matched fraction of each string and the ordered fraction of the matched characters. A score of one means exact equality; zero means no characters matched in the permitted windows.
Interpreting the result
Use `similarity` as a relative ranking signal rather than a universal match threshold. `matchingCharacters` and `transpositions` explain why a pair scored as it did. Thresholds should be validated on examples from the actual language and data source.
Important limitations
- Comparison is case-sensitive and does not normalize accents or Unicode representation.
- The score measures character arrangement, not semantic meaning.
- Long strings and token-level documents are usually better served by other similarity measures.