# plurals/pluralize

Pluralize or singularize any word based on a count

Repository: https://github.com/plurals/pluralize
Canonical: https://ross.abutalabs.com/products/pluralize
Language: JavaScript
License: MIT
License Family: permissive
Topics: plurals, singular, words, english, language, pluralize, pluralization
Last push: 2024-06-26T06:45:16+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4902, "days_push": 798, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2213, forks 182 (observed 2026-08-28T04:06:26.974709+00:00)

## What it is
A small JavaScript library that pluralizes or singularizes English words based on a count, using an ordered list of predefined rules. It supports custom plural, singular, irregular, and uncountable rules, and works in Node, AMD, and browser environments.

## Use cases
- pluralize a word based on a count in JavaScript
- singularize English words in Node.js
- display '1 test' vs '5 tests' with correct grammar
- add custom pluralization rules for domain-specific words
- check whether a word looks singular or plural
- handle uncountable nouns like 'paper' in generated text

## When to choose
- you need grammatically correct plural/singular forms for dynamic user-facing text
- you want a tiny, dependency-free utility usable in Node or the browser
- you need to extend inflection rules for irregular or domain-specific vocabulary

## When to avoid
- your word list is known ahead of time and a simple ternary would suffice
- you need full morphological analysis or non-English inflection
- you need a general NLP toolkit rather than a single utility

## Facets
- artifact type: library
- maturity: maintenance
- function: nlp, internationalization, developer-tools
- domain: web-development, developer-tools
- platform: browser
- tags: pluralize, singularize, english-grammar, word-inflection, string-utilities, natural-language-processing, nodejs, javascript

## Member repositories
- plurals/pluralize (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:26.974709+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:46:01.338646+00:00, confidence not recorded.
  - readme: https://github.com/plurals/pluralize (fetched 2026-08-28T04:06:26.974709+00:00, sha 933dd122f835)
- Data as of 2026-08-30T08:39:29.467469+00:00.
