Please, help me with pspell problem. I have installed aspell and I have done following comands in terminal:
sudo apt-get install libpspell-dev 
sudo apt-get install php7.0-pspell
sudo apt-get install aspell-en
My os is linux Mint 17. PHP - 7.0.28. When i try to use function-checker it return me empty array. But i know definetly that it works correct in hosting. Code of function:
function fixMistakeInQString($string, $lang){
    $pspell_config = pspell_config_create($lang);
    pspell_config_mode($pspell_config, PSPELL_FAST);
    $pspell_link = pspell_new_config($pspell_config);
    if (!pspell_check($pspell_link, $string)) {
        $result = pspell_suggest($pspell_link, $string);
        foreach ($result as $key => $value){
            if(preg_match('~\s~ui', $value) || preg_match('~-~ui', $value)){
                unset($result[$key]);
            }
        }
        return $result;
    }else{
        return array($string);
    }
}