8000 [StringUtil] Fixed singularification of 'movies' · symfony/symfony@6f5e95b · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f5e95b

Browse files
committed
[StringUtil] Fixed singularification of 'movies'
The word 'movies' was singularified to 'movy'. There seem to be only two words ending in 'ovies', which are 'movies' and 'anchovies'. The singular of the latter is 'anchovy'. All other words ending in 'vies' singularify to 'vy', so the word 'movies' is an exception to the general rule.
1 parent 36d62ee commit 6f5e95b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Symfony/Component/PropertyAccess/StringUtil.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ class StringUtil
6060
// indices (index), appendices (appendix), prices (price)
6161
array('seci', 4, false, true, array('ex', 'ix', 'ice')),
6262

63+
// movies (movie)
64+
array('seivom', 6, true, true, 'movie'),
65+
6366
// babies (baby)
6467
array('sei', 3, false, true, 'y'),
6568

src/Symfony/Component/PropertyAccess/Tests/StringUtilTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public function singularifyProvider()
9999
array('men', 'man'),
100100
array('mice', 'mouse'),
101101
array('moves', 'move'),
102+
array('movies', 'movie'),
102103
array('nebulae', 'nebula'),
103104
array('neuroses', array('neuros', 'neurose', 'neurosis')),
104105
array('oases', array('oas', 'oase', 'oasis')),

0 commit comments

Comments
 (0)
0