scrapinghub / scrapinghub/dateparser
Can't parse "后天" in Chinese
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.9k
- Forks
- 520
- Avg merge
- 22h 56m
- Merged PRs (30d)
- 6
Description
>>> import dateparser
>>> print(dateparser.parse('后天'))
None
>>> print(dateparser.parse('in 2 days'))
2023-09-14 14:22:11.209793
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
Start by reproducing the two Python examples with dateparser and inspect how Chinese relative-date expressions are handled. The work is done when parsing "后天" returns a datetime corresponding to two days from the current time, rather than None.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- internationalization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100