r/GoogleAppsScript • u/Busy_Introduction_94 • 2d ago
Question Upload (large-ish) file for personal dictionary?
I have a text file that has (so far) about 5000 words in it that I would like Google Docs spell-check to ignore. (These are words in Old English/Anglo-Saxon, for which afaik there is no language pack available.) Obviously, it's impractical to try to add all of these words manually. I'm hoping — though I'm prepared to be disappointed, ha — to be able to bulk add/upload these words. Any ideas? Thx
1
Upvotes
2
u/No-Sheepherder7116 2d ago
Short answer: unfortunately, no — there is no bulk import for this, and Apps Script can't do it either.
The personal dictionary is a per-account setting in Docs, and neither DocumentApp nor the Docs API exposes it. So a Sheet plus an Editor Add-on won't get you there — an add-on can read and write the document, but it has no way to add words to your personal dictionary.
What does work, depending on what matters most to you:
For 5,000 Old English words, option 1 is the practical one. I know that's the disappointing answer you were braced for, but there is no supported upload, import file, or script for the personal dictionary.
0
u/nxl_boost_09 2d ago
Yes, it's possible. You can use a Google sheet to bulk upload the words and then use the App Script as an Editor Add-on.