W dniu 2014-08-30 23:35, Dominique Pellé pisze:
> Daniel Naber <daniel.na...@languagetool.org
> <mailto:daniel.na...@languagetool.org>> wrote:
>
>     On 2014-08-29 21:50, Dominique Pellé wrote:
>
>      > Message: The date 31 September 2014 is not a Monday, but a Wednesday.
>      > Monday, 31 September 2014
>
>     I've now made date parsing more strict, but the rule won't complain
>     about these dates and just ignore them. So to catch them, you need other
>     rules. See for example the rulegroup with id 'UNGUELTIGES_DATUM' in
>     de/grammar.xml.
>
>
>
> Thanks.  That's a rule that can be useful in most languages.
> I've just added it for French. I improved it to detect incorrect
> dates such as "29 février 2014" (=29 February 2014)
> since 2014 is not a leap year, so it has only 28 days.
> See French rule "DATE". I had fun detecting leap years
> using regexp :-)

Another kind of error: many people mistype "20014" instead of "2014". 
See YEAR_20001 in English rules.

Regards,
Marcin

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to