pluralize
English word pluralization/singularization library. Converts English words between singular and plural forms using a comprehensive rule set with irregular word handling. Includes count-aware pluralization (plural(word, count)), singularization, and irregular word registration. Used in code generation, API response formatting, NLP preprocessing, and UI text that shows counts ('1 item' vs '5 items').
Score Breakdown
⚙ Agent Friendliness
🔒 Security
Zero security surface — pure string transformation library.
⚡ Reliability
Best When
You need English singular/plural word form conversion in JavaScript/TypeScript for code generation, UI text, or NLP preprocessing.
Avoid When
You're working with non-English text or need multi-language pluralization — use i18next or language-specific libraries.
Use Cases
- • Pluralize model names for display text: 'You have 3 messages' using pluralize('message', count)
- • Generate proper API resource names in code generators: 'User' → 'users' table name, 'Post' → 'posts' endpoint
- • Format user-facing counts with correct grammar: '1 error' vs '2 errors' without conditional code
- • Singularize plural words for ORM model name inference from database table names
- • NLP preprocessing: normalize word forms for text analysis by converting plurals to singular form
Not For
- • Non-English languages — pluralize handles English only; use i18next-plural or language-specific libraries for other languages
- • Complex grammatical transformations — pluralize handles singular/plural only; use NLP libraries for full grammar
- • Medical or legal terminology with specialized plural rules — always test domain-specific terms
Interface
Authentication
No authentication — string utility library.
Pricing
Fully free, MIT licensed.
Agent Metadata
Known Gotchas
- ⚠ English-only: non-English words may be pluralized incorrectly using English rules — test domain-specific or foreign terms explicitly
- ⚠ Proper nouns typically shouldn't be pluralized — 'Paris' → 'Parises' is incorrect; filter proper nouns before pluralizing
- ⚠ Technical terms may not follow English rules — check terms like 'vertex' → 'vertices' vs 'vertexes'; pluralize handles many technical terms but edge cases exist
- ⚠ pluralize.isPlural() and isSingular() are heuristics — they can be wrong for ambiguous words like 'sheep' or 'fish'
- ⚠ Custom irregular words can be registered with pluralize.addIrregularRule() — for domain-specific terminology that the default rules get wrong
- ⚠ Count-aware pluralization: pluralize(word, count, inclusive) — pass inclusive: true to include the count in output: '3 items' vs '3'
Alternatives
Full Evaluation Report
Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for pluralize.
AI-powered analysis · PDF + markdown · Delivered within 30 minutes
Package Brief
Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.
Delivered within 10 minutes
Score Monitoring
Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.
Continuous monitoring
Scores are editorial opinions as of 2026-03-07.