salty icon indicating copy to clipboard operation
salty copied to clipboard

Generate mismatch between date and day of week

Open mayeulk opened this issue 6 months ago • 0 comments

In structured dates (all dates formatted the same way in a vector) or unstructured ones (plain English text, to process by NLP methods), it could be cool to generate mismatch between date and day of week.

For instance, if a date reads one of the following:

14 June 2025 Saturday, June 14, 2025 Saturday, 14 Jun 2025 Sat, 14 Jun 2025

Then, pretend it's a Friday:

Friday 14 June 2025 (here, Friday was added) Friday , June 14, 2025 (Saturday turned into Friday) Fri , 14 Jun 2025 (idem)

This idea comes from the following: In some social science assignements, I processed the work of my students (a contribution to a creative Commons social science database) to have text fields checked by the languagetool grammar checker (for instance with library(LanguageToolR), see https://github.com/nevrome/LanguageToolR ). I realised that some mistakes like "Friday 14 June 2025" were detected. Also, sometimes, in emails, I read suggestions to have a meeting on, say, "Friday 14 June 2025" (sic).

That could help teach students do advanced checks on dates.

mayeulk avatar Jun 14 '25 07:06 mayeulk