SerenitySoftware / cahoots

A Text Comprehension Engine in Python
MIT License
15 stars 3 forks source link

Rewrite the date parser to accept more natural language queries #112

Closed hickeroar closed 9 years ago

hickeroar commented 9 years ago

Should accept these and others:

now today tomorrow next week next year March 30, 2015 3 days after tomorrow 123,456 seconds until 2025 January 3, 1976 plus 876 hours

arithmetic should support '+' as well as 'plus.' Same goes for minus.

hickeroar commented 9 years ago

Created this branch to hold my work: https://github.com/hickeroar/cahoots/tree/date_parser_rewrite

hickeroar commented 9 years ago

Currently have it supporting comprehension and evaluation of:

Ex: - 1 hour from now - 300,293 seconds until 2016 - 2013-06-23 plus 47 years - January 1, 2015 - 3 years - yesterday - now - current time - last year - next week - today
hickeroar commented 9 years ago

Just got unit tests left to add.