Liste de tous les membres
Fonctions membres publiques |
| stem ($token, $lang) |
Attributs privés statiques |
static | $_regex_consonant = '(?:[bcdfghjklmnpqrstvwxz]|(?<=[aeiou])y|^y)' |
static | $_regex_vowel = '(?:[aeiou]|(?<![aeiou])y)' |
Documentation des fonctions membres
static FinderIndexerStemmerPorter_En::_cvc |
( |
|
$str | ) |
|
|
staticprivate |
Checks for ending CVC sequence where second C is not W, X or Y
- Paramètres:
-
string | $str | String to check |
- Renvoie:
- boolean Result
- Depuis:
- 2.5
static FinderIndexerStemmerPorter_En::_doubleConsonant |
( |
|
$str | ) |
|
|
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.
- Paramètres:
-
string | $str | String to check |
- Renvoie:
- boolean Result
- Depuis:
- 2.5
static FinderIndexerStemmerPorter_En::_m |
( |
|
$str | ) |
|
|
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
- Paramètres:
-
string | $str | The string to return the m count for |
- Renvoie:
- integer The m count
- Depuis:
- 2.5
static FinderIndexerStemmerPorter_En::_replace |
( |
& |
$str, |
|
|
|
$check, |
|
|
|
$repl, |
|
|
|
$m = null |
|
) |
| |
|
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.
- Paramètres:
-
string | &$str | String to check |
string | $check | Ending to check for |
string | $repl | Replacement string |
integer | $m | Optional minimum number of m() to meet |
- Renvoie:
- boolean Whether the $check string was at the end of the $str string. True does not necessarily mean that it was replaced.
- Depuis:
- 2.5
Références $check.
static FinderIndexerStemmerPorter_En::_step1ab |
( |
|
$word | ) |
|
|
staticprivate |
Step 1
- Paramètres:
-
string | $word | The token to stem. |
- Renvoie:
- string
- Depuis:
- 2.5
Références elseif.
static FinderIndexerStemmerPorter_En::_step1c |
( |
|
$word | ) |
|
|
staticprivate |
Step 1c
- Paramètres:
-
string | $word | The token to stem. |
- Renvoie:
- string
- Depuis:
- 2.5
static FinderIndexerStemmerPorter_En::_step2 |
( |
|
$word | ) |
|
|
staticprivate |
Step 2
- Paramètres:
-
string | $word | The token to stem. |
- Renvoie:
- string
- Depuis:
- 2.5
static FinderIndexerStemmerPorter_En::_step3 |
( |
|
$word | ) |
|
|
staticprivate |
Step 3
- Paramètres:
-
string | $word | The token to stem. |
- Renvoie:
- string
- Depuis:
- 2.5
static FinderIndexerStemmerPorter_En::_step4 |
( |
|
$word | ) |
|
|
staticprivate |
Step 4
- Paramètres:
-
string | $word | The token to stem. |
- Renvoie:
- string
- Depuis:
- 2.5
static FinderIndexerStemmerPorter_En::_step5 |
( |
|
$word | ) |
|
|
staticprivate |
Step 5
- Paramètres:
-
string | $word | The token to stem. |
- Renvoie:
- string
- Depuis:
- 2.5
Références elseif.
FinderIndexerStemmerPorter_En::stem |
( |
|
$token, |
|
|
|
$lang |
|
) |
| |
Method to stem a token and return the root.
- Paramètres:
-
string | $token | The token to stem. |
string | $lang | The language of the token. |
- Renvoie:
- string The root token.
- Depuis:
- 2.5
Réimplémentée à partir de FinderIndexerStemmer.
Références $lang.
Documentation des données membres
FinderIndexerStemmerPorter_En::$_regex_consonant = '(?:[bcdfghjklmnpqrstvwxz]|(?<=[aeiou])y|^y)' |
|
staticprivate |
FinderIndexerStemmerPorter_En::$_regex_vowel = '(?:[aeiou]|(?<![aeiou])y)' |
|
staticprivate |
La documentation de cette classe a été générée à partir du fichier suivant :