Sastrawi\Stemmer\Stemmer::isPlural PHP Method

isPlural() protected method

protected isPlural ( string $word ) : boolean
$word string
return boolean
    protected function isPlural($word)
    {
        // -ku|-mu|-nya
        // nikmat-Ku, etc
        if (preg_match('/^(.*)-(ku|mu|nya|lah|kah|tah|pun)$/', $word, $words)) {
            return strpos($words[1], '-') !== false;
        }
        return strpos($word, '-') !== false;
    }