English Rules¶
English pluralization and singularization rules.
This module defines the complete set of English pluralization
rules used by pluralio. It is imported automatically when
import pluralio is executed, which triggers the registration
of the en language in the global registry.
The rules are organized into three categories:
Irregular plurals: Words that do not follow any regex pattern and must be memorized (e.g.
"man" → "men","child" → "children"). The inverse mapping (plural → singular) is auto-generated.Regex rules: Ordered patterns applied to words that are not in the irregular or uncountable lists. The first matching rule wins. Rules are ordered from most specific to least specific.
Uncountable words: Words that are invariable — their plural form is identical to their singular form (e.g.
"sheep","information","rice").
Reference: ref/rules.md for the full rules documentation.