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')); 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'],