You are here

protected function SearchApiPorter2::inR1 in Search API 7

Checks whether the given string is contained in R1.

Parameters

string $string: The string.

Return value

bool TRUE if the string is in R1, FALSE otherwise.

3 calls to SearchApiPorter2::inR1()
SearchApiPorter2::step2 in includes/processor_stemmer.inc
Implements step 2 of the Porter2 algorithm.
SearchApiPorter2::step3 in includes/processor_stemmer.inc
Implements step 3 of the Porter2 algorithm.
SearchApiPorter2::step5 in includes/processor_stemmer.inc
Implements step 5 of the Porter2 algorithm.

File

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

Class

SearchApiPorter2
Implements the Porter2 stemming algorithm.

Code

protected function inR1($string) {
  $r1 = substr($this->word, $this->r1);
  return strpos($r1, $string) !== FALSE;
}