Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e8da574

Browse filesBrowse files
committed
Correctly singularize edges to edge
See https://en.wiktionary.org/wiki/edge
1 parent c3e9218 commit e8da574
Copy full SHA for e8da574

File tree

2 files changed

+6
-2
lines changed
Filter options

2 files changed

+6
-2
lines changed

‎src/Symfony/Component/Inflector/Inflector.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Inflector/Inflector.php
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ final class Inflector
123123
// fees (fee), trees (tree), employees (employee)
124124
['see', 3, true, true, 'ee'],
125125

126+
// edges (edge)
127+
['segd', 4, true, true, 'dge'],
128+
126129
// roses (rose), garages (garage), cassettes (cassette),
127130
// waltzes (waltz), heroes (hero), bushes (bush), arches (arch),
128131
// shoes (shoe)

‎src/Symfony/Component/Inflector/Tests/InflectorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Inflector/Tests/InflectorTest.php
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public function singularizeProvider()
6666
['drivers', 'driver'],
6767
['dwarves', ['dwarf', 'dwarve', 'dwarff']],
6868
['echoes', ['echo', 'echoe']],
69+
['edges', 'edge'],
6970
['elves', ['elf', 'elve', 'elff']],
7071
['emphases', ['emphas', 'emphase', 'emphasis']],
7172
['employees', 'employee'],
@@ -78,12 +79,12 @@ public function singularizeProvider()
7879
['formulae', 'formula'],
7980
['formulas', 'formula'],
8081
['fungi', 'fungus'],
81-
['funguses', ['fungus', 'funguse', 'fungusis']],
82+
['fungi', ['fungus', 'funguse', 'fungusis']],
8283
['garages', ['garag', 'garage']],
8384
['geese', 'goose'],
8485
['halves', ['half', 'halve', 'halff']],
8586
['hats', 'hat'],
86-
['heroes', ['hero', 'heroe']],
87+
['heroes', ['hero', 'hero']],
8788
['hippopotamuses', ['hippopotamus', 'hippopotamuse', 'hippopotamusis']], //hippopotami
8889
['hoaxes', 'hoax'],
8990
['hooves', ['hoof', 'hoove', 'hooff']],

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.