Skip to main content

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

ParamType
firststring
secondstring
first_lengthnumber
second_lengthnumber

getMatching(a1, a2, matches1, matches2) ⇒ number

Find matching characters in both strings according to Jaro algorithm

Kind: global function

ParamType
a1string
a2string
matches1BitSet
matches2BitSet

getTranspositions(a1, a2, matches1, matches2) ⇒ number

Calculate the number of transpositions between the two words

Kind: global function

ParamTypeDescription
a1stringThe first string to compare
a2stringThe second string to compare
matches1BitSet
matches2BitSet