dhmit / gender_analysis

A toolkit for analyzing gendered language across sets of documents
BSD 3-Clause "New" or "Revised" License
11 stars 5 forks source link

Allow `Document` to accept more granular dates #131

Closed samimak37 closed 3 years ago

samimak37 commented 3 years ago

As it currently stands, the Document class only accepts a date field if it is a 4-digit integer. We probably want to change this such that a wider variety of date formats can be supported.

https://github.com/dhmit/gender_analysis/blob/e3dbb465c02e581bc5a5aa1ef55e23b8b91da240/gender_analysis/document.py#L50-L60