The pspell() functions allows you to check the spelling on a word and offer suggestions.
You need the aspell and pspell libraries, available from: http://pspell.sourceforge.net/.