![]() |
Joomla CMS
3.9.25 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.9.25 et du framework Joomla Platform intégré
|
Graphe d'héritage de Porteren:Fonctions membres publiques | |
| stem ($token, $lang) | |
Fonctions membres publiques hérités de LanguageStemmer | |
| stem ($token, $lang) | |
Fonctions membres privées statiques | |
| static | _step1ab ($word) |
| static | _step1c ($word) |
| static | _step2 ($word) |
| static | _step3 ($word) |
| static | _step4 ($word) |
| static | _step5 ($word) |
| static | _replace (&$str, $check, $repl, $m=null) |
| static | _m ($str) |
| static | _doubleConsonant ($str) |
| static | _cvc ($str) |
Attributs privés statiques | |
| static | $_regex_consonant = '(?:[bcdfghjklmnpqrstvwxz]|(?<=[aeiou])y|^y)' |
| static | $_regex_vowel = '(?:[aeiou]|(?<![aeiou])y)' |
Membres hérités additionnels | |
Fonctions membres publiques statiques hérités de LanguageStemmer | |
| static | getInstance ($adapter) |
Attributs protégés hérités de LanguageStemmer | |
| $cache = array() | |
Attributs protégés statiques hérités de LanguageStemmer | |
| static | $instances = array() |
Porter English stemmer class.
This class was adapted from one written by Richard Heyes. See copyright and link information above.
|
staticprivate |
Checks for ending CVC sequence where second C is not W, X or Y
| string | $str | String to check |
|
staticprivate |
Returns true/false as to whether the given string contains two of the same consonant next to each other at the end of the string.
| string | $str | String to check |
|
staticprivate |
m() measures the number of consonant sequences in $str. if c is a consonant sequence and v a vowel sequence, and <..> indicates arbitrary presence,
<v> gives 0 vc<v> gives 1 vcvc<v> gives 2 vcvcvc<v> gives 3
| string | $str | The string to return the m count for |
|
staticprivate |
Replaces the first string with the second, at the end of the string. If third arg is given, then the preceding string must match that m count at least.
| string | &$str | String to check |
| string | $check | Ending to check for |
| string | $repl | Replacement string |
| integer | $m | Optional minimum number of m() to meet |
Références $check.
|
staticprivate |
|
staticprivate |
Step 1c
| string | $word | The token to stem. |
|
staticprivate |
Step 2
| string | $word | The token to stem. |
|
staticprivate |
Step 3
| string | $word | The token to stem. |
|
staticprivate |
Step 4
| string | $word | The token to stem. |
|
staticprivate |
| stem | ( | $token, | |
| $lang | |||
| ) |
Method to stem a token and return the root.
| string | $token | The token to stem. |
| string | $lang | The language of the token. |
Références Language\$lang.
|
staticprivate |