publiclab/plots2

View on GitHub
lib/text_search.rb

Summary

Maintainability
A
0 mins
Test Coverage
require "lemmatizer"

module TextSearch
  def lemmatize(word)
    lem = Lemmatizer.new
    lem.lemma(word)
  end

  def results_with_probable_hyphens(word)
    lem = Lemmatizer.new("lib/related_and_hyphenated_terms.dict.txt")
    lem.lemma(word)
  end
end