Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
singularize (string $plural) | |
pluralize (string $singular) | |
Fonctions membres privées | |
isInflectedWord (string $word) | |
Attributs privés | |
const | PLURALIZE_REGEXP |
const | SINGULARIZE_REGEXP |
const | UNINFLECTED = '/^(abcès|accès|abus|albatros|anchois|anglais|autobus|bois|brebis|carquois|cas|chas|colis|concours|corps|cours|cyprès|décès|devis|discours|dos|embarras|engrais|entrelacs|excès|fils|fois|gâchis|gars|glas|héros|intrus|jars|jus|kermès|lacis|legs|lilas|marais|mars|matelas|mépris|mets|mois|mors|obus|os|palais|paradis|parcours|pardessus|pays|plusieurs|poids|pois|pouls|printemps|processus|progrès|puits|pus|rabais|radis|recors|recours|refus|relais|remords|remous|rictus|rhinocéros|repas|rubis|sas|secours|sens|souris|succès|talus|tapis|tas|taudis|temps|tiers|univers|velours|verglas|vernis|virus)$/i' |
French inflector.
This class does only inflect nouns; not adjectives nor composed words like "soixante-dix".
|
private |
Référencé par FrenchInflector\pluralize(), et FrenchInflector\singularize().
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.
Implémente InflectorInterface.
Références FrenchInflector\isInflectedWord().
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.
Implémente InflectorInterface.
Références FrenchInflector\isInflectedWord().
|
private |
A list of all rules for pluralise.
|
private |
A list of all rules for singularize.
|
private |
A list of words which should not be inflected. This list is only used by singularize.