Skip to main content

normalize

Function normalize 

Source
pub fn normalize(input: &str, options: Option<String>) -> Option<String>
Expand description

Deterministic prose-date normalization (“1980s” → 198X) as a JSON string.

Always returns a value for valid options (a noMatch object with a reason when nothing can be produced); undefined only for invalid options — malformed JSON, unknown keys, or out-of-domain values. An empty/whitespace options string means defaults. See NormalizeSummary for the object shape.