A rule is very simple, it maps a pattern to match with the substitution to make for that pattern.
A rule is very simple, it maps a pattern to match with the substitution to make for that pattern.
A regular expression with a substitution group to be replaced by plural
The substitution for the group in singular
Declaration of an irregular wwhose plural just doesn't match a rule Subclasses can register a pair of words that have an irregular plural form.
Declaration of an irregular wwhose plural just doesn't match a rule Subclasses can register a pair of words that have an irregular plural form. That is, it is not easy to convert the singular to the plural so both must be specified.
The singular form of the word
The plural form of the word
Declaration of a list of non-plural words.
Declaration of a list of non-plural words. Subclasses can register a list of words that do not have plural forms. The plural words will each be the same as their singular word counterpart.
A list of worlds whose plural form is the same as its singular form.
The main interface to this class.
The main interface to this class. Call pluralize to pluralize any word and return its plural form.
The word to be pluralized
The plural form of word
Competently find the plural of most common English words.
In dealing with logged messages, error messages, and other output that people see, it is always nice to have the correct plural form of nouns be used. This class attempts to get pretty good coverage for the english language based on a variety of pluralization rules. This is also used in URL path matching to distinguish between operations that act on an instance (singular) or a collection of instances (plural)
Inspired by: https://github.com/atteo/evo-inflector/blob/master/src/main/java/org/atteo/evo/inflector/TwoFormInflector.java Rules from: http://www.barstow.edu/lrc/tutorserv/handouts/015%20Irregular%20Plural%20Nouns.pd Oxford Rules: http://oxforddictionaries.com/words/plurals-of-nouns