noun_core module¶
- inflex.noun_core.rei(regex: str) Pattern[str] [source]¶
Return compiled re.Pattern with regex as pattern, and the IGNORECASE flag.
- Parameters
regex (str) – Regular expression pattern.
- Returns
Compiled version of regex, with IGNORECASE flag.
- Return type
re.Pattern
- inflex.noun_core.known_plural(word: str) bool [source]¶
True if word is known to be plural.
- Parameters
word (str) – Input word or collocation.
- Returns
True if word is known to be plural.
- Return type
bool
- inflex.noun_core.known_singular(word)[source]¶
True if word is known to be singular.
- Parameters
word (str) – Input word or collocation.
- Returns
True if word is known to be singular.
- Return type
bool
- inflex.noun_core.convert_to_modern_plural(word: str) str [source]¶
Convert word to modern plural form.
- Parameters
word (str) – Input word or collocation.
- Returns
The modern plural form of word.
- Return type
str
- inflex.noun_core.convert_to_classical_plural(word: str) str [source]¶
Convert word to classical plural form.
- Parameters
word (str) – Input word or collocation.
- Returns
The classical plural form of word.
- Return type
str
- inflex.noun_core.convert_to_singular(word: str) str [source]¶
Convert word to singular form.
- Parameters
word (str) – Input word or collocation.
- Returns
The singular form of word.
- Return type
str