You are here

protected function SearchApiPorter2::exceptions in Search API 7

Determines whether the word is contained in our list of exceptions.

If so, the $word property is changed to the stem listed in the exceptions.

Return value

bool TRUE if the word was an exception, FALSE otherwise.

1 call to SearchApiPorter2::exceptions()
SearchApiPorter2::stem in includes/processor_stemmer.inc
Computes the stem of the word.

File

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

Class

SearchApiPorter2
Implements the Porter2 stemming algorithm.

Code

protected function exceptions() {
  if (isset($this->exceptions[$this->word])) {
    $this->word = $this->exceptions[$this->word];
    return TRUE;
  }
  return FALSE;
}