From dd8bc0895296c8fdaec0ed447431132b44bddf41 Mon Sep 17 00:00:00 2001 From: Reza Rabbani Date: Tue, 18 Jun 2024 12:15:19 +0200 Subject: [PATCH] Fix wrong singularization of 'nurseries' --- src/Rules/English/Inflectible.php | 2 +- tests/Rules/English/EnglishFunctionalTest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Rules/English/Inflectible.php b/src/Rules/English/Inflectible.php index a311d74..5223df3 100644 --- a/src/Rules/English/Inflectible.php +++ b/src/Rules/English/Inflectible.php @@ -150,6 +150,7 @@ public static function getIrregular(): iterable yield new Substitution(new Word('niveau'), new Word('niveaux')); yield new Substitution(new Word('nucleus'), new Word('nuclei')); yield new Substitution(new Word('numen'), new Word('numina')); + yield new Substitution(new Word('nursery'), new Word('nurseries')); yield new Substitution(new Word('oasis'), new Word('oases')); yield new Substitution(new Word('occiput'), new Word('occiputs')); yield new Substitution(new Word('octopus'), new Word('octopuses')); @@ -175,7 +176,6 @@ public static function getIrregular(): iterable yield new Substitution(new Word('trilby'), new Word('trilbys')); yield new Substitution(new Word('turf'), new Word('turfs')); yield new Substitution(new Word('valve'), new Word('valves')); - yield new Substitution(new Word('valve'), new Word('valves')); // Duplicate yield new Substitution(new Word('volcano'), new Word('volcanoes')); yield new Substitution(new Word('wave'), new Word('waves')); yield new Substitution(new Word('zombie'), new Word('zombies')); diff --git a/tests/Rules/English/EnglishFunctionalTest.php b/tests/Rules/English/EnglishFunctionalTest.php index bb37813..700cfe5 100644 --- a/tests/Rules/English/EnglishFunctionalTest.php +++ b/tests/Rules/English/EnglishFunctionalTest.php @@ -368,6 +368,7 @@ public function dataSampleWords(): array ['yengeese', 'yengeese'], ['zombie', 'zombies'], ['|ice', '|ices'], + ['nursery', 'nurseries'] ]; }