--- id: pluralizer version: "2.0.0" license: MIT license_treatment: permissive maintenance: active --- # pluralizer — Singularize or pluralize a given word using a pre-defined list of rules License: permissive · Maintenance: active · Downloads: 370.7K/mo ## 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 above — 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 pip install pluralizer uv add pluralizer 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_current - Install friction: low - Maintenance: active - Downloads: 370.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags pluralize singularize words, english word pluralization, singular plural conversion, text inflection rules, word form transformation, grammar inflection library, pluralize with count, nlp-lite, text-processing [View on SkillFed](https://skillfed.io/packages/pluralizer) · [View on PyPI](https://pypi.org/project/pluralizer/)