Does anyone successfully implemented Hunspell spell-checker on Android platform? Is it even possible? Did you try it? What about the results?
Thank you in advance.
Hunspell is a set of dictionaries used for spell checking software. It's open source, and has an active community of contributors.
Hunspell is a spell checker and morphological analyser designed for languages with rich morphology and complex word compounding and character encoding, originally designed for the Hungarian language.
# About PyHunSpell. pyhunspell is a set of Python bindings for the Hunspell spellchecker engine. It lets developers load Hunspell dictionaries, check words, get suggestions, add new words, etc. It also provides some basic morphological analysis related methods.
I created a working prototype implementation of SpellCheckerService
using Hunspell so it is possible!
You can find it on GitHub HunspellCheckerService. Note that this is quick&dirty prototype.
Unfortunately from what I can see the suggestions generation in Hunspell is quite slow. Depending on the word length it takes between 0.5 and 5 seconds on my Samsung Galaxy S. On the other hand checking if the word is correctly spelled is fast enough.
The problem is that by default Android is generating suggestions lists for all misspelled words upfront rather than when the user clicks the word. This may make your smartphone burning if you edit a long text with loads of misspelled words (e.g. code sample).
Let me know if you have any questions regarding this prototype.
There are few of the below steps you may have to follow to atleast try to port
Chromium code browse http://google.com/codesearch#OAMlx_jo-ck/src/third_party/hunspell/src/hunspell/hunspell.cxx
git repository for chromium http://git.chromium.org/gitweb/?p=chromium/chromium.git;a=summary 3. Please browse through and find ou the interface. 4. Now you need to create the .so from Hunspell lib, then creat Java Native interface to expose the API's of Hunspell.
Write a desired app...
Best Regards Vinod
Do you really need Hunspell? You might want to consider using the built-in spellchecker on Android.
(Android 4.0+)
SpellCheckerService
SpellCheckerSession
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With