Sastrawi\Stemmer\Stemmer::stemSingularWord PHP Метод

stemSingularWord() защищенный Метод

Stem a singular word to its common stem form.
protected stemSingularWord ( string $word ) : string
$word string the word to stem, e.g : mengalahkan
Результат string common stem form, e.g : kalah
    protected function stemSingularWord($word)
    {
        $context = new Context($word, $this->dictionary, $this->visitorProvider);
        $context->execute();
        return $context->getResult();
    }