You are here

protected function Porter2::length in Search API 8

Determines the string length of the current word.

Return value

int The string length of the current word.

11 calls to Porter2::length()
Porter2::hasEnding in src/Plugin/search_api/processor/Resources/Porter2.php
Checks whether the word ends with the given string.
Porter2::isShort in src/Plugin/search_api/processor/Resources/Porter2.php
Determines whether the word is short.
Porter2::isShortSyllable in src/Plugin/search_api/processor/Resources/Porter2.php
Determines whether the word ends in a "vowel-consonant" suffix.
Porter2::R in src/Plugin/search_api/processor/Resources/Porter2.php
Determines the start of a certain "R" region.
Porter2::stem in src/Plugin/search_api/processor/Resources/Porter2.php
Computes the stem of the word.

... See full list

File

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

Class

Porter2
Implements the Porter2 stemming algorithm.

Namespace

Drupal\search_api\Plugin\search_api\processor\Resources

Code

protected function length() {
  return strlen($this->word);
}