You are here

protected function Porter2::addEnding in Search API 8

Appends a given string to the current word.

Parameters

string $string: The ending to append.

5 calls to Porter2::addEnding()
Porter2::step1a in src/Plugin/search_api/processor/Resources/Porter2.php
Handles various suffixes, of which the longest is replaced.
Porter2::step1b in src/Plugin/search_api/processor/Resources/Porter2.php
Handles various suffixes, of which the longest is replaced.
Porter2::step1c in src/Plugin/search_api/processor/Resources/Porter2.php
Replaces suffix y or Y with i if after non-vowel not @ word begin.
Porter2::step2 in src/Plugin/search_api/processor/Resources/Porter2.php
Implements step 2 of the Porter2 algorithm.
Porter2::step3 in src/Plugin/search_api/processor/Resources/Porter2.php
Implements step 3 of the Porter2 algorithm.

File

src/Plugin/search_api/processor/Resources/Porter2.php, line 586

Class

Porter2
Implements the Porter2 stemming algorithm.

Namespace

Drupal\search_api\Plugin\search_api\processor\Resources

Code

protected function addEnding($string) {
  $this->word = $this->word . $string;
}