sindresorhus

plur

Pluralize a word

by sindresorhus

JavaScript

JavaScript92.4%
TypeScript7.6%

Commit activity

Last 12 weeks · 1 commit

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
andrews05
Custom rulesClosedIssue

Hi, is there a way to define custom rules? E.g. pluralize => (just an example, not sure how plur actually handles this word right now)

andrews05 · 8mo ago
adrian05-ms

Hello, I was wondering if it was possible to add a feature that checks if the word that is being passed to plur is already plural or not. This is because if the text is coming from a third source, I don't have control on, it's hard to determine wherever it requires using plur or not. And if we pass the word as it is, it pluralizes the word without checking resulting in non-existent words. Like for example, currently If we pass "lines" it returns "linesess". By adding a check, we can ensure if this case doesn't happen and plur returns the word as it is. Something similar to the function from

adrian05-ms · 9mo ago
ghostwriter

Hi, While testing the this library, several pluralization results were found to be incorrect. Below are the words that return an incorrect plural form and their correct counterparts:

ghostwriter · 11mo ago
Structured data for AI agents

Repository: sindresorhus/plur. Description: Pluralize a word Stars: 254, Forks: 18. Primary language: JavaScript. Languages: JavaScript (92.4%), TypeScript (7.6%). License: MIT. Latest release: v6.0.0 (11mo ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, ersel, therealklanni, AlexMeah, coreyfarrell, cadam11, Tyriar, BendingBender, fed, MrIceman and others.