-
Notifications
You must be signed in to change notification settings - Fork 217
[EN] Intervals with differing grains #221
Comments
I've identified why the end interval is being improperly shifted by an hour. In I have a fix for this, but it "breaks" an existing example in the corpus:
It's not clear to me whether this is "OK" and the interpretation needs to change ... However this is a perfect example of where different grains make sense. Currently, the "within duration" rules all create |
Example of issue:
Seems like the simplest solution is to have the interval endpoint grains be decoupled. I think this also provides a more natural interpretation.
One might argue the grains should match, in which case the solution is for the
:to
endpoint to become (in this instance)"2017-02-17T09:01:00.000-08:00"
. I disagree with this, since the speaker syntax should define the grain, as is already the case with point-in-time parsing (e.g. "9 AM" has hour granularity while "9:00 AM" has minute granularity).The text was updated successfully, but these errors were encountered: