com.sebtools Build 12 Documentation: About Pluralizer

About Pluralizer

Pluralizer is a simple component intended for making a singular string plural (or a plural string singular). It has two public methods:


The "pluralize" method takes a string and pluralizes it. It takes into account nearly all of the complexities of pluralizing words in the English language.

This includes words ending with "y" (some of which are changed to "ies" and some are not), words ending with "f" or "fe", as well as special cases like "child"/"children".


The "singularize" method takes a string and attempts to singularize it. This method is much less exhaustive than "pluralize" and should be considered a rough attempt to return a word to its singular state.