-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange parser error: search_dates parses "2010 Year" to a date with year of 4033 #1193
Comments
This is because year is interpreted the same as years, and “2010 years” is interpreted as “2010 years later“. Maybe we could make it so that if it is year, singular, it only works like that for “1 year”, and otherwise it gets translated to “year 2010” for example. But it may not be trivial to address. |
OK, thank you. I can work around this now that I know what the rules are. Could you point me to source so that I can see the ruleset? And is that user configurable? |
The code base is relatively complex, and I don’t think this case is user configurable at the moment. |
OK - I thought I saw a definitions page with the regex sequences it was using to parse. But, if not easy, I'll work around this. Want me to close this out? |
No, I think this is a valid issue, and we want to eventually address it. |
Very strange issue.
Result:
Out[27]:
(impossible year 4033 from the first part of the parse)
Also, put this question on SO *link:**
The text was updated successfully, but these errors were encountered: