You can probably use or modify an existing stemming or lemmatization algorithm or library for this (See https://nlp.stanford.edu/IR-book/html/htmledition/stemming-and-lemmatization-1.html for definition). I believe python's nltk already has support for both. I would implement this but I don't have the available bandwidth in my work schedule.
You can probably use or modify an existing stemming or lemmatization algorithm or library for this (See https://nlp.stanford.edu/IR-book/html/htmledition/stemming-and-lemmatization-1.html for definition). I believe python's nltk already has support for both. I would implement this but I don't have the available bandwidth in my work schedule.