Open mzeinstra opened 1 year ago
We actually already have humanizations of years. See 100
in
We purposefully did not humanize years such as 1984 since people already understand what you mean. The differentiation is really simple at the moment, and perhaps should also include an upper bound such as 3000.
Or perhaps we should drop the check and always show a humanization. All those options are trivial to implement.
Here is a better version of the "smart" behavior: https://github.com/ProfessionalWiki/EDTF/pull/94
I find it quite strange that almost all EDTF strings get a humanized string (= the gray text in brackets), except for positive "year only"-dates, where that space remains empty.
This is actually not trivial to fix. Here are examples of changed humanization if we always humanize year. We should at least pay attention to context so that "year" does not get inserted inside of other messages where it really is not needed.
.- 'February 14th, 2021' +'February 14th, Year 2021'
-'2019 to 2021' +'Year 2019 to Year 2021'
-'01:02:03 UTC April 12th, 1985' +'01:02:03 UTC April 12th, Year 1985'
-'January 1st, 1000, April 20th, 4242 or a day in between' +'January 1st, Year 1000, April 20th, Year 4242 or a day in between'
Decision together with @mzeinstra and @digitaalwerktuig: we will not always humanize years because of the above issue with compound messages.
Potential improvement to smart behavior: https://github.com/ProfessionalWiki/EDTF/pull/94
Some community members argued that dates like '2023', '1800', '1924' should be humanised to 'year 2023', 'year 1800', 'year 1924', etc.
I would like to have an open community discussion on this. Are people in favor/against this? Until we have some input we will have this labeled as a question.