StemmerInterface
in
Reduces a single word to its stem.
Implementations are registered automatically when autoconfigured and can be selected per table with
SearchVectorFieldConfiguration::setStemmer(
Table of Contents
Constants
- TAG = 'huh_utils.search_vector.stemmer'
Methods
- stem() : string
Constants
TAG
public
mixed
TAG
= 'huh_utils.search_vector.stemmer'
Methods
stem()
public
stem(string $word, string $locale) : string
Parameters
- $word : string
-
Already lowercased and trimmed, accents are kept (they are stripped after stemming)
- $locale : string
-
The language of the word as locale ID or language tag, e.g. "de", "de_CH" or "de-CH". Return the word unchanged for languages the stemmer does not support.