Digital Inspiration

about us faq contact

Firefox 2 Spelling Dictionary Hacks; Make Firefox Inline Spell Checker More Useful

One of the most useful additions to Firefox 2 is the inline spell check feature that hints you of possible spelling mistakes as you type inside web forms.

While spell checking is a killer feature, Firefox 2 dictionary is incomplete and misses a lot of commonly used web terms including Google. This becomes all the more evident if you are slightly tech-savvy and use terms like AVI, Youtube, Screenshots, MP3, Powerpoint, etc while composing emails or writing new blog entries inside the browser.

So here are five different hacks that help you make Firefox 2 dictionary all the more useful.

For each of the hacks you will have to modify the persdict.dat [a text file with dat extension] located in the profile folder of your Firefox installation.

C:\Documents and Settings\<user>\Application Data\Mozilla\Profiles\<profile name>
persdict.dat holds the personal dictionary entries used by the spellchecker added by you.

Shut down Firefox and open the persdict.dat file using Notepad or any text editor.

Add Multiple Words to Firefox Dictionary in One Step

With persdict.dat open inside Notepad, add any number of new words but each on a new separate line. If your friend has already done the hard work, you can copy his custom entries in our own persdict.dat file. Save and close the file.

Don't Duplicate Work ? Merge Microsoft Word Custom Dictionary With Firefox

If you are a Microsoft Office user, chances are that you already have a rich custom dictionary in place which you created while composing documents inside Microsoft Word. So let's save the duplicate effort and bring those Microsoft entries directly to Firefox.

Open the custom.dic file located in the Microsoft Office Proofing folder.

C:\Documents and Settings\<user>\Application Data\Microsoft\Proof

As in the previous step, copy the entries from this file into persdict.dat file and your Firefox 2.0 spell checker gets all the intelligence of Microsoft Word dictionary in one step.

Download Additional Dictionaries for Firefox 2

While there are dictionaries to download in text form, you can always download list of popular computer terms, medical terms or any other jargon for your Firefox spell checker.

Wikipedia has a list of company names and computer terms that you can easily integrate with Firefox dictionary by simple text manipulation [keep the hyperlinked words, remove everything after the hyphen, etc]

Remove Entries from Firefox 2 Dictionary Added by Mistake

When Firefox 2 detects an incorrect spelling, it highlights that word with a dotted red underline - if you think the spelling is correct, you just right click and choose "Add to Dictionary".

But if you make a mistake or accidentally add a wrong word to the dictionary, the only way to delete is by manually removing it from, you guessed it right, persdict.dat file.

Replace US English with British English as the default dictionary.

You can download Firefox Dictionaries in various languages here. Install the British English Dictionary extension and restart Firefox. Now right click inside a text field and choose English / British under the Language settings.

Related: Add More RSS Readers to Firefox 2 like Newsgator, RSS Bandit, Rojo, etc.

Email This   Print Article   Save as PDF   Subscribe   Translate 


Download Free Google Software:


Reader Comments:

Awesome article amit...

A good research done by you on this one.

Excellent!! This is by far the best new feature of Firefox 2.

[quote]
C:\Documents and Settings\user\Application Data\Mozilla\Profiles\profile name
persdict.dat holds the personal dictionary entries used by the spellcheker added by you.
[/quote]

It's ironic that in a piece dedicated to spellcheck - the very word "spellcheck" is missing the letter 'c'. :-)

My fault. Thanks for pointing that Sparx. Fixed now.

Cool tips man,
Really Useful.

Well, the very first reason that I didn't like Firefox 2 was the incomplete spellchecker and its stupid decisions.
With this article, I may reconsider to upgrade to Firefox 2.

Nice work Amit.

Thanks Man,
Really awesome tips.

That is actually some cool stuff. I was already finding the inline spell checker useful - this will help it kick ass!

This is a good read. Firefox's new spellcheck is so useful for blogs and forumns.

This is a good read. Firefox's new spellcheck is so useful for blogs and forumns.

Two things.

Firstly if you haven't added a new word to Firefox then the file won't be created. So, that is step 1.

Secondly, if you are a Thunderbird user and have been adding words to your personal dictionary there then you can copy your "persdict.dat" from your Thunderbird profile and, tadaaaa!!!!!

Amit— great article.

I'm using Firefox 2.0 on my Mac powerbook. I tried ctrl-clicking on words to add them but didn't see the "add to dictionary" prompt in the contextual menu. And of course, the persdict.dat file doesn't exist for the Mac version.

Any suggestions on how to add words on a Mac? I'd be eternally grateful!exn

John - Try this.

Type a misspelled word (like dictioary) in some text field - when it's highlighted in red, right click and choose "Add to dictionary".

Now you should see the persdict.dat file in your Firefox profile folder.

If it's still missing, create one manually.

Good tip, very useful.
Still FF spellchecking is buggy, for example if I type etc. it will underscore etc but the suggestions includes "etc."... In other words, it doesn't include dots in words it check, even though there are dots in the dictionary itself.
Also there is only one personal dictionary, so it gathers French and English words (in my case). There should be one dictionary per installed spellchecker language.

there is no support for my language and I want to disable this option. HOW to do that?

Thank-you, where to find the custom dictionary is just what I needed to know. I clicked add to dictionary when I wanted to click the replacement word above it.

Hi, Amit. Thanks for the instructions on how to set it up with a Mac. I found my preferences folder and then put a Microsoft Word file that I named persdict.dat into it. I used the "save as" option so that I could save it as a plain text file. It works fine. I just put in the words, save the file and shut down Firefox. When I restart it, the words I entered are no longer marked as misspellings. I wanted to make sure that people know to save it as a plain text file (it might work without it, but I think it is probably best to do it this way) and that they know the changes won't take effect until Firefox is restarted.

By the way, Blogger's visual verification for comments, where you enter the letters in an image into a box, does not work with Mac Firefox. The image does not show up. I tried it several times, but it says that it is missing a plugin, but it cannot find the plugin when I click to install the when it. I have installed virtually every media plugin and any other plugin that I could possibly use, so I do not think that I am missing any plugins.

Thanks again,

Kevin

Thanks for the instructions to delete a word added by error.

So, is there some place in about:config to turn this right-click contextual menu spell check feature off? I don't need it and it is annoying me.

hey amit, it was cool.. and now I am also using ff2 on my linux desktop

aah.. I now use firefox 2 for linux and this feature is helping me a lot. my persdict.dat was in ~/.mozilla/firefox/fhe5djrw.default

My xxxxx.default folder was also in the ~/mozilla/firefox directory but I continue have been stumped by my dictionary not working like it's supposed to and I can't find any help searching Google (or any other search).

First I'm using en-CA dictionary. I do get red underscored words like the word color. So I right click on the word to change it to the proper "colour" and I get this: http://lh4.google.com/image/twodeadpoets/RfoUr_-iZmI/AAAAAAAABeM/IBVujW3z804/en-CA.JPG?imgmax=512
Note that there are no suggestions in spite of my persdict.dat file being full and when I click on "add dictionary" it takes me to the Firefox site to add another dictionary. BTW I do have the dictionary loaded in options>advanced>language. And if that weren't enough, this is a fresh and clean install of Windows XP pro not to mention I've reinstalled Firefox at least a half dozen times or more... so what gives?

HI,
Something happened, and now I see several irrelevant dictionary suggestions whenever I right-click.

I get a menu like this:
-------------
|altogether
|altogethers
|Gallagher
|Walther
|Back
|Forward
|Reload
|Stop
-------------
|Bookmark...

Can this be cleared without restarting Firefox?

Thx
-AK

Hello,

Very helpful document!

Although I can not find the British English Dictionary extension.

Rather annouying that even though I do spell correctly I get the red lines of gloom!

English UK, not American version would be perfect!

I am also in search of working British English Dictionary for Firefox 2.0.0.3.

If one goes to https://addons.mozilla.org , and there, by means of navigation bar by the left navigates to the Dictionaries section, he will find en-gb dictionary there. For now it is "British English Dictionary 1.19". And it is incompatible with Firefox 2.0.0.3.

I've tried the following ways to install it:

