How to Edit the Firefox Custom Dictionary

by Jeff Starr on Sunday, April 13, 2008 11 Responses

Oooops! Didn’t really mean to add that particular word to the Firefox custom dictionary. Better remove it now before it causes problems later on..

As one who takes full advantage of the custom dictionary in Firefox, I occasionally find myself adding nonexistent or misspelled words to the dictionary by accident. Not wanting to deal with a false negative down the road, I always take the time to stop what I’m doing, locate the custom dictionary, and remove the erroneous term. Finally getting sick of trying to remember the esoteric location in which Firefox stores the personal dictionary, I decided to make a few notes and post the information here for easy access when it happens again (and it will happen again;).

Turns out that the location of the custom dictionary varies depending on your operating system. The name of the custom dictionary is “persdict.dat” (short for “personal dictionary”), and is located in the following location (depending on operating system):

Windows Vista

C:\users\[username]\AppData\Roaming\Mozilla\Firefox\Profiles\[unique-alphanumeric-string].default\persdict.dat

Windows XP

C:\Documents and Settings\[username]\ApplicationData\Mozilla\Firefox\Profiles\[unique-alphanumeric-string].default\persdict.dat

Mac OS X

~/Library/Application Support/Firefox/Profiles/[unique-alphanumeric-string].default/persdict.dat

Linux

~/.mozilla/firefox/[unique-alphanumeric-string].default/persdict.dat

Of course, the [username] (for Windows) and [unique-alphanumeric-string] will vary depending on your unique configuration. Once you have located the target file, “persdict.dat”, open it with a text editor and edit according to your needs. The file itself is simply a list of words that you have chosen to add to the dictionary by right-clicking in Firefox and selecting “Add to dictionary”. With this file, you can add as many custom words as you like, or, conversely, remove all those nefarious little rascals that you added by accident! Save, close, and done. Even so, why hasn’t somebody written an official “custom dictionary editor” extension for Firefox? Would be so nice!

About the author

[ Jeff Starr ]

Jeff Starr is a web developer, graphic designer and content producer with over 10 years of experience and a passion for quality and detail. Jeff is co-author of the book Digging into WordPress and strives to help people be the best they can be on the Web. + Follow Jeff on Twitter and subscribe to Perishable Press for quality web-design content delivered fresh.


11 Responses
[ Gravatar Icon ]

H5N1#1

Hi Perishable.
I think that this hack (or trick or tweak or whatever you’d like to call it) fits with mine :)

I don’t like spam :) but this arcticle reminds me my “Custom Firefox favicon bookmark toolbar” that you can find at http://codeinsider.blogspot.com/2008/03/firefox-toolbar.html

I’d like to think (and tell me if it’s so) you’re just read it.

:)

[ Gravatar Icon ]

Perishable#2

Yes, I read your article, and it is very good. It seems like a very useful technique. I think I will experiment with it a bit and examine the results (just as soon as I can find the time!;) Thanks for sharing it with us! :)

[ Gravatar Icon ]

me#3

Hey
thanks for the tip but i tried to change to words in the persdict.dat file and then saving the file. but it doesn’t work. when i open the file after using the dictionary once the old words are back, and the new ones have disappeared!

[ Gravatar Icon ]

me#4

AH! sorry for previous comment! I just realised that I had forgotten to close down Firefox when I was changing the file!
Thanks for the tip :-) It does work!

[ Gravatar Icon ]

H5N1#5

I just was asking for that! :)

[ Gravatar Icon ]

Jeff Starr#6

Thanks for the update, me! Glad to hear you got it working :)

[ Gravatar Icon ]

matt#7

I don’t have that file on my computer, i’m using xp and i know my way around computers, i searched for it by name and still couldn’t find it, I also looked in every available profile setting (Admin, All Users, etc…) and it’s nowhere to be found… I use the built in dictionary constantly, so could the file be named something different?

[ Gravatar Icon ]

Jeff Starr#8

Hi matt, as far as I know, persdict.dat is the standard name for the dictionary file on XP. If a thorough search does not return any results, then something may have been customized, overwritten, or otherwise modified by another program. You may want to check around at the Mozilla Firefox forums and maybe ask if anyone has any ideas.

[ Gravatar Icon ]

Simon Field#9

Thanks for that - I’m forever hitting the “Add to Dictionary” option by accident, and didn’t feel like trawling through the ApplicationData for myself.

[ Gravatar Icon ]

Jeff Starr#10

Absolutely my pleasure, Simon. That’s exactly why I posted this article — I am always clicking the wrong button as well and got tired of trying to remember the location of the custom dictionary. Another thing that I did to make it even easier and save more time is create a shortcut to the dictionary file itself. Now I am good to go with a single click!

[ Gravatar Icon ]

Karyn#11

Thank you so much for this! It helps a ton.

Comments are closed for this post

If you have or need further information, contact me.



Attention: Do NOT follow this link!