Skip to content

Conversation

@jtsay362
Copy link

@jtsay362 jtsay362 commented Jul 24, 2017

Thanks for making natty! I'm using it to parse dates embedded in other text, and don't want it to recognize the words "falls" or "springs" as dates unless they have a relative qualifier.

@joestelmach
Copy link
Owner

This is a little tricky, since you can currently parse things like '2 summers from now' or '2 winters ago'. But I also agree that something like 'the springs are springy' should not be parsed as a date, so I wonder if there's a way to distinguish between the two contexts.

@joestelmach
Copy link
Owner

On second look, maybe you've already considered that?

@jtsay362
Copy link
Author

jtsay362 commented Aug 4, 2017

Yes, I made it so the season has to be "bare" with a plural to prevent recognition. The tests in IcsTest.testSeasonWithModifiers() like "three summers ago" still work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants