solventt / pluralizer
Converts a noun from singular to plural
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/solventt/pluralizer
Requires
- php: ^7.4 || ^8.0
Requires (Dev)
- phpunit/phpunit: ^9.6
- squizlabs/php_codesniffer: ^3.9
- vimeo/psalm: ^5.24
This package is auto-updated.
Last update: 2025-10-14 16:42:11 UTC
README
This package converts a noun from singular to plural. Also supports:
- 286 uncountable nouns which have the same singular and plural form
- exceptions like "man - men", "tooth - teeth", etc.
- identical noun forms (sheep, swine, deer, etc.)
DOESN'T support compound nouns (e.g. head banger, son-in-law, etc.)
One of the grammar rules sources - https://en.wikipedia.org/wiki/English_plurals
If someone doubts about nouns ending in -o, there are links to wiktionary.org on https://www.wordexample.com/list/nouns-ending-o
Installing
composer require solventt/pluralizer
Usage
$plural = Pluralizer::convert('singular');