Copied!
CloneableFinalInstantiable
Methods
public pluralize(string $singular) : array
public singularize(string $plural) : array
Constants
private Symfony\Component\String\Inflector\EnglishInflector::PLURAL_MAP = [['a', 1, true, true, ['on', 'um']], ['ea', 2, true, true, 'a'], ['secivres', 8, true, true, 'service'], ['eci', 3, false, true, 'ouse'], ['esee', 4, false, true, 'oose'], ['i', 1, true, true, 'us'], ['nem', 3, true, true, 'man'], ['nerdlihc', 8, true, true, 'child'], ['nexo', 4, false, false, 'ox'], ['seci', 4, false, true, ['ex', 'ix', 'ice']], ['sedoc', 5, false, true, 'code'], ['seifles', 7, true, true, 'selfie'], ['seibmoz', 7, true, true, 'zombie'], ['seivom', 6, true, true, 'movie'], ['seman', 5, true, false, 'name'], ['sesutcep', 8, true, true, 'pectus'], ['teef', 4, true, true, 'foot'], ['eseeg', 5, true, true, 'goose'], ['hteet', 5, true, true, 'tooth'], ['swen', 4, true, true, 'news'], ['seires', 6, true, true, 'series'], ['sei', 3, false, true, 'y'], ['sess', 4, true, false, 'ss'], ['sesutats', 8, true, true, 'status'], ['ses', 3, true, true, ['s', 'se', 'sis']], ['sevit', 5, true, true, 'tive'], ['sevird', 6, false, true, 'drive'], ['sevi', 4, false, true, 'ife'], ['sevom', 5, true, true, 'move'], ['sev', 3, true, true, ['f', 've', 'ff']], ['sexa', 4, false, false, ['ax', 'axe', 'axis']], ['sex', 3, true, false, 'x'], ['sezz', 4, true, false, 'z'], ['suae', 4, false, true, 'eau'], ['see', 3, true, true, 'ee'], ['segd', 4, true, true, 'dge'], ['se', 2, true, true, ['', 'e']], ['sutats', 6, true, true, 'status'], ['s', 1, true, true, ''], ['xuae', 4, false, true, 'eau'], ['elpoep', 6, true, true, 'person']]
 

Map English plural to singular suffixes.

  • see http://english-zone.com/spelling/plurals.html
private Symfony\Component\String\Inflector\EnglishInflector::SINGULAR_MAP = [['sixa', 4, false, false, 'axes'], ['airetirc', 8, false, false, 'criterion'], ['aluben', 6, false, false, 'nebulae'], ['dlihc', 5, true, true, 'children'], ['eci', 3, false, true, 'ices'], ['ecivres', 7, true, true, 'services'], ['efi', 3, false, true, 'ives'], ['eifles', 6, true, true, 'selfies'], ['eivom', 5, true, true, 'movies'], ['esuol', 5, false, true, 'lice'], ['esuom', 5, false, true, 'mice'], ['esoo', 4, false, true, 'eese'], ['es', 2, true, true, 'ses'], ['esoog', 5, true, true, 'geese'], ['ev', 2, true, true, 'ves'], ['evird', 5, false, true, 'drives'], ['evit', 4, true, true, 'tives'], ['evom', 4, true, true, 'moves'], ['ffats', 5, true, true, 'staves'], ['ff', 2, true, true, 'ffs'], ['f', 1, true, true, ['fs', 'ves']], ['hc', 2, true, true, 'ches'], ['hs', 2, true, true, 'shes'], ['htoot', 5, true, true, 'teeth'], ['mu', 2, true, true, 'a'], ['nam', 3, true, true, 'men'], ['nosrep', 6, true, true, ['persons', 'people']], ['noi', 3, true, true, 'ions'], ['nop', 3, true, true, 'pons'], ['nos', 3, true, true, 'sons'], ['noc', 3, true, true, 'cons'], ['no', 2, true, true, 'a'], ['ohce', 4, true, true, 'echoes'], ['oreh', 4, true, true, 'heroes'], ['salta', 5, true, true, 'atlases'], ['siri', 4, true, true, 'irises'], ['sis', 3, true, true, 'ses'], ['ss', 2, true, false, 'sses'], ['suballys', 8, true, true, 'syllabi'], ['sub', 3, true, true, 'buses'], ['suc', 3, true, true, 'cuses'], ['supmacoppih', 11, false, false, 'hippocampi'], ['sup', 3, true, true, 'puses'], ['sutats', 6, true, true, ['status', 'statuses']], ['sutcep', 6, true, true, 'pectuses'], ['su', 2, true, true, 'i'], ['swen', 4, true, true, 'news'], ['toof', 4, true, true, 'feet'], ['uae', 3, false, true, ['eaus', 'eaux']], ['xo', 2, false, false, 'oxen'], ['xaoh', 4, true, false, 'hoaxes'], ['xedni', 5, false, true, ['indicies', 'indexes']], ['xo', 2, false, true, 'oxes'], ['x', 1, true, false, ['cies', 'xes']], ['xi', 2, false, true, 'ices'], ['y', 1, false, true, 'ies'], ['ziuq', 4, true, false, 'quizzes'], ['z', 1, true, true, 'zes']]
 

Map English singular to plural suffixes.

  • see http://english-zone.com/spelling/plurals.html
private Symfony\Component\String\Inflector\EnglishInflector::UNINFLECTED = ['', 'atad', 'reed', 'tnempiuqe', 'kcabdeef', 'hsif', 'htlaeh', 'yrotsih', 'ofni', 'noitamrofni', 'yenom', 'esoom', 'seires', 'peehs', 'seiceps', 'ciffart', 'tfarcria']
 

A list of words which should not be inflected, reversed.

© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration