inflect.Singularize
Returns the singular form of the given word according to a set of common English singularization rules.
- Syntax
- inflect.Singularize INPUT
- Returns
- string
- Alias
- singularize
Usage
The inflect.Singularize function returns the singular form of the given word according to a set of common English singularization rules. If the word is already singular, the function returns it unchanged.
Examples
{{ inflect.Singularize "cats" }} → cat
{{ inflect.Singularize "boxes" }} → box
{{ inflect.Singularize "categories" }} → categoryConverting irregular nouns:
{{ inflect.Singularize "children" }} → child
{{ inflect.Singularize "people" }} → person
{{ inflect.Singularize "sheep" }} → sheepLast updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page