English Stemming Algorithm
An ordered rule system for word endings
I developed the English Stemming Algorithm in 2003: an ordered rule system for reducing word variation in information retrieval, with a C reference implementation.
Reduce word variation with an explicit rule system
I developed the English Stemming Algorithm in 2003 to address a practical information-retrieval problem: different forms of a word can obscure a shared base. ESA applies an ordered rule list to tokens so related forms can be conflated for indexing and search.
Each rule specifies a suffix, whether it may apply after an earlier modification, a number of characters to remove and a string to append. Rules can be extended and interdependent, allowing a later transformation to act on an earlier result.
A small C reference implementation
The reference implementation keeps rules in an array and processes them iteratively. The original article describes a 67-item rule list derived from Porter behavior, giving the implementation a comparison point. Input boundaries require a token longer than two characters with at least one vowel and one consonant; the resulting token must also remain longer than two characters.
A simple build script compiles and runs the supplied example. The source, algorithm abstract and original discussion are available through the current GitHub repository and the reading edition on this site.
The dates and the original comparison
The research was authored in 2003, explained again on Xaede in 2009 and published to GitHub in 2023. The original timing comparison used a Pentium Celeron 500 MHz system. Those measurements belong to that implementation and test environment; they do not establish a modern performance advantage across languages or current stemmers.
Implementation at a glance
- Rules can remove, replace, extend or otherwise alter word endings.
- Rule ordering allows one transformation to act on another’s result.
- The reference rule set reproduces Porter stemming behavior for comparison.
Project status
Historical reference code and measurements. The 2003 research, 2009 article and 2023 repository publication are distinct events.