Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 721 Bytes

README.rst

File metadata and controls

45 lines (26 loc) · 721 Bytes

French Pluralize

Convert a singular word into plural according french grammar rules. Plural to singular is available too (but some special cases are probably missing).

Usable as Jinja2 filter.

Licence

BSD license (see LICENCE file)

Features

  1. Python code example:
import pluralizefr
pluralizefr.pluralize("fromage") # return fromages
pluralizefr.singularize("fromages") # return fromage
  1. Jinja2 exemple:
{{ 'fromage' | pluralize }}

Installation

The package is available at: https://pypi.org/project/pluralizefr/

Install it with:

pip install pluralizefr