Home
Python API

primitives.transformations.strings.inflection

Public API documentation generated from source.
def pluralize(word: str, count: int | None = None) -> str:
def singularize(word: str) -> str:
def camelize(phrase: str, uppercase_first_letter: bool = True) -> str:
def underscore(phrase: str) -> str:
def humanize(phrase: str, capitalize: bool = True) -> str:
def titleize(phrase: str) -> str:
def ordinalize(value: int | str) -> str:
def parameterize(phrase: str, separator: str = "-") -> str:

Source

View source