CalculateLevenshteinDistance (open)
Calculates the edit distance between two strings
Syntax
LOADLIB "wh::util/comparisons.whlib";
INTEGER FUNCTION CalculateLevenshteinDistance(STRING sourcestr, STRING targetstr)
Parameters
STRING sourcestr
STRING targetstr
Return value
INTEGER
Edit distance (delete = 1, add = 1, adjacent transposition = 1, substitution = 1)