languagetool-org / languagetool-browser-addon

LanguageTool Firefox and Chrome Add-on (OUTDATED)
Other
129 stars 53 forks source link

Honor lang attribute #225

Open jsonn opened 6 years ago

jsonn commented 6 years ago

When running a standalone server with the ngram tables, it is often handy to only install the dataset for the languages that are expected, i.e. German in my case. When the textarea contains i.e. "Test", it will be automatically detected as English and the standalone server is unhappy (error 500) about missing ngram files. This happens even if the document is tagged explicitly as German via <html lang="de"> or similar means.

danielnaber commented 6 years ago

I don't think we should rely on the lang attribute - as the browsers also don't really use it that much, there a re probably many lang attributes with a wrong value.

jsonn commented 6 years ago

It is widely used by screen readers and other accessibility tools. It is normally also quite harmless if the default is bad, since the user can still override it. It just doesn't help when the server answers with a 500.