public function Stemmer::setOverrides in Snowball Stemmer 8
Same name and namespace in other branches
- 2.x src/Stemmer.php \Drupal\snowball_stemmer\Stemmer::setOverrides()
Set overridden strings not to be automatically stemmed and return values.
Parameters
array $overrides: Array with key as overridden string and 'stemmed' return string as value.
string $language: Language code. Default will apply to all languages, but an override with language will take preference.
File
- src/
Stemmer.php, line 88
Class
- Stemmer
- Service wrapper class for stemmer.
Namespace
Drupal\snowball_stemmerCode
public function setOverrides(array $overrides, $language = LanguageInterface::LANGCODE_NOT_SPECIFIED) {
$this->overrides[$language] = $overrides;
}