The conversation started with Konstantin_Ladutenko sharing his positive experience with a real-time spell and grammar checker using TeXstudio and Language Tool. He suggested integrating this feature into Discourse to enhance writing experiences.
However, codinghorror expressed that Discourse relies on modern browsers to handle spell checking and autocorrect. Konstantin_Ladutenko countered that not all browsers, especially mobile ones, offer this feature.
Rob_Nicholson pointed out that Android Chrome lacks spell checking when a Bluetooth keyboard is connected, and jomaxro clarified the difference between predictive text and spell checking on Android.
The discussion also revealed that Discourse does not have a built-in spell checker, relying instead on the browser’s capabilities Falco.
A potential solution was presented by sam, who mentioned the Discourse AI Helper plugin, which supports proofreading and can be triggered using a keyboard shortcut. This plugin utilizes LLMs to correct grammar mistakes and catch errors that browser spell checkers might miss.
I recently had an amazing writing experience using TeXstudio with a spell and grammar check done in real time (via Language Tool app installed locally). It is very useful if you are more focused on the subject and facts and less on the grammar and style. This is especially true if you are writing in some non-native language. Even simple checks like avoid word repetition and common typos not detected with speller are very helpful (a good example is “My English is very bed”). And this is not only about writing, a well-written text can provide a pleasure for a reader, a crappy one leads to annoyance.
There is a number of plugins aimed to do this for online writing. I am actually using one at the moment, however, it is a bit buggy on providing corrections for mistakes. The major drawback is that it is only for English.
Langage Tool is a Java app that can be run in server mode, and used via JSON API. Moreover, you can use your own instance (it is open sourced) or use the service they provide on web site. It has enough performance to check 400.000 sentences in about 4 minutes on my dual-core laptop, so it should not stack even under heavy traffic. As far as I know it is the best multilingual grammar checker, even more - it is relatively easy to contribute new rules for your native language to detect your favorable typos.
So, using a smart spell and grammar checker is a great pleasure, which can be provided to every Discourse post writer via integration with Language Tool (or any other app, probably you can find out a better possibility). Any ideas about implementation? Is it interesting enough to be added into Discource developers’ todo list?
Not at all. Only desktop browsers do and only a spellcheck (no grammar analysis, which is available only with plugins, however, plugins are buggy for custom input fields (like Discourse) or probably not user-friendly (I use two of them)). Any mobile browser under Android I have tested (Chrome, Firefox) do not have any spell check and will probably not in any upcoming feature.
Is it possible to add a plugin that will interact with a local or remote server via post and get JSON API to provide correction for user input in Discourse? It will need to mark errors and provide suggestions for corrections, e.g. popup balloon on mouse hover over the marked place, where you can click to select the correct variant of spelling or grammar.
Except on Android Chrome when you have a Bluetooth keyboard connected. On Android, isn’t it the on-screen keyboard that does the spell checking via predictive text? So you lose this when a hardware keyboard is attached. Some third party keyboards like SwiftKey do allow on-screen predictive text without showing the on-screen keyboard which helps.
It would be useful if Android Chrome could offer in-place spell checking so this is more of a general Android problem that Discourse.
I know that Discourse has a built-in spell checker since I do see misspelled words underlined in red. However, there’s no auto-correct or recommendations of how the word should be spelled. Is this a feature or plugin available?
Often, I see some users misspell stuff and I edit their posts manually.
Discourse AI Helper supports proofreading out of the box, LLMs are excellent at correcting grammar mistakes and can catch many things that the browser spell checker will not catch.
It can be triggered using CTRLALTp on sites with Discourse AI Helper configured.