You are here

protected function SearchApiPorter2::isShort in Search API 7

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 SearchApiPorter2::isShort()
SearchApiPorter2::step1b in includes/processor_stemmer.inc
Handles various suffixes, of which the longest is replaced.

File

includes/processor_stemmer.inc, line 561
Contains SearchApiPorterStemmer and SearchApiPorter2.

Class

SearchApiPorter2
Implements the Porter2 stemming algorithm.

Code

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