-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Javascript version? #84
Comments
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). |
Moment.js is probably the best datetime library but if you need just a javascript date parser datejs is the best. |
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.
The text was updated successfully, but these errors were encountered: