Methods
(static) similarity(s1, s2) → {float}
Calculates the Jaro-Winkler similarity between two strings.
Parameters:
Name | Type | Description |
---|---|---|
s1 |
string | The first string for comparison. |
s2 |
string | The second string for comparison. |
- Source:
Returns:
- The Jaro-Winkler similarity score between s1 and s2, ranging from 0.0 (no similarity) to 1.0 (exact match).
- Type
- float