instance method
DidYouMean::KeyErrorChecker#corrections
() -> ::Array[::String]
corrections
lib/did_you_mean/spell_checkers/key_error_checker.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/did_you_mean/spell_checkers/key_error_checker.rb, line 10
def corrections
@corrections ||= exact_matches.empty? ? SpellChecker.new(dictionary: @keys).correct(@key).map(&:inspect) : exact_matches
end
No documentation available