l.t.u.pluralforms : module documentation

Part of lp.translations.utilities

No module docstring
Class BadPluralExpression Unusable plural expression.
Function make_friendly_plural_forms Return a list of dicts describing plural forms and examples.
Function make_plural_function Create a lambda function for a C-like plural expression.
Function make_plurals_identity_map Return a dict mapping each plural form number onto itself.
Function plural_form_mapper Maps plural forms from one plural formula to the other.
def make_friendly_plural_forms(expression, expected_forms):
Return a list of dicts describing plural forms and examples.
def make_plural_function(expression):
Create a lambda function for a C-like plural expression.
def make_plurals_identity_map():
Return a dict mapping each plural form number onto itself.
def plural_form_mapper(first_expression, second_expression):
Maps plural forms from one plural formula to the other.

Returns a dict indexed by indices in the first_formula pointing to corresponding indices in the second_formula.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.