https://en.wikipedia.org/wiki/Stemming
Most major languages should have a library available to handle this for you.