Google Chrome uses Hunspell

I recently learnt that Google Chrome can also check spelling in text areas. It made me think back on how things changed in this area in the past few years.

If I remember correctly, I switched to Konqueror in ancient days since it was the only browser that could do this for me at that stage. I spent a lot of time at Wikipedia and needed an Afrikaans spell checker. This was also the time that I got really interested in spell checkers and I became more involved at Translate.org.za.

At some stage it became possible to also use the SpellBound extension in the then new Firefox to check spelling, and since version 2, Firefox could do it itself if I remember correctly. It is interesting to see that SpellBound is still available for people who want to check a lot of text at a time.

Apparently Opera can use Aspell, but it doesn't work on my computer, and I have heard that people struggle with it. Aspell also doesn't provide advanced technology that many languages need, and these days, most languages use Hunspell.

Of course on Mac OSX there is the system wide spell service that all programs can use. This is the way things should work, and as I understand, this is also the case in KDE4. This is definitely on my wish list for GNOME 3. At least Gtkspell already moved to Enchant which makes it possible to use Hunspell and other spell checking systems. For those who want to use Hunspell as the spell checker on OSX, have a look at OpenXSpell. This project holds a lot of promise.

It was interesting to see that Google's browser Chrome can also check spelling, and that it uses Hunspell directly. You can read their instructions and ask for the inclusion of any missing dictionaries (currently they don't package all the available dictionaries). Ain Vagula says his request was answered in a few days. Olivier R added that there is a limitation, although this hopefully doesn't affect too many languages.

It was also interesting to see that they store it in their own format, apparently for faster loading. Maybe OpenOffice.org and Firefox can also benefit from something like this?

Comments

true

Actually the reason Konqi had spellchecking such a long time ago is because spellchecking was indeed a system-wide spell service. Besides konqi, kopete (chat) and kmail also used that same service. Work has been put in making that spellcheck service support grammar and automatic language detection. Those will most likely be introduced in KDE 4.4 (7 months from now). So while the competition is catching up (apple has OS wide spellcheck now), FOSS is moving forward already ;-)

Actually Opera 10 is using

Actually Opera 10 is using Hunspell also. Old versions of Opera did use Aspell.

Re: Actually Opera 10 is using

Thanks for the information, Colonel. When Opera 10 comes out, I would test our spell checkers with it. It is great to see our investment in MySpell/Hunspell checkers paying of more and more.

Working on it

The Chromium project patched hunspell so that it could load the indexes directly from disk to avoid lots of unnecessary I/O which particular affected startup time. At Mozilla we're looking at taking their changes, see mozilla bug 468779.

Re: Working on it

Thank you for the comment, Benjamin. I put myself in CC for the bug.

WebKitGTK+ can do that too, using Enchant

Thought you'd like to know that WebKitGTK+ can already do spell checking using Enchant, in a way similar to Chrome. There are probably rough edges to sharpen still, so if you take a look, please report bugs on any that you find! You can test it using Midori or Epiphany/WebKit.

Re: WebKitGTK+ can do that too, using Enchant

This is also very good to hear. I tried it out with Midori 0.1.7 and it was not working - I guess due to my packaged version of libwebkitgtk. I would like to try this out again soon. A nice improvement for Midori would be to send the correct Accept-Lang for my locale. I was surprised that it doesn't support content caching. Still interesting, though.

Re: WebKitGTK+ can do that too, using Enchant

Yeah, that is actually a very recent addition, so it may be that. Do report bugs about the things you miss, though! As for disk caching, our plan is to get it into libsoup, instead of in WebKitGTK+, so that all libsoup users can benefit =). See http://bugzilla.gnome.org/show_bug.cgi?id=523100

Of cousre

Did you mean: Of course

Re: Of cousre

Fixed. Thanks.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options