Live data from Hacker News

Show HN: Duckling – Open-source datetime expression parsing

duckling-lib.org

11–20 of 70 posts

Re: Show HN: Duckling – Open-source datetime expression parsing

#11
post #7

Earlier quoted context omitted.

Probably too much :) All our backend is Clojure, all our new web developments are in ClojureScript (with React and Om). The only places we're not using Clojure are iOS, Android and Raspberry/embedded linux. We're using Rust more and more for the latter.

Wow this is very interesting. I have been following Wit's progress since I am quite a geek for all kinds of automation and AI stuff. Would it be possible to port this into JavaScript using ClojureScript and use it on the client side?

Actually we are planning to port it to a language suitable for embedded use. Maybe Rust?

Re: Show HN: Duckling – Open-source datetime expression parsing

#16
post #15

Really cool project. Thanks for sharing the source. As an aside, I noticed it was renamed from "Picsou" ( https://github.com/wit-ai/duckling/commit/0d9f666ae4da114803... ) Were you worried about getting scrooged by Disney? :)

Ha! I was waiting for somebody to ask :)

The original name was Picsou (Uncle Scrooge's name in French) because the parsing strategy is super greedy. We liked the name, but when we decided to open source it we thought it may be hard to pronounce, so we switched to Duckling (keeping the duck link...).

Re: Show HN: Duckling – Open-source datetime expression parsing

#17
> Intervals (like June 12-13) I wrote a Python library to do things like

    >>> r = Recurrence('June-July 2014').intersect(Recurrence('Monday to Friday'))
    >>> datetime.date(2014, 6, 13) in r
    True
    >>> datetime.date(2014, 6, 14) in r
    False
If anyone is interested in hacking on it with me, send me an email and I'll try to get it up on github.

Re: Show HN: Duckling – Open-source datetime expression parsing

#20

I'm impressed. I thought I'd try it with `next wednesday at 20 to 3 in the afternoon`. It understood! It didn't understand if I used `afternon`. Perhaps as an improvement it could try selecting the most likely word from misspellings.

I don't even understand that. What time period is that meant to specify?
Post reply on HN