Source for file modifier.plural.php
Documentation is available at modifier.plural.php
* @copyright since 2006, Bimal Poudel
* Makes a word plural, with easy guessing only.
* http://www.factmonster.com/ipka/A0886509.html
* @url http://www.smarty.net/forums/viewtopic.php?t=18399
* @example {'page'|plural:2}
# What to append to the word to make it plural?
# frequency => frequencies, copy => copies, company => companies
# Remove the last letter: [ y ]
# Words having [ oo ] in the second last letters.
# foot => feet, goose => geese
$plural_marker = 'ee' . $data[1];
$plural = $word . (($counter != 1) ? $plural_marker : '');
|