inflect
Correctly generate plurals, singular nouns, ordinals, indefinite articles
Install
inflect on PyPI
pip
pip install inflectuv
uv add inflectpoetry
poetry add inflectPackage facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — more_itertools, typeguard, typing_extensions |
| Maintenance | actively maintained — 593 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: inflect-7.5.0-py3-none-any.whl
Keywords: plural, inflect, participle
About inflect
from the package's own PyPI description — quoted content, verbatim
.. image:: https://img.shields.io/pypi/v/inflect.svg :target: https://pypi.org/project/inflect
.. image:: https://img.shields.io/pypi/pyversions/inflect.svg
.. image:: https://github.com/jaraco/inflect/actions/workflows/main.yml/badge.svg :target: https://github.com/jaraco/inflect/actions?query=workflow%3A%22tests%22 :alt: tests
.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json :target: https://github.com/astral-sh/ruff :alt: Ruff
.. image:: https://readthedocs.org/projects/inflect/badge/?version=latest :target: https://inflect.readthedocs.io/en/latest/?badge=latest
.. image:: https://img.shields.io/badge/skeleton-2024-informational :target: https://blog.jaraco.com/skeleton
.. image:: https://tidelift.com/badges/package/pypi/inflect :target: https://tidelift.com/subscription/pkg/pypi-inflect?utm_source=pypi-inflect&utm_medium=readme
NAME
inflect.py - Accurately generate plurals, singular nouns, ordinals, indefinite articles, and word-based representations of numbers. This functionality is limited to English.
SYNOPSIS
.. code-block:: python
>>>...
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Inflect generates correct English plurals, singulars, ordinals, indefinite articles, and word-based number representations. It handles pluralization of nouns, verbs, and adjectives, plus classical grammar variants.
Low friction: pure Python wheel with three lightweight runtime dependencies (more_itertools, typeguard, typing_extensions). Active maintenance with last commit in April 2026 and stable production status since 2010.
MIT license (permissive) allows commercial and private use with minimal restrictions, making it suitable for most projects.
Usage
import inflect
p = inflect.engine()
print(p.plural('person')) # 'people'
print(p.number_to_words(243)) # 'two hundred and forty-three'
print(p.ordinal(1)) # '1st'
Requires Python 3.9 or later.
Verdict: Inflect is a mature, actively maintained library with no known vulnerabilities, low install friction, and permissive licensing. It's well-suited for English text generation and NLP tasks requiring accurate morphological inflection.
Needs verification
- Whether the library's plural/singular rules cover all common English words or have known gaps
- Performance characteristics when processing large batches of words or numbers
Similar packages
permissive · top 1,000 on PyPI
inflectionpermissive · top 1,000 on PyPI
natsortpermissive · top 1,000 on PyPI
snowballstemmerpermissive · top 1,000 on PyPI
jaraco.classespermissive · top 1,000 on PyPI
jaraco.functoolspermissive · top 1,000 on PyPI
zipppermissive · top 100 on PyPI
jaraco.contextpermissive · top 1,000 on PyPI
importlib-metadatapermissive · top 100 on PyPI
importlib-resourcespermissive · top 1,000 on PyPI