function removeIfCorrect ($word) { $pspell_link = pspell_new("en"); if (!pspell_check($pspell_link, $word)) { return($word); } }