jinja2_pluralize
Jinja2 pluralize filters.
What it is and what it does
Jinja2 Pluralize adds two template filters for handling English word pluralization within Jinja2 templates. The first is a simple pluralize filter that converts singular nouns to their plural forms (e.g., 'goose' becomes 'geese'). The second is a Django-style pluralize filter that works like Django's built-in pluralize, useful for rendering grammatically correct text based on counts (e.g., 'vote' or 'votes' depending on a number).
The package has no runtime dependencies and installs as a pure Python wheel. It is intended for developers building Jinja2-based template systems who need straightforward pluralization. However, the project has been abandoned since its 0.3.0 release in 2015 and receives no active maintenance, so it may not be compatible with recent Jinja2 or Python versions.
Use it for:
- Render grammatically correct pluralized nouns in Jinja2 email templates or HTML output based on dynamic counts.
- Build template systems that need Django-style pluralize behavior without depending on Django itself.
- Generate user-facing text in template-driven applications where singular/plural forms must match data.
- Add pluralization filters to custom Jinja2 environments for static site generators or documentation tools.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Jinja2 template filters for pluralizing English words, including a simple inflect-based filter and a Django-style pluralize filter.
Yes, if you need simple English pluralization in Jinja2 templates and can accept an unmaintained package. The zero runtime dependencies and permissive BSD license make it low-friction to add. However, verify compatibility with your Jinja2 and Python versions first, since the package has not been updated since 2015 and may not work with modern versions.
Install
jinja2-pluralize on PyPI
pip
pip install jinja2-pluralizeuv
uv add jinja2-pluralizepoetry
poetry add jinja2-pluralizeInstalling jinja2_pluralize
Before you install
No runtime dependencies and a pure-Python wheel distribution make installation straightforward. However, the package has been abandoned since 2015 with no commits after 2022-12-26, so it will not receive maintenance or updates.
License in practice
BSD license is permissive, allowing commercial and private use with minimal restrictions.
Quickstart
from jinja2 import Environment
from jinja2_pluralize import pluralize_dj
env = Environment()
env.filters['pluralize'] = pluralize_dj
tmpl = env.from_string('vote{{ 0|pluralize }}')
assert tmpl.render() == 'votes'
Verify before relying
- Whether the package works correctly with modern Jinja2 versions despite being unmaintained since 2015.
- Compatibility with Python versions beyond 3.5, which was the latest tested version at release.
- Whether inflect.py is an implicit dependency or whether pluralization logic is self-contained.
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 3,962 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 443,368/month — #6,630 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: jinja2_pluralize-0.3.0-py2.py3-none-any.whl
Keywords: Jinja2, filter, pluralize, Django, inflect
Tags
More Linguistic packages
Detects and normalizes text encoding from…
permissive · top 100 on PyPI
tiktokentiktoken is a fast BPE tokenizer that converts…
permissive · top 1,000 on PyPI
chardetDetects character encoding and language in byte…
permissive · top 1,000 on PyPI
text-unidecodeConverts Unicode text to ASCII by…
copyleft · top 1,000 on PyPI
larkLark is a parsing library that builds abstract…
permissive · top 1,000 on PyPI
tree-sitterPython bindings to the tree-sitter parsing…
permissive · top 1,000 on PyPI
pluralizerConverts English words between singular and…
permissive · top 15,000 on PyPI
jinja2-ansible-filtersProvides a collection of Jinja2 template…
copyleft · top 5,000 on PyPI
jinja2-strcaseAdds string-case conversion filters to Jinja2…
permissive · top 15,000 on PyPI
inflectionInflection singularizes and pluralizes English…
permissive · top 1,000 on PyPI
sphinx-jinja2-compatPatches Jinja2 v3 to restore compatibility with…
permissive · top 15,000 on PyPI
jinja_partialsAdds a `render_partial()` function to Jinja2…
permissive · top 5,000 on PyPI
inflectGenerates correct English plurals, singulars,…
permissive · top 1,000 on PyPI
Jinja2Jinja2 is a templating engine that renders…
permissive · top 100 on PyPI
jinja2-humanize-extensionAdds humanize library filters to Jinja2…
permissive · top 5,000 on PyPI
copier-template-extensionsExtends Copier's Jinja2 templating with a…
permissive · top 15,000 on PyPI