End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
DidYouMean::TreeSpellChecker#dictionary_without_leaves
dictionary_without_leaves
lib/did_you_mean/tree_spell_checker.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/did_you_mean/tree_spell_checker.rb, line 25
def dictionary_without_leaves
@dictionary_without_leaves ||= dictionary.map { |word| word.split(separator)[0..-2] }.uniq
end
No documentation available
See also
#correct_element
#dimensions
#correct
#fall_back_to_normal_spell_check
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2