[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.
This commit is contained in:
Gerben Wijnja 2015-04-03 01:10:26 +02:00
parent 36d62eea7d
commit 6f5e95b762
2 changed files with 4 additions and 0 deletions

View File

@ -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'),

View File

@ -99,6 +99,7 @@ class StringUtilTest extends \PHPUnit_Framework_TestCase
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')),