Open fkleedorfer opened 10 years ago
This is a good idea, but pending an implementation by @joestelmach you might want to try Moment.js. By far, it's the best JavaScript datetime library I've come across, and while it's parsing capabilities aren't as rich as Natty's, it certainly holds in own for interpreting free-form, absolute dates.
For parsing natural language dates, I only know of moment-natural which is not very versatile. Is there anything else for moment? Otherwise sugarjs and chrono give good results, but natty is way better.
Not that I know about (and you're way ahead of me).
Thanks and Congratulations on your highly useful library! I understand it is made with ANTLR, and I found out that a javascript generator target is in the works: https://theantlrguy.atlassian.net/wiki/display/ANTLR4/JavaScript+Target Have you thought about a javascript version of natty (which would be extremely useful for some scenarios)? How would one go about doing that? I thought about trying it, but I wasn't able to find any grammar files in your project. I have to admit that I haven't worked with ANTLR before so chances are that I missed something.