The aspell() functions allows you to check the spelling on a word and offer suggestions.
You need the aspell library, available from: http://metalab.unc.edu/kevina/aspell/