Sastrawi\Stemmer\Stemmer::stemWord PHP Method

stemWord() protected method

Stem a word to its common stem form.
protected stemWord ( string $word ) : string
$word string the word to stem, e.g : memberdayakan
return string common stem form, e.g : daya
    protected function stemWord($word)
    {
        if ($this->isPlural($word)) {
            return $this->stemPluralWord($word);
        } else {
            return $this->stemSingularWord($word);
        }
    }