Daniel Naber <daniel.na...@languagetool.org> wrote:

> On 2014-08-29 07:47, Dominique Pellé wrote:
>
>> Would there be a way to say something like instead:
>>
>> The date October 7, 2014 is not a Monday, but a Tuesday.
>
> This is now implemented, you can use "\realDay" in your message and it
> will be replaced. Note that Java only knows the day names for a few
> languages; for all other languages, you will need to implement
> getDayOfWeek(Calendar date) to return a String with the day name.
>
> Regards
>   Daniel

Thanks. That was quick.
I just updated the French grammar.xml to use \realDay.

Something else related to dates:

$ echo "Monday, 31 September 2014" | \
  java -jar languagetool-commandline.jar -c utf-8 -l en-US
Expected text language: English (US)
Working on STDIN...
1.) Line 1, column 1, Rule ID: DATE_WEEKDAY[1]
Message: The date 31 September 2014 is not a Monday, but a Wednesday.
Monday, 31 September 2014
^^^^^^^^^^^^^^^^^^^^^^^^^

September has of course only 30 days.  Here I gave 31 for
the day and LT was fooled, indicating that the day should
be a Wednesday!?

Better would of course to say that September has
only 30 days and handle February which has 28 or 29
days.

Regards
Dominique

------------------------------------------------------------------------------
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