#193 · Primary category: NLP Tools & Text Processing

Sherlock

datetime event-parser javascript natural-language-processing nlp regex

Natural-language event parser for Javascript

Project last updated:07/06/23

GitHub Stars

561

Forks

33

Contributors

4

License

MIT

Why we included this project

Sherlock is a small JavaScript library that converts a sentence like 'Lunch with Dana next Friday at noon' into a structured event object with a title, start and end dates, and an all-day flag. It handles times, days, and date ranges in common US English formats, so you don't need to build your own parser for typical calendar input. The optional Watson layer adds pre- and post-processing hooks, letting you rewrite the input before parsing or attach extra fields to the result, which is useful for app-specific validation or metadata. It installs via npm and stays light on dependencies, making it a practical choice for calendar, scheduling, or task-management features where you want natural-language input without a full NLP stack. For a focused date-parsing need, it's a pragmatic fit.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category