Python: Suffix-stripping Stemmer
Stemming is the process of extracting the base word from a word. For instal
the base for "worked" is "work".
Use the following algorithm to stem a word:
1. If the word ends in 'ed', 'ly', or 'ing', remove the suffix.
2. If the resulting word is longer than 8 letters, keep the first 8 letters.