protected static function Porter2::validLi in Porter-Stemmer 8
Checks whether the given string is a valid -li prefix.
Parameters
string $string: The string to check.
Return value
bool TRUE if the given string is a valid -li prefix, FALSE otherwise.
1 call to Porter2::validLi()
- Porter2::step2 in src/
Porter2.php - Implements step 2 of the Porter2 algorithm.
File
- src/
Porter2.php, line 626
Class
- Porter2
- PHP Implementation of the Porter2 Stemming Algorithm.
Namespace
Drupal\porterstemmerCode
protected static function validLi($string) {
return in_array($string, [
'c',
'd',
'e',
'g',
'h',
'k',
'm',
'n',
'r',
't',
]);
}