FriendsOfSymfony/FOSRestBundle — pull request #290 by benja-M-1 (2012-09-04 13:43:35+00:00)
Title: Fix pluralization of plurals

When creating action like ```getFamiliesFoosAction($familyId, $paramFetcher)``` the generated route looks like this:

api_get_families_foo => GET /family/{$familyId}/foos.{format}

That's because the pluralization of plurals words finishing in "ies" (like families) replaces the end by "y"

families => family

I added test cases and made rules, irregulars and uncountables words global to the class.