RiTa
index
Name RiPluralizer
Description A simple pluralizer for nouns. Pass it a stemmed noun (see RiStemmer) and it will return the plural form. Uses a combination of letter-based rules and a lookup table of irregular exceptions, e.g., 'appendix' -> 'appendices'
    RiPluralizer rp = new RiPluralizer();
    RiStemmer rs = new RiStemmer();

    String stem = rs.stem("dogs");
    System.out.println(rp.pluralize(stem));
    // returns "dogs"

    stem = rs.stem("appendix");
    System.out.println(rp.pluralize(stem));
    // returns "appendices"

    
Note: this implementation is based closely on rules found in the MorphG package, further described here:

Minnen, G., Carroll, J., and Pearce, D. (2001). Applied Morphological Processing of English. Natural Language Engineering 7(3): 207--223.

Constructors
RiPluralizer();
RiPluralizer(pApplet);
Methods
pluralize()   Returns the regular or irregular plural form of noun. Note: this method requires a pre-stemmed noun (see RiStemmer) for proper function.

Usage Web & Application