Thursday, 3 April 2008

Parsing calendar entries

John Udell raises the challenge of translating the human formats of a calendar entry into a machine format. Google Calendars quick add feature does make a fair effort and responds as the human intended in most cases.
From the examples given by John
Tue, 4/1/08ok
2 Apr - Wed 10:00AM-10:45AMGets date wrong (time of day ok)
Weekdays 8:30am-4:30pmok
Thu, 11/15/07 - Fri, 4/11/08ok

Every Tuesday of the month from 10:00-11:00 a.m

ok
Sat., Apr. 05, 9:00 AM Registration/Preview, 10:00 AM Live Auctionok
2nd Saturday of every other month, 10:00 am-12:00 pmok
The API seems to provide a neat packaging of the requirement as a service which could be used in many ways. Problems that are encountered, like the example above, might eventually be dealt with by the team at Google but seem tractable through pre-processing.

No comments: