Create a PHP library to parse a human written string into a date, time, description, and location. Each of these fields may be optional. An example of how the interface should work:
// Parse the string
$event = Parser::parse("Acupuncture with Joe tomorrow at 2pm")
echo $event->date; // 2014-05-31
echo $event->time; // 14:00
echo $event->description; // Acupuncture
echo $event->location; // Joe
Test cases that should be able to be parsed:
Acupuncture with Joe tomorrow at 2pm
Acupuncture at 2:00pm tomorrow with Joe
Acupuncture at 2:00pm // this should fine the next 2pm, either today, or if it is already passed then tomorrow, location is empty in this case
Acupuncture at 2:00pm tomorrow at Joe's // Location would be "Joe's"
Acupuncture next Monday at 2pm with Joe
Acupuncture w/ Joe on May 31st // location would be "Joe" date would be 2014-05-31 and time would be null
Acupuncture tomorrow afternoon // date would be 2014-05-31 and time would be "afternoon"
Date should always be precise, but if user enter ambiguous time try to put into category of: morning, afternoon, evening. If no time is entered it should be null.
21 freelancers are bidding on average $1048 for this job
Hi I work towards providing reliable, relevant and robust IT solutions at most competitive prices to my customers. I ensure 100% customer satisfaction so lets start Thanks
This is complex library that includes natural language processing to some extent. But I think I could get exisitng one and modify it to suit your needs. Regards.
yes we are ready for this work we completed more then 400 project 30 people are working in our team all are professional just waiting your reply
Greetings. I am to your order to do the parser. I have my own vps to make all testing. I can do it for $200 but the system don't allow me to put this quantity. A hug