extended_data.primitives.transformations.strings.inflection¶
Convenience wrappers around :mod:inflection string helpers.
Module Contents¶
Functions¶
Return the plural form of word, honoring an optional count. |
|
Return the singular form of word. |
|
Convert phrase to camel or Pascal case. |
|
Convert phrase to snake case. |
|
Make an identifier human-readable. |
|
Convert phrase to title case. |
|
Return the ordinal representation of |
|
Slugify phrase using the provided |
API¶
- extended_data.primitives.transformations.strings.inflection.pluralize(word: str, count: int | None = None) str¶
Return the plural form of word, honoring an optional count.
- extended_data.primitives.transformations.strings.inflection.singularize(word: str) str¶
Return the singular form of word.
- extended_data.primitives.transformations.strings.inflection.camelize(phrase: str, uppercase_first_letter: bool = True) str¶
Convert phrase to camel or Pascal case.
- extended_data.primitives.transformations.strings.inflection.underscore(phrase: str) str¶
Convert phrase to snake case.
- extended_data.primitives.transformations.strings.inflection.humanize(phrase: str, capitalize: bool = True) str¶
Make an identifier human-readable.
- extended_data.primitives.transformations.strings.inflection.titleize(phrase: str) str¶
Convert phrase to title case.