vogellacompany / languagetool-eclipse-plugin

Eclipse plug-in for Languagetools
Eclipse Public License 1.0
9 stars 1 forks source link

Rule for language tools #7

Open vogella opened 7 years ago

vogella commented 7 years ago

@daweiser I got the following feedback via email:

Man erkennt uns deutsche Sprecher immer eindeutig daran, dass wir Konditionalsätze wörtlich aus dem Deutschen übersetzen, und ich weiß, dass das viele native Speakers stört.

Bei uns wird das Konditional mit dem Konjunktiv II gebildet:

Wenn ich auf diesen Knopf drücken würde, dann würde das Programm abstürzen.

If I would press this button, the program would crash. LEIDER FALSCH und typisch deutsch!!
Richtig in der Vergangenheitsform: If I pressed this button, the program would crash.

Wir haben auch die entsprechende veraltete Form mit Imperfekt: Wenn ich den Knopf drückte, ... Wenn ich das Fenster öffnete,... diese benutzen wir nicht mehr.

Im Konditional II: Wenn ich diesen Knopf gedrückt hätte, wäre das Programm abgestürzt.

If I would have pressed the button, the programm would have crashed. Leider wieder daneben und typisch deutsche "Wuzzerei".
Richtig: If I had pressed the button, the program would have crashed. Eigentlich ganz einfach.

Also: Nach IF wird nie gewuzzt (mit ganz wenigen Ausnahmen).

We should test if Languagetool also identifies this as error and if now provide a PR for languagetool to identify this.

daweiser commented 7 years ago

The first one is not detected. The second one is. I'll check how to contribute this rule via a PR.

daweiser commented 7 years ago

LanguageTool provides a rule editor to create new rules. Link to the rule that detects the error in the second example: https://community.languagetool.org/ruleEditor2/index/IF_WOULD_HAVE_VBN?subId=1&lang=en