sylvainhalle / textidote

Spelling, grammar and style checking on LaTeX documents
https://sylvainhalle.github.io/textidote
GNU General Public License v3.0
939 stars 68 forks source link

Support language tool language auto detection #151

Open oblitum opened 4 years ago

oblitum commented 4 years ago

LanguageTool have language auto detection:

  -adl, --autoDetect       auto-detect the language of the input text - note this will not detect
                           variants like 'English (US)', so you will not get spell checking for
                           languages with variants

It would be great if TeXtidote provided a means to use that instead of only supporting hardcoded language.

73 commented 3 years ago

That would be great indeed. I often find myself missing to provide --check.

sylvainhalle commented 3 years ago

Well, not providing --check is a different matter. TeXtidote can still verify things in a text without checking spelling and grammar, so the parameter is likely to remain mandatory.

73 commented 3 years ago

But the language identifier could go. I write texts in two languages and can not reuse my config easily. So it would be just --check instead of --check en|fr|es|...

sylvainhalle commented 3 years ago

Yes, that's what I plan to implement. The option is probably going to be called --autocheck without any parameter.

73 commented 3 years ago

May I propose something more specific? --spelling or --spellcheck? Because all textidote does is checking.