Skip to content

Commit

Permalink
[StringUtil] Fixed singularification of 'movies'
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gwijnja committed Apr 2, 2015
1 parent 36d62ee commit 6f5e95b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Symfony/Component/PropertyAccess/StringUtil.php
Expand Up @@ -60,6 +60,9 @@ class StringUtil
// indices (index), appendices (appendix), prices (price)
array('seci', 4, false, true, array('ex', 'ix', 'ice')),

// movies (movie)
array('seivom', 6, true, true, 'movie'),

// babies (baby)
array('sei', 3, false, true, 'y'),

Expand Down
Expand Up @@ -99,6 +99,7 @@ public function singularifyProvider()
array('men', 'man'),
array('mice', 'mouse'),
array('moves', 'move'),
array('movies', 'movie'),
array('nebulae', 'nebula'),
array('neuroses', array('neuros', 'neurose', 'neurosis')),
array('oases', array('oas', 'oase', 'oasis')),
Expand Down

0 comments on commit 6f5e95b

Please sign in to comment.