module Eco::Data::FuzzyMatch::ClassMethods

Public Instance Methods

jaro_winkler(str1, str2, **options) click to toggle source
# File lib/eco/data/fuzzy_match.rb, line 30
def jaro_winkler(str1, str2, **options)
  return 0 if !str1 || !str2
  options = {
    ignore_case: true,
    weight:      0.25
  }.merge(options)
  JaroWinkler.distance(str1, str2, **options)
end