protected static function Porter2::isShort in Porter-Stemmer 8
Determines whether the word is short.
A word is called short if it ends in a short syllable and if R1 is null.
Parameters
string $word: The word to check.
Return value
bool TRUE if the word is short, FALSE otherwise.
1 call to Porter2::isShort()
- Porter2::step1b in src/
Porter2.php - Handles various suffixes, of which the longest is replaced.
File
- src/
Porter2.php, line 478
Class
- Porter2
- PHP Implementation of the Porter2 Stemming Algorithm.
Namespace
Drupal\porterstemmerCode
protected static function isShort($word) {
return self::isShortSyllable($word) && self::r($word, 1) == strlen($word);
}