class EnglishInflector implementsInflectorInterface

Constants

PLURAL_MAP

Map English plural to singular suffixes.

SINGULAR_MAP

Map English singular to plural suffixes.

UNINFLECTED

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

Methods

array
singularize(string$plural)

Returns the singular forms of a string.

array
pluralize(string$singular)

Returns the plural forms of a string.

Details

array singularize(string$plural)

Returns the singular forms of a string.

If the method can't determine the form with certainty, several possible singulars are returned.

Parameters

string $plural

Return Value

array

array pluralize(string$singular)

Returns the plural forms of a string.

If the method can't determine the form with certainty, several possible plurals are returned.

Parameters

string $singular

Return Value

array