joestelmach/natty — Issue #26: Not Parsing "March 9-13, 2012" properly
Author: adotify
Created: 2012-02-09 11:07:12+00:00
State: open

Great work by the way... however, im trying to parse the date:

March 9-13, 2012

but it only recognises March 9th.

If you change it to

March 9 to 13, 2012

then it will pick out March 9th, and March 13th, but it will use the year as a time. so you get

March 9th 2012 20:12 and March 13th 2012 20:12.

Also, is there anyway that we can restrict the type of dates/times it looks for? for example, i dont want to look for relative dates, but does this require a complete re-creation of the parser from the grammar (without relative rules)? or is there some way to turn rules on and off?

Thanks

Alistair