Date range not recognized at all, mistakenly recognized phone number and seconds
- Dominant language
- Haskell
- Stars
- 4.3k
- Forks
- 740
- PR merge metrics
- No merged PRs in 30d
Description
Offending input: `01.07.2021 - 30.06.2026`
Command
```bash
curl -XPOST http://0.0.0.0:8000/parse --data 'locale=fr_CH&text="01.07.2021 - 30.06.2026"'
```
Current erroneous output:
```json
[
{
"body": "01.07.2021 - 30.06.2026",
"dim": "phone-number",
"end": 24,
"latent": false,
"start": 1,
"value": {
"type": "value",
"value": "0107202130062026"
}
},
{
"body": "2026\"",
"dim": "duration",
"end": 25,
"latent": false,
"start": 20,
"value": {
"normalized": {
"unit": "second",
"value": 2026
},
"second": 2026,
"type": "value",
"unit": "second",
"value": 2026
}
}
]
```
Contributor guide
Assessment
This issue has not been assessed yet.