lib/phonetics/levenshtein.rb in phonetics-3.0.7 vs lib/phonetics/levenshtein.rb in phonetics-3.0.8
- old
+ new
@@ -14,12 +14,14 @@
# https://hal.archives-ouvertes.fr/hal-01474904/document
module Phonetics
module Levenshtein
extend ::PhoneticsLevenshteinCBinding
+ # rubocop:disable Style/OptionalBooleanParameter
def self.distance(str1, str2, verbose = false)
return if str1.nil? || str2.nil?
internal_phonetic_distance(str1, str2, verbose)
end
+ # rubocop:enable Style/OptionalBooleanParameter
end
end