vscode-languagetool-linter icon indicating copy to clipboard operation
vscode-languagetool-linter copied to clipboard

Language autodetection and manual override

Open noraj opened this issue 1 year ago • 1 comments

The language autodetection is often mislead resulting in hundreds of false positive errors. That would be a must to have a way to manually force the language for a document.

noraj avatar Oct 24 '24 20:10 noraj

@noraj - thanks for the suggestion! Just so I'm clear, you asking for a way to specify language on a per-document basis, right? That would allow documents in multiple languages to exists in a single project or folder.

davidlday avatar Oct 26 '24 14:10 davidlday

Just like we can override the code language syntax highlight, for example. That would be the same for LT language. Yes, a way to specify language on a per-document basis.

That would allow documents in multiple languages to exists in a single project or folder.

Yes maybe. But my use case is more that I have documents in different languages, let's say some in english and some in French so I don't want to use one fixed value but keep autodetection so I don't have to change the main language too often. But sometimes autodetection is mislead, just because I have a word, title or quote in another language or a last name or random string that make the autodetection think the language is something else than it really is. In those cases, I would like to manually override the language.

noraj avatar Nov 01 '24 00:11 noraj