This post originated from an RSS feed registered with Agile Buzz
by James Robertson.
Original Post: Spellchecking.. really need it
Feed Title: Michael Lucas-Smith
Feed URL: http://www.michaellucassmith.com/site.atom
Feed Description: Smalltalk and my misinterpretations of life
This is my second attempt at spell checking in Smalltalk. The first used an Arbor library that wrapped up ispell via the commandline or the Microsoft spell checker api.
As we all know the Microsoft spell checker api constantly changes, which meant that the Spell checker just didn't work under Windows most of the time - worse, it would lock up.
So this morning I've wrapped up ASpell, a library that works under Windows, Linux and MacOSX. I've currently only hooked it up under Windows and I've published it to Public Store. The API is really basic in Smalltalk:
ASpell.SpellChecker new spellcheck: 'gunting'.
ASpell.SpellChecker new learn: 'gunting' is: 'bunting'.