From 158a7f5752fecda9e03a3ea675efba1d718fb997 Mon Sep 17 00:00:00 2001 From: Matt Jones Date: Mon, 25 Sep 2023 11:00:40 +0100 Subject: [PATCH 1/2] Correct pluralization of die Fixes #232 --- lib/Doctrine/Inflector/Rules/English/Inflectible.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Doctrine/Inflector/Rules/English/Inflectible.php b/lib/Doctrine/Inflector/Rules/English/Inflectible.php index a143a66..508b054 100644 --- a/lib/Doctrine/Inflector/Rules/English/Inflectible.php +++ b/lib/Doctrine/Inflector/Rules/English/Inflectible.php @@ -109,6 +109,7 @@ public static function getIrregular(): iterable yield new Substitution(new Word('criterion'), new Word('criteria')); yield new Substitution(new Word('curriculum'), new Word('curricula')); yield new Substitution(new Word('demo'), new Word('demos')); + yield new Substitution(new Word('die'), new Word('dice')); yield new Substitution(new Word('domino'), new Word('dominoes')); yield new Substitution(new Word('echo'), new Word('echoes')); yield new Substitution(new Word('epoch'), new Word('epochs')); From dab5670a1c943b111bd15e96a57e477da4b32566 Mon Sep 17 00:00:00 2001 From: Matt Jones Date: Mon, 25 Sep 2023 11:56:18 +0100 Subject: [PATCH 2/2] Adding die example to tests --- .../Tests/Inflector/Rules/English/EnglishFunctionalTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Doctrine/Tests/Inflector/Rules/English/EnglishFunctionalTest.php b/tests/Doctrine/Tests/Inflector/Rules/English/EnglishFunctionalTest.php index 4f92c19..38188f9 100644 --- a/tests/Doctrine/Tests/Inflector/Rules/English/EnglishFunctionalTest.php +++ b/tests/Doctrine/Tests/Inflector/Rules/English/EnglishFunctionalTest.php @@ -99,6 +99,7 @@ public function dataSampleWords(): array ['debris', 'debris'], ['deer', 'deer'], ['demo', 'demos'], + ['die', 'dice'], ['diabetes', 'diabetes'], ['diagnosis', 'diagnoses'], ['diagnosis_a', 'diagnosis_as'],