Skip to content

Commit

Permalink
Merge pull request #259 from vdauchy/singular-locaux
Browse files Browse the repository at this point in the history
Correct singularization of locaux
  • Loading branch information
malarzm authored Jun 30, 2024
2 parents 101fa0b + 3517eef commit 8c9ee76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rules/French/Inflectible.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static function getSingular(): iterable
{
yield new Transformation(new Pattern('/(b|cor|ém|gemm|soupir|trav|vant|vitr)aux$/'), '\1ail');
yield new Transformation(new Pattern('/ails$/'), 'ail');
yield new Transformation(new Pattern('/(journ|chev)aux$/'), '\1al');
yield new Transformation(new Pattern('/(journ|chev|loc)aux$/'), '\1al');
yield new Transformation(new Pattern('/(bijou|caillou|chou|genou|hibou|joujou|pou|au|eu|eau)x$/'), '\1');
yield new Transformation(new Pattern('/s$/'), '');
}
Expand Down
1 change: 1 addition & 0 deletions tests/Rules/French/FrenchFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function dataSampleWords(): array
['pneu', 'pneus'],
['sarrau', 'sarraus'],
['journal', 'journaux'],
['local', 'locaux'],
['détail', 'détails'],
['bail', 'baux'],
['corail', 'coraux'],
Expand Down

0 comments on commit 8c9ee76

Please sign in to comment.