underline word in google docs

191 views
Skip to first unread message

Wesley Santos

unread,
Feb 15, 2023, 5:03:12 PM2/15/23
to Google Apps Script Community
Hellow guys, Is there any function or mode in apps script where I can remove the default underline from misspelled words and replace it with a custom form? in google docs

Something like the extension for chrome grammarly does
Link to example image:

Brett Grear

unread,
Feb 16, 2023, 6:33:31 AM2/16/23
to Google Apps Script Community
Not easily unfortunately. Apps script has no access to built in spell check.  Your best bet would be finding some third party library that can detect spellings

cwl...@gmail.com

unread,
Feb 16, 2023, 8:14:40 AM2/16/23
to Google Apps Script Community
As mentioned, not easily. Apps script works on the backend google servers, while you want to change what is happening in the browser. That is why Grammarly is a browser extension, because it changes the css at the browser level, then I'm guessing uses javascript to send the corrections back to the google Docs API. That is why you have to authorize it with your account. 
Reply all
Reply to author
Forward
0 new messages