sqrtminusone's Blog

sqrtminusone's Avatar Image
Graduate student of Saint-Petersburg State Electrotechnical University.

If I'm not doing something with #Emacs, I'm probably doing something in #Emacs.
← All posts

This is magnificent. Proper grammar & spell-checking in #emacs #orgmode with https://github.com/valentjn/ltex-ls.

It takes maybe 10 seconds to run on my Master’s thesis file (M-x count words: 13453 words and 117566 characters), but it’s totally worth it. And it’s much faster on smaller files.

The good thing is that it supports markup syntaxes like Org and Markdown. #languagetool by itself produces a lot of false positives on these files.

For the following org-mode fragment:

#+TITLE: Test

Heloo world. I have came here. Am I not alive.

| Header 1 | Headerrr 2            |
|----------+-----------------------|
| Row      | Do it work in tables? |

#+begin_src emacs-lisp
"Will it wrok for eval results?"
#+end_src

#+RESULTS:
: Will it wrok for eval results?

The output of lsp-ltex is as follows:
MORFOLOGIK_RULE_EN_US 'Heloo': Possible spelling mistake found. 
HAVE_PART_AGREEMENT Use the past participle here. 
QUESTION_MARK If this is a question, use a question mark. 
MORFOLOGIK_RULE_EN_US 'Headerrr': Possible spelling mistake found. 
DO_HE_VERB Did you mean 'does'? 
MORFOLOGIK_RULE_EN_US 'wrok': Possible spelling mistake found. 
MORFOLOGIK_RULE_EN_US 'eval': Possible spelling mistake found.
For the following org-mode fragment: #+TITLE: Test Heloo world. I have came here. Am I not alive. | Header 1 | Headerrr 2 | |----------+-----------------------| | Row | Do it work in tables? | #+begin_src emacs-lisp "Will it wrok for eval results?" #+end_src #+RESULTS: : Will it wrok for eval results? The output of lsp-ltex is as follows: MORFOLOGIK_RULE_EN_US 'Heloo': Possible spelling mistake found. HAVE_PART_AGREEMENT Use the past participle here. QUESTION_MARK If this is a question, use a question mark. MORFOLOGIK_RULE_EN_US 'Headerrr': Possible spelling mistake found. DO_HE_VERB Did you mean 'does'? MORFOLOGIK_RULE_EN_US 'wrok': Possible spelling mistake found. MORFOLOGIK_RULE_EN_US 'eval': Possible spelling mistake found.
To like or reply, open original post on Emacs.ch