interface InflectorInterface

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