Converts a noun or pronoun to its plural form for the given number of instances.
Converts a noun or pronoun to its plural form for the given number of instances. If
number
is 1, word
is returned unchanged.
The return value is not defined if this method is passed a plural form.
Converts a noun or pronoun to its plural form.
Converts a noun or pronoun to its plural form.
This method is equivalent to calling pluralize(word, 2)
.
The return value is not defined if this method is passed a plural form.
Goes through the rules in turn until a match is found at which point the rule is applied and the result returned.
Goes through the rules in turn until a match is found at which point the rule is applied and
the result returned. If no rule matches, returns null
.
a singular noun
the plural form of the noun, or null
if no rule matches
Apply processing to pluralizedWord
.
Apply processing to pluralizedWord
. This implementation ensures the case of the
plural is consistent with the case of the input word.
If trimmedWord
is all uppercase, then pluralizedWord
is uppercased.
If trimmedWord
is titlecase, then pluralizedWord
is titlecased.
the input word, with leading and trailing whitespace removed
the pluralized word
the pluralizedWord
after processing