|
| stem ($token, $lang) |
|
| stem ($token, $lang) |
|
French stemmer class for Smart Search indexer.
First contributed by Eric Sanou (bobot.nosp@m.che@.nosp@m.hotma.nosp@m.il.f.nosp@m.r) This class is inspired in Alexis Ulrich's French stemmer code (http://alx2002.free.fr)
- Depuis
- 3.0
◆ check()
static check |
( |
|
$reversedStem | ) |
|
|
staticprivate |
Check the acceptability of a stem for French language
- Paramètres
-
string | $reversedStem | The stem to check in reverse form |
- Renvoie
- boolean True if stem is acceptable
- Depuis
- 3.0
◆ getFirstRule()
static getFirstRule |
( |
|
$reversedInput, |
|
|
|
$ruleNumber |
|
) |
| |
|
staticprivate |
Returns the number of the first rule from the rule number that can be applied to the given reversed input. returns -1 if no rule can be applied, ie the stem has been found
- Paramètres
-
string | $reversedInput | The input to check in reversed order |
integer | $ruleNumber | The rule number to check |
- Renvoie
- integer Number of the first rule
- Depuis
- 3.0
Références $i.
◆ getStem()
Paice/Husk stemmer which returns a stem for the given $input
- Paramètres
-
string | $input | The word for which we want the stem in UTF-8 |
- Renvoie
- string The stem
- Depuis
- 3.0
Références $input.
◆ getStemRules()
French stemmer rules variables.
- Renvoie
- array The rules
- Depuis
- 3.0
◆ stem()
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
- 3.0
Références $lang.
◆ $stemRules
La documentation de cette classe a été générée à partir du fichier suivant :