module Cadmium::LevenshteinDistance
Defined in:
cadmium/distance/levenshtein.crClass Method Summary
-
.distance(s1 : String, s2 : String)
Returns the Damerau-Levenshtein distance between strings.
Class Method Detail
def self.distance(s1 : String, s2 : String)
#
Returns the Damerau-Levenshtein distance between strings. Counts the distance
between two strings by returning the number of edit operations required to
convert s1
into s2
.