Method: Search::Simple::Dictionary#find

Defined in:
lib/search/simple/dictionary.rb

#find(word) ⇒ Object



107
108
109
110
111
112
113
114
# File 'lib/search/simple/dictionary.rb', line 107

def find(word)
  word = Stemmable::stem_porter(word)
  if STOP_WORDS[word]
    nil
  else
    @words[word]
  end
end