Open Bug 1343551 Opened 5 years ago Updated 2 years ago

mozISpellCheckingEngine equivalent API

Categories

(WebExtensions :: General, enhancement, P5)

enhancement

Tracking

(Not tracked)

People

(Reporter: toni_to_1993, Unassigned)

References

Details

(Whiteboard: [design-decision-approved], triaged)

Currently there is no way to interact with the spell checker.

We should have the abilities to list the installed and enabled dictionaries, turn on/off spell checking for the focused text field, switch to a dictionary/language and get/add/remove entries from the user's personal dictionary.
Whiteboard: [design-decision-needed]
To be discussed at the WebExtensions Triage meeting on March 21. 

Agenda: https://docs.google.com/document/d/1xM6iKOSGo9cDWw3ZA27PT-AVlx1Mvd79sxC6pYNhBqU/edit?usp=sharing
andym to verify priority.
Flags: needinfo?(amckay)
Priority: -- → P5
Whiteboard: [design-decision-needed] → [design-decision-approved]
Seems reasonable, unless there's some widely used add-ons that currently do this.
Flags: needinfo?(amckay)
Note that in bug 1303749 we are considering ideas like moving the spell checker backend to a background thread...
See Also: → 1303749
make sure that isn't designed in way that conficts with comment 4
Whiteboard: [design-decision-approved] → [design-decision-approved], triaged
Status: UNCONFIRMED → NEW
Ever confirmed: true
I am interested in working on getting an auto correct feature added to the spell check functionality like there is in Google Chrome
Example of add-on that would use this: https://github.com/danielnaber/firefox-dict-switcher
Duplicate of this bug: 1417509
It might also be worth exposing the suggest() method of mozISpellCheckingEngine in some fashion.
Severity: normal → enhancement
Product: Toolkit → WebExtensions
Bulk move of bugs per https://bugzilla.mozilla.org/show_bug.cgi?id=1483958
Component: Untriaged → General

I would like to see this happen too. Currently there is no way to have good spell checking for the Finnish Language (https://bugzilla.mozilla.org/show_bug.cgi?id=1403735). The developers were not interested in including libvoikko to be used for this purpose. I'm working on a webextension that uses libvoikko, it can be used in it, because of WebAssembly, but it's next to impossible to implement highlighting for the incorrect words.

This API should be general enough to be used for grammar and spell checking and maybe something else too. And it would be a nice feature to have over Chrome, because even businesses' like Grammarly (https://medium.com/engineering-at-grammarly/building-the-grammarly-extension-718497e3760d) have problems with the current situation and this API would solve this.

You need to log in before you can comment on or make changes to this bug.