instance method
DidYouMean::TreeSpellChecker#find_ideas
find_ideas(paths, leaf)
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 74
def find_ideas(paths, leaf)
paths.flat_map do |path|
names = find_leaves(path)
ideas = correct_element(names, leaf)
ideas_to_paths(ideas, leaf, names, path)
end.compact
end
No documentation available
See also
#fall_back_to_normal_spell_check
#find_leaves
#dimensions
#find_suggestions
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1