From 36218ffc9647efc5ce643e4fff5ca8a21def7716 Mon Sep 17 00:00:00 2001 From: Danny Cooper Date: Thu, 2 Nov 2023 14:30:48 +0000 Subject: [PATCH] Correct singularization of brownies --- lib/Doctrine/Inflector/Rules/English/Inflectible.php | 1 + .../Tests/Inflector/Rules/English/EnglishFunctionalTest.php | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/Doctrine/Inflector/Rules/English/Inflectible.php b/lib/Doctrine/Inflector/Rules/English/Inflectible.php index a143a66..ee3bae6 100644 --- a/lib/Doctrine/Inflector/Rules/English/Inflectible.php +++ b/lib/Doctrine/Inflector/Rules/English/Inflectible.php @@ -104,6 +104,7 @@ public static function getIrregular(): iterable yield new Substitution(new Word('child'), new Word('children')); yield new Substitution(new Word('canvas'), new Word('canvases')); yield new Substitution(new Word('cookie'), new Word('cookies')); + yield new Substitution(new Word('brownie'), new Word('brownies')); yield new Substitution(new Word('corpus'), new Word('corpuses')); yield new Substitution(new Word('cow'), new Word('cows')); yield new Substitution(new Word('criterion'), new Word('criteria')); diff --git a/tests/Doctrine/Tests/Inflector/Rules/English/EnglishFunctionalTest.php b/tests/Doctrine/Tests/Inflector/Rules/English/EnglishFunctionalTest.php index 4f92c19..7f9d346 100644 --- a/tests/Doctrine/Tests/Inflector/Rules/English/EnglishFunctionalTest.php +++ b/tests/Doctrine/Tests/Inflector/Rules/English/EnglishFunctionalTest.php @@ -83,6 +83,7 @@ public function dataSampleWords(): array ['congoese', 'congoese'], ['contretemps', 'contretemps'], ['cookie', 'cookies'], + ['brownie', 'brownies'], ['copy', 'copies'], ['coreopsis', 'coreopsis'], ['corps', 'corps'],