Built in spell and grammar checker

Hi,

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?

Kostya

1개의 좋아요

Unlikely, we count on the browser to do spellcheck and autocorrect – all modern browsers do.

6개의 좋아요

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.

This is technically possible, but not something we plan on working on, if you really want this feature look at building a plugin.

1개의 좋아요

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.

Predictive text is different from spell check, at least on modern versions of Android. See https://developer.android.com/guide/topics/text/spell-checker-framework.html. On my phone (Android 7.1.1), Spell checker (Google spell checker) is listed completely separately from keyboards:

2개의 좋아요

Discourse에는 내장된 철자 검사 기능이 있다는 것을 알고 있습니다. 오타가 빨간색으로 밑줄이 쳐지는 것을 직접 확인했기 때문입니다. 하지만 자동 수정이나 올바른 철자 추천 기능은 없습니다. 이 기능이 내장된 기능이나 플러그인으로 제공되나요?

종종 일부 사용자가 오타를 내는 것을 보게 되는데, 저는 수동으로 해당 게시글을 수정하고 있습니다.

아니요, Discourse에는 내장된 철자 검사기가 없습니다. 그 이유는

2개의 좋아요

아, 그렇군요. 지적해 주셔서 감사합니다. 브라우저 기반이군요. 알겠습니다.

업데이트

Discourse AI Helper는 기본적으로 교정 기능을 지원하며, LLM은 문법 오류를 수정하는 데 탁월하여 브라우저 철자 검사기가 잡아내지 못하는 많은 문제를 찾아낼 수 있습니다.

Discourse AI Helper가 설정된 사이트에서는 CTRLALTp 키를 눌러 실행할 수 있습니다.

3개의 좋아요