Skip to content

Commit

Permalink
Merge pull request #257 from vdauchy/singular-bois
Browse files Browse the repository at this point in the history
Correct singularization of bois
  • Loading branch information
SenseException authored Jun 24, 2024
2 parents 73112f2 + 1cb77eb commit 101fa0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Rules/French/Uninflected.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ final class Uninflected
public static function getSingular(): iterable
{
yield from self::getDefault();

yield new Pattern('bois');
}

/** @return Pattern[] */
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 @@ -55,6 +55,7 @@ public function dataSampleWords(): array
['carnaval', 'carnavals'],
['festival', 'festivals'],
['récital', 'récitals'],
['bois', 'bois'],
];
}

Expand Down

0 comments on commit 101fa0b

Please sign in to comment.