lingua-franca icon indicating copy to clipboard operation
lingua-franca copied to clipboard

extract_datetime_en() clobbers any additional datetimes in string

Open ChanceNCounter opened this issue 5 years ago • 1 comments

>>> parse.extract_datetime("september 30 2019 october 24th 2018")
[datetime.datetime(2018, 10, 24, 0, 0, tzinfo=tzlocal()), '']

Desirable output would be:

[datetime.datetime(2018, 10, 24, 0, 0, tzinfo=tzlocal()), 'september 30 2019']

It might be worth adding an extract_datetimes() function while fixing this, or the patcher could regard that as out of scope. They're the same problem space, this bug prevents that potential feature.

ChanceNCounter avatar Jan 21 '20 06:01 ChanceNCounter

#96 hopefully closes this once finished

JarbasAl avatar Mar 25 '20 20:03 JarbasAl