Skip to content

Date ambiguities during search_dates #689

Open
@holtzhau

Description

@holtzhau

For the following

from dateparser.search import search_dates
result_date = search_dates("Statement: 4 February 2019 10 4")
print(result_date)     

We get the result:
[('4 February', datetime.datetime(2020, 2, 4, 0, 0)), ('2019 10', datetime.datetime(2019, 10, 4, 0, 0))]

The last numbers are not dates, but are seen as such. That is okay because "2019 10 4" could make a valid date. But then "4 February 2019" should still be identified correctly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions