cilynx / pantomath

Pantomath knows about things
GNU General Public License v3.0
1 stars 0 forks source link

Date parser chokes on three-token dates in parentheses #37

Closed cilynx closed 1 year ago

cilynx commented 1 year ago

It's detecting the three-token dates correctly, but passes the right parenthesis on to dateutil.parser.parse which then chokes.

cilynx commented 1 year ago

Not sure if I should address this in Date or Word -- the decision comes down to if the text content of a Word should strip punctuation from the token or not. I don't have any sort of token processing independent from Words, so....eh?

I think for now I'm going to try cleaning this up in Word after a possible year has been detected.