A more powerful spelling tool
From Ben's Writing
Second round on the suggestion tool. This time, I used a sqlite database for the back-end, and seeded it with 17,000 common misspellings. The tool first checks the database, then tries Google. If a correction is found in the database, it simply prints it. If a suggestion is made by Google, then the program prints it and stashes it in the database.
Using the tool is pretty easy:
group-spell-suggest <word>
As before, the code is freely available here.