Skip to content
Advertisement

Is there a way to access browser spell suggestions from javascript?

I am trying to make a search bar in my website which searches for a certain sentence in the database, I want to be able to correct the spelling of the form input before submitting it. I’ve noticed that there’s a red squiggly line when there’s a misspelled word in the input and when you right click it show’s suggestions. Is there any API to access these suggestions? I’ve tried different javascript libraries and none of them have accurate suggestions.

Advertisement

Answer

It appears that there isn’t a way. You have to either make a spellchecker yourself of use a library.

I found this stack overflow answer: https://stackoverflow.com/a/32657649/15920018

To the best of my knowledge, you cannot.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement