Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support fuzzy/approximate dates with configurable fuzziness #8

Open
rlskoeser opened this issue Nov 9, 2022 · 2 comments
Open

support fuzzy/approximate dates with configurable fuzziness #8

rlskoeser opened this issue Nov 9, 2022 · 2 comments
Milestone

Comments

@rlskoeser
Copy link
Member

initial comments from @ColeDCrawford on slack:

Some way to capture whether a date is fuzzy / uncertain / estimated (clearly need to settle on the language too!). This should probably be a range - the default could just be range(2) for certain / uncertain, but allow users to override it with their own custom range as needed. We should also have reasonable but overrideable defaults for the impact of the fuzziness on comparators. The Python edtf implementation pads by 100% of the uncertainty (e.g. 2022-11~ matches the range for 2022-10-1/2022-12-31 for lower_fuzzy() to upper_fuzzy() ) or 2022-11-01/2022-11-30 (lower_strict() to upper_strict()). This makes sense to me, but we should let users choose the amount of padding. A percentage would be easiest to start, with the “known” date in the middle. In the future could allow more control (the possible range might be skewed).

@rlskoeser rlskoeser added this to the 1.0 release milestone Jun 6, 2024
@rlskoeser
Copy link
Member Author

@ColeDCrawford I've been thinking that for implementing uncertain dates it would help to have classes of uncertain integers that you can do calculations with, which preserve that uncertainty/fuzziness. I was just looking and found the uncertainties python package, wondering what you think about using this: https://uncertainties.readthedocs.io/en/latest/index.html

@ColeDCrawford
Copy link
Collaborator

That looks really promising! Good find, not having to manage that would be nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants