Releases: nhannht/Khac
Releases · nhannht/Khac
Release list
Khac 0.1.0 - fourteen languages
First release.
Khắc parses natural-language dates and times in fourteen languages: English, Vietnamese, Chinese, Japanese, German, Dutch, Swedish, French, Spanish, Italian, Portuguese, Finnish, Russian, and Ukrainian. One shared engine; each locale is vocabulary data, not a parser class.
Numbers
swift test: 364 tests, 0 failures- Oracle: 1927 / 1988 cases ported from wanasit/chrono's own test suite, case by case, held by per-locale ratchet floors that only go up
- Full marks: EN 561/561, ZH 168/168, JA 84/84, FI 77/77, ES 75/75, PT 60/60, SV 41/41
- Every deferred case is an expected failure with a written reason in the suite, never a skip. Most are named timezone abbreviations ("2pm EST"), which no locale resolves yet.
- Vietnamese is verified by a native speaker and deliberately fixes five places where chrono's Vietnamese is wrong (documented in the README, marked KHAC-FIX in source)
Install
.package(url: "https://github.com/nhannht/Khac.git", from: "0.1.0")Requires Swift 5.10, macOS 12, iOS 15, tvOS 15, or watchOS 8.
Known limitations are listed plainly in the README. Prior art and test oracle: wanasit/chrono (MIT).