Hacker News new | ask | show | jobs
by byoung2 2073 days ago
It would be cool if raw text could be parsed into structured data. Something like "Yesterday at 6pm, I took a flight from MIA to LAX airport on Delta" could be parsed into:

  {
    "date": "2020-10-09T06:00:00-0800",
    "action": "flight",
    "destination": {
      "iataCode": "LAX",
      "name": "Los Angeles International Airport"
    },
    "origin": {
      "iataCode": "MIA",
      "name": "Miami International Airport"
    },
    "airline": {
      "iataCode": "DL",
      "name": "Delta",
      "url": "https://www.delta.com"
    }
  }
even better would be to parse it into schema.org entities
1 comments

How would you use this information?
i would like to be able to search it by attribute, like "find me all flights I took on Delta" or "How many flights did I take to Miami last year"