Skip to content

Instantly share code, notes, and snippets.

@mikegrima
Last active October 31, 2023 00:31
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikegrima/ae56dc1ad09f8f90ae2b3d109a718ad9 to your computer and use it in GitHub Desktop.
Save mikegrima/ae56dc1ad09f8f90ae2b3d109a718ad9 to your computer and use it in GitHub Desktop.
Edit Brave Browser Dictionary

Fix Brave Browser Dictionary

If you have ever mistakenly added a word to the Brave browser dictionary, you need to manually edit the Custom Dictionary.txt file.

As of March 2020, the Brave UI lacks a feature to do this.

Where is the file?

This will depend on your OS. Google for where this is on your OS.

The file on macOS is at: ~/Library/Application\ Support/BraveSoftware/Brave-Browser/Default/Custom\ Dictionary.txt.

Use your favorite text editor to edit and save the file.

@benxmy
Copy link

benxmy commented Jul 1, 2020

Thanks! If I hadn't found this I would be misspelling 'accommodate' for the rest of my life...

@RKHashmani
Copy link

Thank you for this! Kept searching the UI but to no avail. Much appreciated.

@tsimaile
Copy link

tsimaile commented Jan 8, 2021

Windows path = C:\Users{UserName}\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\Custom Dictionary.txt
But also now available in Brave via brave://settings/editDictionary

@mschlitz42
Copy link

Has anyone figured out how to do this on a Mac yet? The inability to change my dictionary is an inconvenience. What were the designers of Brave thinking or not thinking when this was left out?

@mikegrima
Copy link
Author

@mschlitz42

The instructions above are for MacOS.

@mschlitz42
Copy link

A location and instructions are not the same thing. What are the instructions to find the location of the file?

@mikegrima
Copy link
Author

mikegrima commented Mar 22, 2021

Open it with a text editor, find the offending line, then save. The dictionary file is here: ~/Library/Application\ Support/BraveSoftware/Brave-Browser/Default/Custom\ Dictionary.txt

@mschlitz42
Copy link

mschlitz42 commented Mar 22, 2021 via email

@mschlitz42
Copy link

It's grayed out in TextEdit and can't be opened.

@mikegrima
Copy link
Author

mikegrima commented Mar 22, 2021

  1. Open the macOS terminal (click on the magnifying glass in the top right), and type in terminal. Then press Return.
  2. Copy and paste this into your terminal (you know how to do that right?) open -a TextEdit ~/Library/Application\ Support/BraveSoftware/Brave-Browser/Default/Custom\ Dictionary.txt
  3. Delete the line in text editor.
  4. Save the file.

GitHub is largely utilized by software developers and the audience of our instructions is geared towards those users. Instead of lobbing snide remarks towards me, you could use Google to figure things out.

@benxmy
Copy link

benxmy commented Mar 22, 2021

I did try to find this on google. This is the only thing that comes up. My snide remarks are justified by Brave's incompetence and your obnoxiousness.

I'm going to go against Abraham Lincoln's sage advice of: "Don't get into flame wars with strangers on the Internet", and say that this comment is neither productive nor does it move the GitHub community forward in any way. If something isn't helpful to you, please find another solution elsewhere or post your complaints to Twitter, which is much better suited to such insightful soliloquies.

@incogiscool
Copy link

2. open -a TextEdit ~/Library/Application\ Support/BraveSoftware/Brave-Browser/Default/Custom\ Dictionary.txt

worked thanks!

@LoneDev6
Copy link

Or just visit: brave://settings/editDictionary

@mikegrima
Copy link
Author

Or just visit: brave://settings/editDictionary

That doesn't work for me on the latest Brave on macOS.

@LoneDev6
Copy link

I don't see why it's something OS-exclusive, strange.
I tested it on Windows 10.

@mikegrima
Copy link
Author

🤔

@LondonAppDev
Copy link

This used to work for me but now the Custom Dictionary.txt file doesn't appear to exist. Frustrating that this feature doesn't exist in the UI.

@mikegrima
Copy link
Author

@LondonAppDev Oh no did they move it??

@joshjohanning
Copy link

There's a checksum on the final line, does that need to be changed? I removed the accidentally added dictionary item, but it doesn't seem to do the red squigglies in the UI anymore.

@mikegrima
Copy link
Author

mikegrima commented Mar 31, 2023

I don't recall seeing a checksum unless that's new? Did you try closing and reopening (I know that sounds dumb)?

EDIT: Oh wow look at that. There is a checksum in there now... We'll need to check what the code in chromium is doing here: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/chrome/browser/spellchecker/spellcheck_custom_dictionary.h#39

@joshjohanning
Copy link

I tried totally deleting the file and my previously saved dictionary (including the word I want to remove) still appear to now squiggle in Brave.

It also adds it here, and I have removed it from the list, but it still is stuck and won't re-squiggle :)

open -a TextEdit ~/Library/Spelling/LocalDictionary

@joshjohanning
Copy link

I can re-create the checksum they have in the source by going here and leaving a trailing new line.
image

But still, even with the checksum is correct I am not sure how to purge an old word.

@mikegrima
Copy link
Author

Yuck, what a mess!

@joshjohanning
Copy link

Alright I think it is actually working now but the word I mistakenly added was assit. If I type that in a sentence, it squiggles.

If I put it on a new line, like
assit

it doesn't squiggle. Well anyway, hopefully this chicken scratch above is helpful to someone in the future. Good luck to everyone in the future :)

@xCrimin4L
Copy link

xCrimin4L commented Oct 31, 2023

On Windows 10 (and probably 11), the location is:

%LocalAppData%\BraveSoftware\Brave-Browser\User Data\Default\Custom Dictionary.txt

or you can manually enter your local AppData location:
C:\Users\<USER>\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\Custom Dictionary.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment