unicode_normalize
Normalize text to a Unicode normalization form (NFC, NFD, NFKC, NFKD) and report if the text changed.
Instructions
Normalize text to a Unicode normalization form (NFC/NFD/NFKC/NFKD).
NFC/NFD are canonical compose/decompose; NFKC/NFKD also fold compatibility
characters (ligatures, full-width, circled digits) to their plain forms.
changed is true when result differs from the input — i.e. the text was
not already in form. Returns {form, result, changed}.
Example: unicode_normalize("fi", "NFKC") -> result "fi" (fi ligature, ① -> 1)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form | No | Normalization form: NFC/NFD canonical compose/decompose; NFKC/NFKD also fold compatibility variants (ligatures, full-width, circled digits). Default 'NFC'. | NFC |
| text | Yes | Text to normalize. |