Sho0pi/naturaltime
🕒 Go library for parsing natural language time expressions with exceptional range support
This is a Go library that helps developers translate conversational phrases about time into precise date and time objects. You provide natural language inputs like "tomorrow at 3pm" or "from 2pm to 4pm tomorrow" and it outputs exact date and time values or ranges that can be used programmatically. It's intended for Go developers building applications that need to understand flexible time-related user inputs.
No commits in the last 6 months.
Use this if you are a Go developer building an application where users need to input dates and times using everyday language, and you need to convert these into structured time objects for processing.
Not ideal if you are not a Go developer or if you need to parse natural language text into something other than time expressions.
Stars
36
Forks
1
Language
Go
License
MIT
Category
Last pushed
Mar 11, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/nlp/Sho0pi/naturaltime"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
adbar/htmldate
Fast and robust date extraction from web pages, with Python or on the command-line
alvinwan/timefhuman
Extract datetimes and durations from natural language text as Python objects. Supports ranges,...
akoumjian/datefinder
Find dates inside text using Python and get back datetime objects
DanielJDufour/date-extractor
Extract dates from text
mike182uk/timestring
Parse a human readable time string into a time based value