Skip to content

Commit

Permalink
Fix singular of words ending in "ss" (#5198)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Oct 25, 2023
1 parent 1d3fc91 commit 98bb858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private function singularize(string $word): string
'/((a)naly|(b)a|(d)iagno|empha|(p)arenthe|(p)rogno|(s)ynop|(t)he|(oa)|neuro)ses$/i' => '\\1\\2sis',
'/([ti]|memorand|curricul)a$/i' => '\\1um',
'/(n)ews$/i' => '\\1ews',
'/s$/i' => '',
'/(?<!s)s$/i' => '',
];

$irregular = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public static function provideData(): Iterator
yield ['news', 'new'];
yield ['property', 'property'];
yield ['argsOrOptions', 'argOrOption'];
yield ['class', 'class'];

// news and plural
yield ['staticCallsToNews', 'staticCallToNew'];
Expand Down

0 comments on commit 98bb858

Please sign in to comment.