Méthode | Description | |
---|---|---|
pluralize ( string $word ) : string | Returns a word in plural form. | |
reset ( ) : void | Clears Inflectors inflected value caches, and resets the inflection rules to the initial values. | |
rules ( string $type, array $rules, boolean $reset = false ) : void | Adds custom inflection $rules, of either 'plural' or 'singular' $type. | |
singularize ( string $word ) : string | Returns a word in singular form. |
public static rules ( string $type, array $rules, boolean $reset = false ) : void | ||
$type | string | The type of inflection, either 'plural' or 'singular' |
$rules | array | An array of rules to be added. |
$reset | boolean | If true, will unset default inflections for all new rules that are being defined in $rules. |
Résultat | void |
public static singularize ( string $word ) : string | ||
$word | string | The word in plural form. |
Résultat | string | The word in singular form. |