Adding a new word to the en-US dictionary

From MozillaWiki
Jump to: navigation, search

In order to add a new word to the en-US dictionary used by Firefox, you need to do the following:

  1. Get a clone of mozilla-central and make sure that you can build it successfully
  2. cd extensions/spellcheck/locales/en-US/hunspell/dictionary-sources
  3. EDITOR=vim sh edit-dictionary

At this point, vim (or any other editor that you have specified) opens up and allows you to edit the dictionary file. You can add and remove the words that you want, and then quit the editor.

  1. sh merge-dictionaries
  2. mv en-US.dic ..

At this point you can rebuild Firefox to test your changes. Once you're satisfied with the changes in the dictionary, you can create a patch and attach it to a bug and ask for review.