Closed dpelle closed 10 years ago
I like this idea a lot. How could it be done? I see two approaches:
Are there other approaches?
Just seing that Grammalecte-0.4.1 French grammar checker used the idea of date checking, and implemented it. See discussion in French: http://www.dicollecte.org/thread.php?prj=fr&t=404
The discussion there says that apparently the French grammar checker Antidote also already does date checking, but MS-Word does not (I have neither of them).
This has now been implemented for German, see https://github.com/languagetool-org/languagetool/blob/master/languagetool-standalone/CHANGES.txt#L89. I'll try to add it for English, too.
Added for several other languages now, too.
LanguageTool could have a Java rule to check for dates and report an error when the day of the week is inconsistent with the date.
For example, the following dates are all incorrect since the day (Tuesday) is inconsistent with the date (Apr 21st, 2014 is a Monday!)
We could also check for other incorrect dates such as:
The rule could obviously be adapted to other languages.