instance method
DidYouMean::TreeSpellChecker#dimensions
dimensions
lib/did_you_mean/tree_spell_checker.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/did_you_mean/tree_spell_checker.rb, line 33
def dimensions
@dimensions ||= tree_depth.times.map do |index|
dictionary_without_leaves.map { |element| element[index] }.compact.uniq
end
end
No documentation available
See also
#dictionary_without_leaves
#fall_back_to_normal_spell_check
#correct_element
#find_ideas
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1