adapt icon indicating copy to clipboard operation
adapt copied to clipboard

Make Dates (relative and explicit) core concepts of adapt

Open clusterfudge opened this issue 8 years ago • 1 comments

clusterfudge avatar Jun 12 '16 18:06 clusterfudge

I was thinking about this as well.

You might want to take a look at

https://github.com/scrapinghub/dateparser/tree/master/data/languagefiles

It's a bunch of YAML formatted language files for natural language parsing of dates. They've put in a bunch of work on it, and if you can use it for adapt that's great.

Being able to pass a function as an intent parser could be interesting. Not sure how that works with your code base, but if "dateparser.parse" returns None/False/[] then you know it's not a date intent.

I don't know how you check intents, so that might not work, and would certainly be less elegant then building a system using adapt, but it could work pretty well for quick hacks of all types.

traverseda avatar Jun 13 '16 19:06 traverseda