public function stem($text)
    {
        $normalizedText = Filter\TextNormalizer::normalizeText($text);

        $words = explode(' ', $normalizedText);
        $stems = array();

        foreach ($words as $word) {
            $stems[] = $this->stemWord($word);
        }

        return implode(' ', $stems);
    }
public function stem($text)
    {
        $normalizedText = Filter\TextNormalizer::normalizeText($text);

        $words = explode(' ', $normalizedText);
        $stems = array();

        foreach ($words as $word) {
            $stems[] = $this->stemWord($word);
        }

        return implode(' ', $stems);
    }
public function stem ( $ text ) { $ normalizedText = Filter \ TextNormalizer :: normalizeText ( $ text ) ; $ words = explode ( ' ' , $ normalizedText ) ; $ stems = array ( ) ; foreach ( $ words as $ word ) { $ stems [ ] = $ this -> stemWord ( $ word ) ; } return implode ( ' ' , $ stems ) ; }
Stem a text string to its common stem form.

@param  string $text the text string to stem, e.g : memberdayakan pembangunan
@return string common stem form, e.g : daya bangun
Stem a text string to its common stem form .