You are here

protected function Porter2::isShort in Search API 8

Determines whether the word is short.

A word is called short if it ends in a short syllable and if R1 is null.

Return value

bool TRUE if the word is short, FALSE otherwise.

1 call to Porter2::isShort()
Porter2::step1b in src/Plugin/search_api/processor/Resources/Porter2.php
Handles various suffixes, of which the longest is replaced.

File

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

Class

Porter2
Implements the Porter2 stemming algorithm.

Namespace

Drupal\search_api\Plugin\search_api\processor\Resources

Code

protected function isShort() {
  return $this
    ->isShortSyllable() && $this->r1 == $this
    ->length();
}