Skip to content

research wafer inc duckling api

Caleb Buxton edited this page Jul 2, 2026 · 2 revisions

Duckling (Rust) API Surface

Research terrain map for the duckling Rust crate (v0.4.0) from wafer-inc/duckling. This subtree documents the complete public API as it exists in source, cross-verified against the actual Rust files.

Source root: wafer-inc/duckling@c96b068


Documents

File Description
Public Parse Functions The two public parse entry points (parse and parse_en), their full signatures, Context/Options defaults, crate type, and dependency notes.
Public Types All public types in detail: Entity, DimensionKind (14 variants), DimensionValue (14 variants), MeasurementValue, MeasurementPoint, TimeValue, TimePoint, IntervalEndpoints, and Grain — including Naive vs Instant time semantics and Mermaid diagrams.
Locale System The Locale/Lang/Region/Context/Options system: 49 Lang variants, supported region pairs per language, ranking classifier coverage, and the normalisation rules baked into Locale::new.

Clone this wiki locally