public function getActionWords($string, $language = 'english')
    {
        $words = $this->getWords($string);
        $filter = new ActionWordsFilter($language);
        $actionWords = [];

        foreach ($words as $word) {
            $word = $this->removePunctuation($word);
            if (!is_null($filter->filter($word))) {
                $actionWords[] = $word;
            }
        }

        return $actionWords;
    }
public function getActionWords($string, $language = 'english')
    {
        $words = $this->getWords($string);
        $filter = new ActionWordsFilter($language);
        $actionWords = [];

        foreach ($words as $word) {
            $word = $this->removePunctuation($word);
            if (!is_null($filter->filter($word))) {
                $actionWords[] = $word;
            }
        }

        return $actionWords;
    }
public function getActionWords ( $ string , $ language = 'english' ) { $ words = $ this -> getWords ( $ string ) ; $ filter = new ActionWordsFilter ( $ language ) ; $ actionWords = [ ] ; foreach ( $ words as $ word ) { $ word = $ this -> removePunctuation ( $ word ) ; if ( ! is_null ( $ filter -> filter ( $ word ) ) ) { $ actionWords [ ] = $ word ; } } return $ actionWords ; }
Get Action words.

@param string $string
@param string $language

@return array
Get Action words .