This is a fairly straightforward port of Martin Porter's C implementation of the Porter stemming algorithm.