19

My Firefox spellchecker was complaining this morning that I spelled 'neighbor' in the American English style, not the British English style ('neighbour'). Same is true for color (colour), analyze (analyse), etc. I've checked in the edit->preferences->content->language tab, and en-us is selected. I also found this link here:

http://ubuntuforums.org/showthread.php?t=1013043

Suggesting that there's some kind of system panel I can use to ensure that I've got the right language, but I can't see where that is (I guess that's for an older Ubuntu that let people get to system settings).

So either the dictionary for Firefox for en-us is corrupted, just a copy of the British English dictionary, or somehow the setting isn't propagated properly. How can I get the American dictionary back?

mmr
  • 423
  • 6
  • 15
  • If the problem is that the dictionary keeps getting reset to something other than US English, then this question may have the answer you are looking for: [How can I change Firefox's default dictionary?](http://askubuntu.com/questions/184300/how-can-i-change-firefoxs-default-dictionary) – Stephen Ostermiller Dec 04 '14 at 18:21

5 Answers5

15
  1. In a text field, open a context menu by pressing the right mousebutton.
  2. Select Check Spelling if needed
  3. In the Languages menu, select English / United States

Firefox spellchecker

If this did not work, (re-)install the hunspell-en-us package.

Lekensteyn
  • 171,743
  • 65
  • 311
  • 401
  • Thanks, that got it! Any way to keep all of these things in sync? – mmr Jun 23 '11 at 18:24
  • 6
    Did you mean limiting the list size? I didn't like having all different kinds of English in my list, so I removed Australia, Canada and South Africa by removing the links pointing to it: `sudo rm /usr/share/hunspell/{en_AU,en-AU,en_ZA,en_CA}.{dic,aff}` You can navigate to `/usr/share/hunspell` to find other dictionaries. If you mess it up, just install the related `hunspell-*` package. – Lekensteyn Jun 23 '11 at 19:09
  • 2
    I mean, how many different spelling dictionaries are there, and how can I make sure that they all point to the right place? It's clear that the firefox selection doesn't influence what's written in firefox. Or is this selection going to be reflected everywhere else, at least in theory? – mmr Jun 23 '11 at 19:22
  • If you meant that selecting one of the multiple entries do not work, I don't know. I try to ignore that and select the other entry. Perhaps the bug is already filed. – Lekensteyn Jun 23 '11 at 19:58
  • 1
    @lekensteyn, I think mmr is asking how to change the dictionary across many applications, so that all software (not just Firefox, but LibreOffice, too) use the same dictionary. – Amanda Jan 22 '12 at 20:26
  • @mmr, I don't know the answer. – Amanda Jan 22 '12 at 20:28
  • @Amanda I don't know, but after probing some commands using bash auto-completion (`man keyword`), I found the program `select-default-wordlist` being referred by `man american-english`. I haven't tried it myself, but perhaps it helps you a bit? – Lekensteyn Jan 22 '12 at 20:55
  • That probably should have been directed to @mmr – Amanda Jan 23 '12 at 02:07
8

For Firefox, put "about:config" in the address bar and go there. Search for "spell", and find the variable "spellchecker.dictionary". If its value is something other than "en_US" (mine said "en_AU"), right click the entry and modify the value to "en_US".

Greg
  • 81
  • 1
  • 1
  • This worked for me, and it seems to have persisted through a Firefox restart because "color" is not bringing up a suggestion for "colour". – Chad Mar 29 '14 at 22:28
  • This worked for me in Ubuntu 18.04, Firefox 63. I don't have a 'Languages' option in my right-click context menu. – Max Wallace Dec 02 '18 at 14:05
1

I had ongoing problems with Firefox "jumping" from one dictionary to another. To fix it, I run this command after each Ubuntu install:

sudo rm /usr/share/hunspell/en_{GB,AU,ZA,CA}.*

Obviously, this can be edited for any dictionary.

erichlf
  • 3
  • 2
0

There are multiple bugs in Ubuntu that are tracing back to Mozilla: Firefox is not following the system locale setting. Consider posting a sighting to https://bugzilla.mozilla.org/show_bug.cgi?id=776028.

dannyman
  • 558
  • 1
  • 7
  • 23
-1

Firefox seems to randomly use any one of the installed dictionaries. Several English dictionaries get installed by default in Ubuntu. The solution is to remove all but the US English dictionary using apt-get.

From How can I change Firefox's default dictionary?, Insperatus posted this useful command.

sudo apt-get remove myspell-en-au myspell-en-gb myspell-en-za hunspell-en-ca && sudo apt-get install myspell-en-us

Before:

firefox spelling language before removal

After:

firefox spelling language after removal

Stephen Ostermiller
  • 4,083
  • 2
  • 37
  • 52