We did just that - we used the hunspell engine from java. There is a JNA bridge that you can use to call hunspell from java. It is very nice to use - it takes care of downloading the appropriate library from the bank.
The only problem is that the bridge is not updated with the latest hunspell engine - it is in version 1.1.12, and while I was watching (last year), hunspell was in 1.2.18, which contained corrections that we need, Do not build hunspell libraries and rebuild the JNA shell using the latest hunspell engines, although this is due to cross-platform compilation. IIRC we used a window window and linux box to restore both of these platforms (cygwin on windows did not reduce it), and we do not need a version for OS X. I can let you have what we built if it is useful.
Cm
mdma source share