framework
framework copied to clipboard
Uppercase acronyms pluralise with uppercase “S” (e.g. "CD" → "CDS") instead of lowercase “s”. (CDs)
Laravel Version
10.48.29
PHP Version
8.3
Database Driver & Version
NA
Description
Illuminate\Support\Pluralizer pluralises all-uppercase words by appending an uppercase S, producing incorrect results.
Examples:
use Illuminate\Support\Pluralizer;
echo Pluralizer::plural('CD'); // outputs "CDS" (wrong, should be CDs)
echo Pluralizer::plural('DVD'); // outputs "DVDS" (wrong, should be DVDs)
Why this is a bug: • Standard English usage pluralises acronyms with a lowercase s. • Examples in common dictionaries and style guides: CDs, DVDs, URLs, not CDS, DVDS, URLS. • The current behaviour produces grammatically incorrect results in real-world applications.
Steps To Reproduce
use Illuminate\Support\Pluralizer;
echo Pluralizer::plural('CD'); // outputs "CDS" (wrong, should be CDs)