Last 12 weeks · 0 commits
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. Open PRs: 0, open issues: 0. Last activity: 8mo ago. Top contributors: sindresorhus, ersel, therealklanni, AlexMeah, coreyfarrell, cadam11, Tyriar, BendingBender, fed, MrIceman and others.