You are here

public function StemmerTest::processDataProvider in Search API 8

Provides sets of arguments for testProcess().

Return value

array[] Arrays of arguments for testProcess().

File

tests/src/Unit/Processor/StemmerTest.php, line 193

Class

StemmerTest
Tests the "Stemmer" processor.

Namespace

Drupal\Tests\search_api\Unit\Processor

Code

public function processDataProvider() {
  return [
    [
      'Yo',
      'yo',
    ],
    [
      'ties',
      'tie',
    ],
    [
      'cries',
      'cri',
    ],
    [
      'exceed',
      'exceed',
    ],
    [
      'consign',
      'consign',
    ],
    [
      'consigned',
      'consign',
    ],
    [
      'consigning',
      'consign',
    ],
    [
      'consignment',
      'consign',
    ],
    [
      'consist',
      'consist',
    ],
    [
      'consisted',
      'consist',
    ],
    [
      'consistency',
      'consist',
    ],
    [
      'consistent',
      'consist',
    ],
    [
      'consistently',
      'consist',
    ],
    [
      'consisting',
      'consist',
    ],
    [
      'consists',
      'consist',
    ],
    [
      'consolation',
      'consol',
    ],
    [
      'consolations',
      'consol',
    ],
    [
      'consolatory',
      'consolatori',
    ],
    [
      'console',
      'consol',
    ],
    [
      'consoled',
      'consol',
    ],
    [
      'consoles',
      'consol',
    ],
    [
      'consolidate',
      'consolid',
    ],
    [
      'consolidated',
      'consolid',
    ],
    [
      'consolidating',
      'consolid',
    ],
    [
      'consoling',
      'consol',
    ],
    [
      'consolingly',
      'consol',
    ],
    [
      'consols',
      'consol',
    ],
    [
      'consonant',
      'conson',
    ],
    [
      'consort',
      'consort',
    ],
    [
      'consorted',
      'consort',
    ],
    [
      'consorting',
      'consort',
    ],
    [
      'conspicuous',
      'conspicu',
    ],
    [
      'conspicuously',
      'conspicu',
    ],
    [
      'conspiracy',
      'conspiraci',
    ],
    [
      'conspirator',
      'conspir',
    ],
    [
      'conspirators',
      'conspir',
    ],
    [
      'conspire',
      'conspir',
    ],
    [
      'conspired',
      'conspir',
    ],
    [
      'conspiring',
      'conspir',
    ],
    [
      'constable',
      'constabl',
    ],
    [
      'constables',
      'constabl',
    ],
    [
      'constance',
      'constanc',
    ],
    [
      'constancy',
      'constanc',
    ],
    [
      'constant',
      'constant',
    ],
    [
      'knack',
      'knack',
    ],
    [
      'knackeries',
      'knackeri',
    ],
    [
      'knacks',
      'knack',
    ],
    [
      'knag',
      'knag',
    ],
    [
      'knave',
      'knave',
    ],
    [
      'knaves',
      'knave',
    ],
    [
      'knavish',
      'knavish',
    ],
    [
      'kneaded',
      'knead',
    ],
    [
      'kneading',
      'knead',
    ],
    [
      'knee',
      'knee',
    ],
    [
      'kneel',
      'kneel',
    ],
    [
      'kneeled',
      'kneel',
    ],
    [
      'kneeling',
      'kneel',
    ],
    [
      'kneels',
      'kneel',
    ],
    [
      'knees',
      'knee',
    ],
    [
      'knell',
      'knell',
    ],
    [
      'knelt',
      'knelt',
    ],
    [
      'knew',
      'knew',
    ],
    [
      'knick',
      'knick',
    ],
    [
      'knif',
      'knif',
    ],
    [
      'knife',
      'knife',
    ],
    [
      'knight',
      'knight',
    ],
    [
      'knightly',
      'knight',
    ],
    [
      'knights',
      'knight',
    ],
    [
      'knit',
      'knit',
    ],
    [
      'knits',
      'knit',
    ],
    [
      'knitted',
      'knit',
    ],
    [
      'knitting',
      'knit',
    ],
    [
      'knives',
      'knive',
    ],
    [
      'knob',
      'knob',
    ],
    [
      'knobs',
      'knob',
    ],
    [
      'knock',
      'knock',
    ],
    [
      'knocked',
      'knock',
    ],
    [
      'knocker',
      'knocker',
    ],
    [
      'knockers',
      'knocker',
    ],
    [
      'knocking',
      'knock',
    ],
    [
      'knocks',
      'knock',
    ],
    [
      'knopp',
      'knopp',
    ],
    [
      'knot',
      'knot',
    ],
    [
      'knots',
      'knot',
    ],
    // This can happen when Tokenizer is off during indexing, or when
    // preprocessing a search query with quoted keywords.
    [
      " \tExtra  spaces \rappeared \n",
      'extra space appear',
    ],
    [
      "\tspaced-out  \r\n",
      'space out',
    ],
  ];
}