You are here

private static property Inflector::$plural in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/inflector/lib/Doctrine/Common/Inflector/Inflector.php \Doctrine\Common\Inflector\Inflector::plural

Plural inflector rules.

Type: array

File

vendor/doctrine/inflector/lib/Doctrine/Common/Inflector/Inflector.php, line 43

Class

Inflector
Doctrine inflector has static methods for inflecting text.

Namespace

Doctrine\Common\Inflector

Code

private static $plural = array(
  'rules' => array(
    '/(s)tatus$/i' => '\\1\\2tatuses',
    '/(quiz)$/i' => '\\1zes',
    '/^(ox)$/i' => '\\1\\2en',
    '/([m|l])ouse$/i' => '\\1ice',
    '/(matr|vert|ind)(ix|ex)$/i' => '\\1ices',
    '/(x|ch|ss|sh)$/i' => '\\1es',
    '/([^aeiouy]|qu)y$/i' => '\\1ies',
    '/(hive)$/i' => '\\1s',
    '/(?:([^f])fe|([lr])f)$/i' => '\\1\\2ves',
    '/sis$/i' => 'ses',
    '/([ti])um$/i' => '\\1a',
    '/(p)erson$/i' => '\\1eople',
    '/(m)an$/i' => '\\1en',
    '/(c)hild$/i' => '\\1hildren',
    '/(buffal|tomat)o$/i' => '\\1\\2oes',
    '/(alumn|bacill|cact|foc|fung|nucle|radi|stimul|syllab|termin|vir)us$/i' => '\\1i',
    '/us$/i' => 'uses',
    '/(alias)$/i' => '\\1es',
    '/(ax|cris|test)is$/i' => '\\1es',
    '/s$/' => 's',
    '/^$/' => '',
    '/$/' => 's',
  ),
  'uninflected' => array(
    '.*[nrlm]ese',
    '.*deer',
    '.*fish',
    '.*measles',
    '.*ois',
    '.*pox',
    '.*sheep',
    'people',
    'cookie',
  ),
  'irregular' => array(
    'atlas' => 'atlases',
    'beef' => 'beefs',
    'brother' => 'brothers',
    'cafe' => 'cafes',
    'child' => 'children',
    'cookie' => 'cookies',
    'corpus' => 'corpuses',
    'cow' => 'cows',
    'criteria' => 'criterion',
    'ganglion' => 'ganglions',
    'genie' => 'genies',
    'genus' => 'genera',
    'graffito' => 'graffiti',
    'hoof' => 'hoofs',
    'human' => 'humans',
    'loaf' => 'loaves',
    'man' => 'men',
    'money' => 'monies',
    'mongoose' => 'mongooses',
    'move' => 'moves',
    'mythos' => 'mythoi',
    'niche' => 'niches',
    'numen' => 'numina',
    'occiput' => 'occiputs',
    'octopus' => 'octopuses',
    'opus' => 'opuses',
    'ox' => 'oxen',
    'penis' => 'penises',
    'person' => 'people',
    'sex' => 'sexes',
    'soliloquy' => 'soliloquies',
    'testis' => 'testes',
    'trilby' => 'trilbys',
    'turf' => 'turfs',
  ),
);