src/Linguistics.php
public function getKeywords($string, $amount = 10)
    {
        $words = $this->getWords($string);

        $analysis = new FrequencyAnalysis($words);

        $keywords = $analysis->getKeyValuesByFrequency();

        return array_slice($keywords, 0, $amount);
    }
public function getKeywords($string, $amount = 10)
    {
        $words = $this->getWords($string);

        $analysis = new FrequencyAnalysis($words);

        $keywords = $analysis->getKeyValuesByFrequency();

        return array_slice($keywords, 0, $amount);
    }
public function getKeywords ( $ string , $ amount = 10 ) { $ words = $ this -> getWords ( $ string ) ; $ analysis = new FrequencyAnalysis ( $ words ) ; $ keywords = $ analysis -> getKeyValuesByFrequency ( ) ; return array_slice ( $ keywords , 0 , $ amount ) ; }
Get keywords.

@param string $string
@param int    $amount

@return array
Get keywords .