Automatically pluralize any english word the right way
June 24, 2008 | 0 comments | 1 Page
If you need a function to automatically pluralize a word for you in a proper english manor you can use this function. All you do is pass the word you want to turn plural through the function and the plural version will be returned.
If no match is found for a plural alternative of the word passed in to the function, the word passed in will be returned.
Pluralization examples:
$non_plural = pluralize("Word");
Virus = Virii
Person = People
Code Monkey = Code Monkeys
Deer = Deer
Aaron = Aarons
· Keywords: pluralize, plural, english, words, function