skillfed

pluralizer

Singularize or pluralize a given word using a pre-defined list of rules

pluralizer v2.0.0 370.7K downloads/30d#7,174 on PyPI15
Permissive license MIT Active released

What it is and what it does

Pluralizer is a Python port of the popular JavaScript pluralize library. It applies a pre-defined ordered set of rules to convert English words between singular and plural forms, and can optionally include a count prefix in the output. The package exposes methods to pluralize, singularize, and test whether a word is in plural or singular form.

The library is designed for automation tasks where word forms need to be determined programmatically—such as generating user-facing text, building dynamic queries, or formatting output. It requires Python 3.10 or later and has no external runtime dependencies, making it lightweight to integrate. The author evaluated several alternatives (TextBlob, inflect, NLTK Wordnet) and selected this approach as most accurate for their use case.

Use it for:

  • Generate grammatically correct user-facing messages that include dynamic counts ('1 apple' vs '2 apples')
  • Build database queries or API calls that need singular or plural form of a resource name
  • Format log messages or reports where noun forms must agree with quantities
  • Validate or normalize user input by checking whether a word is in expected singular or plural form
  • Construct URLs or identifiers that use plural nouns (e.g., '/users' vs '/user')

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Converts English words between singular and plural forms using a rule-based system, with optional count formatting.

Yes. Pluralizer is a stable, actively maintained library with no dependencies, a permissive license, and no known vulnerabilities. Install it if you need reliable English word pluralization in automation or text generation; skip it if word forms are known at design time or if you need a heavier NLP toolkit.

Install

pluralizer on PyPI

pip

pip install pluralizer

uv

uv add pluralizer

poetry

poetry add pluralizer

Installing pluralizer

Before you install

Installs with no runtime dependencies and is actively maintained; last commit was recent.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions.

Quickstart

pip install pluralizer

from pluralizer import Pluralizer

pluralizer = Pluralizer()
print(pluralizer.pluralize('apple', 2, True))  # '2 apples'
print(pluralizer.singular('apples'))  # 'apple'

Requires Python 3.10 or later.

Verify before relying

  • Accuracy compared to the original JavaScript pluralize library it was ported from
  • Coverage of edge cases and irregular plurals beyond common English words
  • Performance characteristics for high-volume word conversions

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance actively maintained — 429 days since the last release
Last repo commit
First released
Downloads 370,661/month — #7,174 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pluralizer-2.0.0-py3-none-any.whl

Keywords: plural, pluralize, singular, singularize

Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Topic :: Software Development :: Libraries :: Python Modules

Tags

pluralize singularize wordsenglish word pluralizationsingular plural conversiontext inflection rulesword form transformationgrammar inflection librarypluralize with count
nlp-litetext-processing

More Python Modules packages