protected function Porter2::inR1 in Search API 8
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 Porter2::inR1()
- Porter2::step2 in src/
Plugin/ search_api/ processor/ Resources/ Porter2.php - Implements step 2 of the Porter2 algorithm.
- Porter2::step3 in src/
Plugin/ search_api/ processor/ Resources/ Porter2.php - Implements step 3 of the Porter2 algorithm.
- Porter2::step5 in src/
Plugin/ search_api/ processor/ Resources/ Porter2.php - Implements step 5 of the Porter2 algorithm.
File
- src/
Plugin/ search_api/ processor/ Resources/ Porter2.php, line 534
Class
- Porter2
- Implements the Porter2 stemming algorithm.
Namespace
Drupal\search_api\Plugin\search_api\processor\ResourcesCode
protected function inR1($string) {
$r1 = substr($this->word, $this->r1);
return strpos($r1, $string) !== FALSE;
}