We need a catalan dictionary in a text file: just a word on every line. We have access to an online catalan spell checker, which is open source. You can test the spell checker here:
And you can get source code by: svn checkout svn://softcatala.org/corrector
of by accessing via web on this link: http://websvn.softcatala.org/listing.php?repname=Corrector
It's just to generate a text file with all the possible words that spell checked can recognize (with all forms for every word, plurals, etc...).