class FrenchInflector implementsInflectorInterface

French inflector.

This class does only inflect nouns; not adjectives nor composed words like "soixante-dix".

Constants

PLURALIZE_REGEXP

A list of all rules for pluralise.

SINGULARIZE_REGEXP

A list of all rules for singularize.

UNINFLECTED

A list of words which should not be inflected.

This list is only used by singularize.

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