skillfed

jinja2_pluralize

Jinja2 pluralize filters.

jinja2-pluralize v0.3.0 443.4K downloads/30d#6,630 on PyPI10
Permissive license BSD Abandoned released

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-pluralize

uv

uv add jinja2-pluralize

poetry

poetry add jinja2-pluralize

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseNatural Language :: EnglishProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5

Tags

jinja2 pluralize filtertemplate pluralizationdjango-style pluralizeenglish word pluralizationjinja2 inflect filtertemplate text pluralizationword inflection jinja2
jinja2-filterunmaintainedtext-processing

More Linguistic packages