Support.module:Inflector
Functions
irregular is a shortcut method to create both a
pluralization and singularization rule for the word at
the same time. You must supply both the singular form
and the plural form as explicit strings.
plural creates a new pluralization rule for the inflector.
rule can be either a string or a regex.
singular creates a new singularization rule for the
inflector. rule can be either a string or a regex.
uncountable creates a new uncountable rule for word.
Uncountable words do not get pluralized or singularized.
Pluralizes the string passed to it. It also can accept a
number as the second parameter. If a number is provided,
it will pluralize the word to match the number. Optionally,
you can pass true as a third parameter. If found, this
will include the count with the output.
Resets the inflector's rules to their initial state, clearing out any custom rules that have been added.
singularize returns the singular version of the plural
passed to it.
