A plugin or package to parse English sentences for date and time?

I need to parse English sentences for time, Google Calendar style.

Examples of sentences:

“Meet John at 8am tomorrow”
“Leave for work in 15 minutes”

At this point, I don’t need to parse the sentences completely, I just need to figure out the time info.

Is there a package to do that, or do I need to write one using momentjs? Could not find anything.

That’s the realm of Cortana, Siri and the like. So you’ll need to use machine learning in order to parse arbitrary sentences.

Microsoft Azure Machine Learning can do something like that for you.

I don’t know if they have package but check out

Updated my original post.

Do you mean something like Chrono? There isn’t an Atmosphere based package available for this project, but it can be installed via npm.

1 Like

Chrono looks perfect for my needs, thank you!

A noob question: trying to use it on the client on Meteor 1.3 beta 12, like this:

import chrono from "chrono";

It says:

 SyntaxError: Unexpected token import

What am I doing wrong?

I did install using

npm install chrono-node

Maybe because you need to use

import chrono from 'chrono-node';


Also, install node packages through npm with the--save option like this:

npm install --save chrono-node

Otherwise it won’t appear in your dependencies, aka packages.json

1 Like


 npm install --save chrono-node


import chrono from 'chrono-node';

Same result.

I feel stupid, I did not add

meteor add ecmascript