Compliance cases

These are the 11,911 inputs a submission must normalize. Each output must match the expected text byte for byte. You can run the suite without reading it, or open any case to see its input and expected output.

NFC as UAX #15 defines it, pinned to Unicode 17.0.0: canonical decomposition, canonical ordering of combining marks, then canonical composition, with Hangul by arithmetic. The decomposition, combining class and composition tables are what make the Wasm big, so size is ranked on the gzipped download. The compliance suite has every line of NormalizationTest.txt, every other assigned code point, every quick-check Maybe and No character in context, targeted cases on exclusions, blocking, Hangul, long runs of marks and 16-byte boundaries, and seeded random text. A UAX #15 reference, ICU and Python agree on every answer.

Run the full compliance suite locally. Replace your-component.wasm with your compiled component. Download the suite

curl -fLo normalize_nfc.comply.wasm https://calculated.world/comply/normalize_nfc.wasm
npx qipok your-component.wasm --suite normalize_nfc.comply.wasm

All 11,911 cases

Case Name Expected Note Size
009050 regression/exclusion/forking Focused regression ⫝̸ U+2ADC is the one exclusion among the mathematical operators. 3 B
009051 regression/exclusion/musical symbols Focused regression 𝅗𝅥𝅘𝅥𝅮𝆹𝅥𝆺𝅥𝅯 U+1D160 goes from 4 bytes to 12, the largest growth there is. 16 B
009052 regression/exclusion/tibetan Focused regression གྷཀྵྲྀླྀ 12 B
009053 regression/exclusion/bengali and oriya Focused regression ড়ঢ়য়ଡ଼ଢ଼ 15 B
009054 regression/exclusion/gurmukhi Focused regression ਲ਼ਸ਼ਖ਼ਗ਼ਜ਼ਫ਼ 18 B
009055 regression/exclusion/not excluded: devanagari nnna Focused regression ऩ ऱ ऴ Only U+0958..U+095F are excluded. U+0929, U+0931 and U+0934 compose as usual. 20 B
009056 regression/non-starter decomposition/combining greek dialytika tonos Focused regression ̈́ U+0344 decomposes into two marks and never recomposes. 2 B
009057 regression/non-starter decomposition/dialytika tonos after iota Focused regression ΐ The two marks from U+0344 compose with the iota one after the other. 4 B
009058 regression/non-starter decomposition/dialytika tonos after a mark below Focused regression ΐ̣ U+0323 (class 220) sorts before both marks and blocks neither, so the iota still takes them both. 6 B
009059 regression/non-starter decomposition/tibetan vowel signs Focused regression ཱཱཱིྀུ All six pieces are marks (classes 129, 130 and 132), so they sort together. 9 B
009060 regression/non-starter decomposition/tibetan ii after a letter Focused regression ཀཱིི 9 B
009061 regression/composition/one mark Focused regression é 3 B
009062 regression/composition/two marks, two steps Focused regression ấ a + circumflex gives U+00E2, which then takes the acute. 5 B
009063 regression/composition/three steps Focused regression ᾤ 8 B
009064 regression/composition/composite plus mark Focused regression ấ A composite composes again without being decomposed. 4 B
009065 regression/composition/composite decomposed to recompose Focused regression ậ U+1EA1 must be taken apart: the result is a, dot below, circumflex, which composes to U+1EAD. 5 B
009066 regression/composition/composite with a lower mark after Focused regression ậ The dot below (220) sorts before the circumflex (230). 4 B
009067 regression/composition/marks out of order Focused regression ạ́ Reordered to dot below, acute; a takes the dot, and no composite exists for the acute after that. 5 B
009068 regression/composition/skips a mark it can't use Focused regression ậ 5 B
009069 regression/composition/leftover in the middle Focused regression ą̣́ Ogonek is class 202 and dot below 220, so the order holds; a takes the ogonek first, and U+0105 has no composite with dot below or acute. 7 B
009070 regression/composition/blocked by the same class Focused regression a̅̀ The overline has the grave's class (230), so the grave is blocked. 5 B
009071 regression/composition/not blocked by a lower class Focused regression à̛ The horn is class 216, lower than the grave's 230. 5 B
009072 regression/composition/composite blocked the same way Focused regression ạ̀̅́ 8 B
009073 regression/composition/blocked by a starter Focused regression a͏̀ U+034F COMBINING GRAPHEME JOINER is class 0. 5 B
009074 regression/composition/blocked by zero width joiner Focused regression e⟨U+200D⟩́ e⟨U+200C⟩́ 13 B
009075 regression/composition/blocked by a variation selector Focused regression e️́ 6 B
009076 regression/composition/two starters Focused regression ো Both halves are class 0. 6 B
009077 regression/composition/two starters apart Focused regression ে́া PRI #29: a mark between two starters blocks them. 8 B
009078 regression/composition/sinhala in two steps Focused regression ෝ 9 B
009079 regression/composition/sinhala out of order Focused regression ේා U+0DCA is class 9 and composes first; U+0DDA has no composite with U+0DCF. 9 B
009080 regression/composition/kannada Focused regression ೋ ೇ ೀ 23 B
009081 regression/composition/tamil Focused regression ொ ோ ௌ ஔ 27 B
009082 regression/composition/malayalam and oriya Focused regression ൊ ോ ൌ ୈ ୋ ୌ 41 B
009083 regression/composition/myanmar and balinese Focused regression ဦ ᬆ ᬻ ᭃ 27 B
009084 regression/composition/kana voicing Focused regression が ぱ ヴ ゞ あ゙ U+3099 and U+309A are class 8. Nothing composes with U+3042. 34 B
009085 regression/composition/arabic Focused regression آ أ ؤ إ ئ ۀ ۂ ۓ 39 B
009086 regression/composition/arabic marks reorder Focused regression أًّ Classes 33, 27, 230 sort to 27, 33, 230; the hamza still reaches the alef. 8 B
009087 regression/composition/cyrillic Focused regression й ё Ї ў Ӛ Ѷ 29 B
009088 regression/composition/supplementary composites Focused regression 𑂚 𑄮 𑍋 𑒻 𑖺 𑤸 Composites outside the BMP: Kaithi, Chakma, Grantha, Tirhuta, Siddham and Dives Akuru. 53 B
009089 regression/composition/unicode 16 composites Focused regression 𑏅 𖵨 𖵪 𐗉 𖄦 Tulu-Tigalari, Kirat Rai, Todhri and Gurung Khema, added in Unicode 16.0. 50 B
009090 regression/composition/unicode 17 marks Focused regression ạ᫠ a᫝̣᫏ آ𐻺 U+1AE0 (230), U+1ADD and U+10EFA (220) were added in Unicode 17.0. In the second word U+1ADD has the dot below's class and blocks it. Tables from 16.0 treat all three as starters. 25 B
009091 regression/composition/leading marks Focused regression ̣́e Marks with no starter before them are still put in order. 5 B
009092 regression/composition/only marks Focused regression ̴̖֮̀̕ 10 B
009093 regression/composition/stable order Focused regression ã́̂̀̄ Marks of one class keep their order. 11 B
009094 regression/composition/stable order below and above Focused regression x̣̤̥́̀̂ 13 B
009095 regression/composition/every class once, descending Focused regression x̴𖿰़゙्ְֱֲֳִֵֶַָֹֻּֽֿׁׂﬞًٌٍؘؙؚّْٰܑౕౖุ่ຸ່ཱིུ̡᷎̛᷺̖֚〮𝅭֮̀̕͜͝ͅ One mark of each combining class, highest first. NFC puts them in ascending order. 131 B
009096 regression/hangul/L V Focused regression 가 6 B
009097 regression/hangul/L V T Focused regression 각 9 B
009098 regression/hangul/LV T Focused regression 각 A precomposed LV syllable takes a trailing consonant. 6 B
009099 regression/hangul/LVT T Focused regression 각ᆨ An LVT syllable is full. Composing again is a classic bug: U+AC01 + U+11A8 is not U+AC02. 6 B

Where these rules come from

NFC is defined by UAX #15, Unicode Normalization Forms, and chapter 3.11 of the Unicode Standard, here pinned to Unicode 17.0.0. Every answer is agreed by a direct reading of UAX #15 over the pinned data files, ICU 78.3 and Python’s unicodedata.normalize; the suite’s own tests add Node.js’s String.prototype.normalize. Combining marks merge into the character before them, so each case also lists its code points.