scrapinghub/dateparser

Add support for other words ("decade", "fortnight", "century"...)

Open

#725 aperta il 25 giu 2020

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)Python (443 fork)batch import
good first issue

Metriche repository

Star
 (2318 star)
Metriche merge PR
 (Merge medio 397g 12h) (13 PR mergiate in 30 g)

Descrizione

There are some words that can be added to the library:

  • Decade: 10 years (2 decade --> 20 years, ...)
  • Fortnight: 14 days (Example: "a fortnight ago")
  • Century: 100 years (Example: "a century ago", "two centuries ago")

It's not necessary to put them all in a unique PR, you can submit just one of them. Just take in mind that it should support "next decade", "last decade", "a decade ago", "in a decade", but also "two decades ago".

Guida contributor