scrapinghub / scrapinghub/dateparser
Unable to parse "tonight"
Open
Nobody has claimed this yet.
Type: Enhancement
- Dominant language
- Python
- Stars
- 2.9k
- Forks
- 520
- Avg merge
- 22h 56m
- Merged PRs (30d)
- 6
Description
The following is the detailed code
$ python
Python 3.7.10 (default, Mar 11 2021, 11:19:36)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dateparser
>>> dateparser.parse("today")
datetime.datetime(2021, 3, 11, 16, 52, 25, 549683)
>>> dateparser.parse("tonight")
>>> print(dateparser.parse("tonight"))
None
>>>
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with dateparser.parse("tonight") in the Python environment shown. Trace the natural-language parsing path for this input, then add support with regression coverage; done means the input parses consistently instead of returning None.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100