Last 12 weeks · 0 commits
4 of 6 standards met
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
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 (9mo ago). Open PRs: 0, open issues: 0. Last activity: 9mo ago. Community health: 85%. Top contributors: sindresorhus, ersel, therealklanni, AlexMeah, coreyfarrell, cadam11, Tyriar, BendingBender, fed, MrIceman and others.