neo-ltex / vscode-ltex

LTeX: Grammar/spell checker :mag::heavy_check_mark: for VS Code using LanguageTool with support for LaTeX :mortar_board:, Markdown :pencil:, and others
https://valentjn.github.io/ltex
Mozilla Public License 2.0
16 stars 1 forks source link

Option to ignore rule for ALLCAP words? #71

Open randolf-scholz opened 3 months ago

randolf-scholz commented 3 months ago

Is your feature request related to a problem? Please describe.

I work with many domain specific capitalized abbreviations. It would be too laborious to add them to a custom dictionary. These get flagged as MORFOLOGIK_RULE_EN_US. However, disabling this rule completely would be a bad idea because it is also used to match elementary typos.

Describe the solution you'd like

Ideally, I'd want to selectively ignore this rule for all words that match the regex [A-Z0-9]+('?s)?, or at least just for [A-Z0-9]+.

Describe alternatives you've considered

Alternatively, one could ignore all errors for allcaps words, it seems that languagetool does have such an option, but it's not clear how to activate it in ltex. fsa.dict.speller.ignore-all-uppercase: