Levenshtein::Finder
Finds the closest string to a given string amongst many strings.
require "levenshtein"
finder = Levenshtein::Finder.new "hallo"
finder.test "hay"
finder.test "hall"
finder.test "hallo world"
finder.best_match # => "hall"
Constructors
Class methods
find(name, tolerance = nil, &)
SourceInstance methods
best_match
Source