1. Navigating to about:config, creating Boolean extensions.checkCompatibility value and setting it to false. It enabled me to install that incompatible dictionary but anyway it refused to work.

2. Then I've modified install.rdf file in where the extension was installed to set em:minVersion value to 2.0.0.3 or 2.0.0.4. But that change did not affect anything.

So now I am in search of a good way to have traditional English spell checking in Firefox. And I see 4 ways:

1. Install US English dictionary and replace its wordlist with one from that incompatible British English Dictionary 1.19.

2. Inject the complete en-gb wordlist into user's custom dictionary. And I am not sure if this can work.

3. Learn how to build these dictionaries and build one. I suppose this is a best way and am currently in search of any information about how to do this.

4. Try to contact David Bartlett (en-gb dictionary author) and ask him to update en-gb dictionary on Mozilla site.

If someone has any thoughts about this to share - please post them here. I'll set a bookmark to this post.

Yes, and thanks to Amit Agarwal for raising this subject. The original article is useful - no one knows when would that idea of editing persdict.dat and merging it with msoffice's one come to a mind of mine, but now I shall indeed edit it in any case.

i misspell for with fro all the time. well fro is a word and it never shows it wrong.

i went into

C:\Program Files\Mozilla Firefox\dictionaries

opened the file with notepadd++ (cause it will show all the words better) and looked for the word fro.

I just changed the word fro to for and saved the file.

now every time i misspell it... i get an underline.

so if there is a word that you misspell and there is no check for it.. this might help you now.

dennis, that file doesn't add the auto-correct feature in Firefox. You have to remove the misspelled word from the persdict.dat so that it appears as red in text boxes.

Amit,

I want the Firefox spell checker to identify a lower case "i" as a misspelled word. I went in the dictionary file (en-US.dic) and removed the "i" entry. It now flags "i" as misspelled, but the spelling suggestions from the right-click do not include "I". Is there a fix? Thanks.

Thanks - useful information to be going on with, though really I would like to make a much better dictionary for en-GB (UK English)

Yes, I too would so like to contact the creator of the "en-GB" English dictionary... (for his help and co-operation)
A custom dictionary is all well and good, but first, as with most mobile phone suggestion dictionaries, I would wish for all the words to be
a. real words, not strange 3-4-5 letter combinations meaning nothing
b. real GB English, not americanisations involving z in place of s, as in organise, and or in place of our, as in colour, o in place of ough, as in doughnut, etc, etc., etc., etc. - en-GB English is very different from the USA version.

So, perhaps I can help the author create an Anglicised version of the currently nearly American English Firefox dictionary? Whilst eliminating some of the very odd word suggestions - pare it down to something more nearly useful for all those common words one would look stupid or be incomprehensible if one misspelled...
If someone can put us in touch? Oxfordite _google mail_

FYI: All-in-one Gestures extension breaks the context menu/spelling suggestions/add to dictionary feature for Firefox 2.0.0.6 Mac. Remove or disable the extension to see spelling suggestions when right-clicking on a misspelled word.

I have the new firefox 2.0.0.6 and the spell check wont download to it. Does anyone know a spell check that will work with it?

I think it would be great to somehow be able to combine the "persdict" used by FF and TB. And if we can tie in the Microsoft Personal dictionary, then - add spelling in one and everyone else learns!

Any ideas?

Spellcheckers are annoying as hell. How can I disable it completely?

Have a question? Need help? Visit the forums ».

Search For More Stories

Google Custom Search

subscribe

Get our E-Mail Newsletter

Subscribe in a reader


Quick Facts & Statistics

Digital Inspiration is a popular technology website with more than 5000 articles, tutorials and how-to guides related to software, computers, and internet.

The site launched in 2004 and averages over 2 million page views per month ..read more

FriendFeed Twitter LinkedIn YouTube Facebook Flickr
Support Forums




 

© 2008 Digital Inspiration - Technology, à la Carte | FAQ | Mobile Edition | Videos | Terms

The articles are copyrighted to Amit Agarwal and can only be reproduced given the author's permission.

My Google  Netvibes  My Yahoo!  Windows Live  Bloglines  Newsgator  

Skip to top of the page ^^