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