ko-chrono
A library that finds dates and times in Korean sentences and converts them to JavaScript Date values.
What does it do?
Developers can enter a sentence such as ‘다음주 화요일 오후 3시’ (‘next Tuesday at 3 p.m.’) and get its date and time as a Date value. In chat messages, they can find the position of a recognized expression, and they can split a task sentence into a title and time. The library represents recurring schedules with RRULE and generates .ics calendar files with toICS. It returns alternative candidates for expressions with unclear morning or afternoon timing, or null when it cannot determine a result with confidence. It works in browsers and Node.
Key features
- Convert Korean date and time expressions to JavaScript Date values
- Extract time expressions and their positions in chat messages
- Split task sentences into titles and times
- Represent recurring schedules with RRULE and generate .ics files
- Return alternative interpretations for ambiguous expressions or null
- Use in browsers and Node without runtime dependencies