Skip to content

Commit

Permalink
Fix wrong singularization of 'nurseries'
Browse files Browse the repository at this point in the history
  • Loading branch information
thrashzone13 committed Jun 18, 2024
1 parent 73112f2 commit b22bff2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rules/English/Inflectible.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand All @@ -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'));
Expand Down
1 change: 1 addition & 0 deletions tests/Rules/English/EnglishFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ public function dataSampleWords(): array
['yengeese', 'yengeese'],
['zombie', 'zombies'],
['|ice', '|ices'],
['nursery', 'nurseries'],
];
}

Expand Down

0 comments on commit b22bff2

Please sign in to comment.