I want to make an app where a user inputs some word, and then that word is detected and highlighted on the page. The difficult part is that I want all forms of the word to be detected. This would ultimately be for translation purposes.
So if the user enters eat I want to have that match with eat, eats, eating, and ate.
Ideally this supports multiple languages as well.
Is there a library for this, preferably in JavaScript? So far I've found this decade old question and stuff like the Porter Stemming algorithm, but haven't come across a good, modern solution so far.