public function remove($text)
    {
        $words = explode(' ', $text);

        foreach ($words as $i => $word) {
            if ($this->dictionary->contains($word)) {
                unset($words[$i]);
            }
        }

        return implode(' ', $words);
    }
public function remove($text)
    {
        $words = explode(' ', $text);

        foreach ($words as $i => $word) {
            if ($this->dictionary->contains($word)) {
                unset($words[$i]);
            }
        }

        return implode(' ', $words);
    }
public function remove ( $ text ) { $ words = explode ( ' ' , $ text ) ; foreach ( $ words as $ i => $ word ) { if ( $ this -> dictionary -> contains ( $ word ) ) { unset ( $ words [ $ i ] ) ; } } return implode ( ' ' , $ words ) ; }
Remove stop words.

@param  string $text The text which stop words to be removed
@return string The text after removal
Remove stop words .