string_jaro_distance
Functions
Calculate Jaro distance between two strings, this is a measure of string similarity. Higher value means more similarity.
Find matching characters in both strings according to Jaro algorithm
Calculate the number of transpositions between the two words
string_jaro_distance(first, second, first_length, second_length) ⇒ number
Calculate Jaro distance between two strings, this is a measure of string similarity. Higher value means more similarity.
Kind: global function
| Param | Type |
|---|---|
| first | string |
| second | string |
| first_length | number |
| second_length | number |
getMatching(a1, a2, matches1, matches2) ⇒ number
Find matching characters in both strings according to Jaro algorithm
Kind: global function
| Param | Type |
|---|---|
| a1 | string |
| a2 | string |
| matches1 | BitSet |
| matches2 | BitSet |
getTranspositions(a1, a2, matches1, matches2) ⇒ number
Calculate the number of transpositions between the two words
Kind: global function
| Param | Type | Description |
|---|---|---|
| a1 | string | The first string to compare |
| a2 | string | The second string to compare |
| matches1 | BitSet | |
| matches2 | BitSet |