Sastrawi\Stemmer\Context\Visitor\RemoveInflectionalParticle::remove PHP Method

remove() public method

Remove inflectional particle : lah|kah|tah|pun
public remove ( string $word )
$word string
    public function remove($word)
    {
        return preg_replace('/-*(lah|kah|tah|pun)$/', '', $word, 1);
    }
RemoveInflectionalParticle