languagetool-org / languagetool

Style and Grammar Checker for 25+ Languages
https://languagetool.org
GNU Lesser General Public License v2.1
12.29k stars 1.39k forks source link

[fr] rule DIEU: too many false alarms #3240

Open jaumeortola opened 4 years ago

jaumeortola commented 4 years ago

This rule (« Dieu » s’écrit avec une majuscule dans les religions monothéistes. Employez 'Dieu' au besoin.) gives too many false alarms, as can be seeen here .

We can either:

vkyfox commented 4 years ago

I think we can suppress an important part of the false positives with antipatterns to detect P.* and R rel m s before and after "dieu" (if that would detect P+D m s as well). That would take care of almost all the false positives in the file you linked, with rare exceptions, such as dieu soleil or dieu solaire which I think we could add specific antipatterns for.

jaumeortola commented 4 years ago

I think it is a lexical issue. We could suggest the capitalization only when the sentence uses, for example, typical Christian or philosophical language: some words and phrases. Otherwise, it is impossible to distinguish.