On Tue, Oct 24, 2017 at 11:04 AM, julien Blaize <julien.bla...@gmail.com> wrote: > Hello, > > i am lookingfor a way to efficiently do the reverse of stemming. > Example : if i give to the program the verb "drug" it will give me > "drugged', "drugging", "drugs", "drugstore" etc...
To generate the list up-front (for all words), maybe look at the morph generation code here and modify to your needs: https://github.com/hunspell/hunspell/blob/master/src/tools/analyze.cxx Then maybe try adding this to a lucene SynonymMap which will store this in an FST with deduplication etc and may be reasonably efficient (its just a large synonym dictionary at that point). If you generate to wordnet or solr synonyms format there are already parsers for those, so that may be easiest. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org