scrapinghub / scrapinghub/dateparser
Handling optional "1" (e.g. "(1) day ago") for some languages
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
In EN we say "1 day ago", not "day ago".
However in some other languages the "1" here may be optional.
E.g. in CS one may say "před týden" for "1 week ago" (před->ago, týden->week).
The current version of dateparser (130c0e8) can handle "před 1 týden" but not "před týden".
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 Czech examples in dateparser, comparing “před 1 týden” with “před týden.” Trace the relevant parsing path and existing language handling; done means optional “1” is accepted where appropriate without breaking English or other supported languages.
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