humanitiesplusdesign / palladio

An application that brings humanities research methods to data visualization.
BSD 3-Clause "New" or "Revised" License
172 stars 31 forks source link

Palladio recognizes dates in the YYYY format as numbers #142

Open elizawe opened 8 years ago

esjewett commented 8 years ago

I'm a little torn about what to do with this one. We can prioritize recognition of 4-digit numbers as dates over recognition as numbers. Is that preferred?

cncoleman commented 8 years ago

That is tricky. I'm going to say that, at this point, since we are primarily building for historical data, we should assume dates. If we could run some checks to determine likely dates, that might help:

  1. If the first digit changes by more than one increment, treat it as number not date. or if
  2. If the second digit changes by more than three increments, treat it as number not date.
esjewett commented 8 years ago

This is probably something I can implement.