PorterStemmer

Undocumented in source.
struct PorterStemmer {}

Members

Functions

stem
const(char)[] stem(char[] p)

In stem(p,i,j), p is a char pointer, and the string to be stemmed * is from pi to pj inclusive. Typically i is zero and j is the * offset to the last character of a string, (p[j+1] == '\0'). The * stemmer adjusts the characters pi ... pj and returns the new * end-point of the string, k. Stemming never increases word length, so * i <= k <= j. To turn the stemmer into a module, declare 'stem' as * extern, and delete the remainder of this file.

Meta