Skip to content

Commit

Permalink
[String] Fix some spellings in EnglishInflector
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Nov 10, 2024
1 parent 7f6807a commit 136ca7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Inflector/EnglishInflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,14 +348,14 @@ final class EnglishInflector implements InflectorInterface
// indices (index)
['xedni', 5, false, true, ['indicies', 'indexes']],

// fax (faxes, faxxes)
['xaf', 3, true, true, ['faxes', 'faxxes']],

// boxes (box)
['xo', 2, false, true, 'oxes'],

// indexes (index), matrixes (matrix)
['x', 1, true, false, ['cies', 'xes']],

// appendices (appendix)
['xi', 2, false, true, 'ices'],
// indexes (index), matrixes (matrix), appendices (appendix)
['x', 1, true, false, ['ces', 'xes']],

// babies (baby)
['y', 1, false, true, 'ies'],
Expand Down
6 changes: 3 additions & 3 deletions Tests/Inflector/EnglishInflectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public static function pluralizeProvider()
['analysis', 'analyses'],
['ankle', 'ankles'],
['antenna', 'antennas'], // antennae
['appendix', ['appendicies', 'appendixes']],
['appendix', ['appendices', 'appendixes']],
['arch', 'arches'],
['article', 'articles'],
['atlas', 'atlases'],
Expand Down Expand Up @@ -238,7 +238,7 @@ public static function pluralizeProvider()
['edge', 'edges'],
['elf', ['elfs', 'elves']],
['emphasis', 'emphases'],
['fax', ['facies', 'faxes']],
['fax', ['faxes', 'faxxes']],
['feedback', 'feedback'],
['focus', 'focuses'],
['foot', 'feet'],
Expand Down Expand Up @@ -267,7 +267,7 @@ public static function pluralizeProvider()
['life', 'lives'],
['louse', 'lice'],
['man', 'men'],
['matrix', ['matricies', 'matrixes']],
['matrix', ['matrices', 'matrixes']],
['medium', 'media'],
['memorandum', 'memoranda'],
['mouse', 'mice'],
Expand Down

0 comments on commit 136ca7d

Please sign in to comment.