scrapinghub / scrapinghub/dateparser
DateSearchWithDetection.detect_language returns "vi" for "2018-10-17T00:00:00"
Open
Nobody has claimed this yet.
Type: Bug
- Dominant language
- Python
- Stars
- 2.9k
- Forks
- 520
- Avg merge
- 22h 56m
- Merged PRs (30d)
- 6
Description
DateSearchWithDetection().detect_language(text="2018-10-17T00:00:00", languages=[])
>>> 'vi'
dateparser 0.7.2
I expect the default language returned - English or 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
Start by reproducing the detect_language call with "2018-10-17T00:00:00" and an empty languages list. Trace the language-detection entry point to determine why it returns "vi", then add a regression test covering this input; done means it returns the intended default language or no language rather than Vietnamese.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100