-
Notifications
You must be signed in to change notification settings - Fork 19
Spellchecker Investigation
This investigation was for Jira 1494: "Explore changing our editor's spell checker and investigate lift required for adding medical terminology"
- The spellchecker is not logic handled by Slate. There is only a boolean prop that is passed around that eventually gets set on a content-editable div
- This means that the Slate spellchecker relies on the native browser spellchecker
- I looked into modifying the words that are part of the dictionary that Chrome uses to do spellchecking
I was able to add medical terms (e.g. "imatinib") go the dictionary used by Chrome so it no longer classifies them as misspelled words. The method of doing this is different for Mac and Windows.
Adding words to the dictionary on chrome places them in the file ~/Library/Spelling/LocalDictionary
. We can add words to this file directly without having to go through Chrome. The syntax is one word per line with no quotes. Example:
# ~/Library/Spelling/LocalDictionary
wordone
wordtwo
wordthree
To get the changes to be saved, I had to restart my Mac. Now, "wordone" "wordtwo" and "wordthree" will be recognized as correctly spelled words in Chrome and added to the spellchecker.
Windows behaved differently than Mac in the sense that it did not modify any files on the disk, but rather stored the dictionary words in Chrome itself. Words can be added in the Chrome settings manually:
-
In the settings page of Chrome, go to the "Languages" section and click on "Custom Spelling"
-
Add medical terms to the Chrome spellchecker:
-
Restart Chrome for the changes to activate
Copyright © 2017 The MITRE Corporation | Approved for Public Release; Distribution Unlimited. Case Number 16‑1988
- Home
- About Flux Notes
- Active Treatment Summary Objects
- Data Standards for Breast Cancer
- Database decision
- Declarative Shortcut Format
- Demo Script
- Deployment Plan - Lite Mode
- Dragon Software Information and Troubleshooting
- Flux Notes Lite Demo Script
- How To Create New Shortcuts
- Interaction Between REACT.js Components in Flux
- JavaScript and HTML Code Style Guide
- Key Application Features
- Minimap Evaluation
- Naming Convention for Visual Components
- NLP Server: Provisioning and Troubleshooting
- Pre Release Testing Script
- Profiling and Performance
- Redux Implementation Guide
- Shorthand Context Problem
- Testing
- Third Party Libraries Changes
- Demo Scenarios -- (out of date)