public function StemmerTest::languageStrings in Snowball Stemmer 2.x
Same name and namespace in other branches
- 8 tests/src/Unit/StemmerTest.php \Drupal\Tests\snowball_stemmer\Unit\StemmerTest::languageStrings()
List of words for each language.
The class itself tests multiple strings, just need a string for each language to check it is called correctly.
File
- tests/
src/ Unit/ StemmerTest.php, line 56
Class
- StemmerTest
- Test Snowball Stemmer class wrapping.
Namespace
Drupal\Tests\snowball_stemmer\UnitCode
public function languageStrings() {
return [
[
'da',
'barnløshed',
'barnløs',
],
[
'de',
'aalglatten',
'aalglatt',
],
[
'en',
'backing',
'back',
],
[
'es',
'carnavaleros',
'carnavaler',
],
[
'fr',
'désintéressement',
'désintéress',
],
[
'it',
'entusiastico',
'entusiast',
],
[
'nl',
'fraudebestrijding',
'fraudebestrijd',
],
[
'no',
'gjestearbeidende',
'gjestearbeid',
],
[
'pt',
'humildemente',
'humild',
],
[
'ro',
'intelectualismului',
'intelectualist',
],
[
'ru',
'пересчитаешь',
'пересчита',
],
[
'sv',
'jämförelsen',
'jämför',
],
];
}