|
static | $vowels = array('a', 'e', 'i', 'o', 'u', 'y') |
|
static | $doubles = array('bb', 'dd', 'ff', 'gg', 'mm', 'nn', 'pp', 'rr', 'tt') |
|
static | $liEnding = array('c', 'd', 'e', 'g', 'h', 'k', 'm', 'n', 'r', 't') |
|
static | $vowels = array('a', 'e', 'i', 'o', 'u', 'y') |
|
◆ exception1()
1/ Stem certain special words as follows, 2/ If one of the following is found, leave it invariant,
Références Stem\$word, et null.
Référencé par English\stem().
◆ exception2()
◆ exceptionR1()
◆ finish()
◆ isShort()
A word is called short if it ends in a short syllable, and if R1 is null. Note : R1 not really null, but the word at this state must be smaller than r1 index
- Renvoie
- boolean
Références English\searchShortSyllabe().
Référencé par English\step1b().
◆ searchShortSyllabe()
searchShortSyllabe |
( |
|
$from, |
|
|
|
$nbLetters |
|
) |
| |
|
private |
Define a short syllable in a word as either (a) a vowel followed by a non-vowel other than w, x or Y and preceded by a non-vowel, or * (b) a vowel at the beginning of the word followed by a non-vowel.
So rap, trap, entrap end with a short syllable, and ow, on, at are classed as short syllables. But uproot, bestow, disturb do not end with a short syllable.
Référencé par English\isShort(), et English\step5().
◆ stem()
{Main function to get the STEM of a word
- Paramètres
-
string | $word | A valid UTF-8 word |
- Renvoie
- string
- Exceptions
-
}
Implémente Stemmer.
Références $this, Stem\$word, English\exception1(), English\exception2(), English\exceptionR1(), English\finish(), null, Stem\r1(), Stem\r2(), English\step0(), English\step1a(), English\step1b(), English\step1c(), English\step2(), English\step3(), English\step4(), et English\step5().
◆ step0()
◆ step1a()
◆ step1b()
◆ step1c()
◆ step2()
◆ step3()
◆ step4()
◆ step5()
◆ $doubles
$doubles = array('bb', 'dd', 'ff', 'gg', 'mm', 'nn', 'pp', 'rr', 'tt') |
|
staticprotected |
◆ $liEnding
$liEnding = array('c', 'd', 'e', 'g', 'h', 'k', 'm', 'n', 'r', 't') |
|
staticprotected |
◆ $vowels
$vowels = array('a', 'e', 'i', 'o', 'u', 'y') |
|
staticprotected |
La documentation de cette classe a été générée à partir du fichier suivant :