class RegexStemmer extends Stemmer
This stemmer removes affixes according to a regular expression.
Methods
string |
stem($word)
Remove the suffix from $word |
|
array |
stemAll(array $tokens)
Apply the stemmer to every single token. |
from Stemmer |
mixed |
transform($word)
Return the value transformed. |
from Stemmer |
__construct(string $regexstr, integer $min) |
Details
at line 24
public string
stem($word)
Remove the suffix from $word
in Stemmer at line 25
public array
stemAll(array $tokens)
Apply the stemmer to every single token.
in Stemmer at line 34
public mixed
transform($word)
Return the value transformed.