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/