Search code examples
elasticsearchwordnetlinguistics

How to match different tenses of the same english verb in ElasticSearch


Is there a way to use something like WordNet but instead of just synonyms (wn_s.pl file) be able to match all of the tenses of a verb: "be","was","is","will be" etc using ElasticSearch? A stemmer wouldn't work for irregular verbs like be, while it might work for regular ones.

Thanks


Solution

  • Found the answer and tested it! I had to install the elastic-morphology plugin which is based on Lucene morphology for english: https://github.com/imotov/elasticsearch-analysis-morphology