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
Clear

5,928 of 11,911 cases

Case Name Expected Note Size
003795 unicode/part1/U+FF5C NormalizationTest.txt |␊| Line 15020: FULLWIDTH VERTICAL LINE. Its distinct columns, one per line. 5 B
003796 unicode/part1/U+FF5D NormalizationTest.txt }␊} Line 15021: FULLWIDTH RIGHT CURLY BRACKET. Its distinct columns, one per line. 5 B
003797 unicode/part1/U+FF5E NormalizationTest.txt ~␊~ Line 15022: FULLWIDTH TILDE. Its distinct columns, one per line. 5 B
003798 unicode/part1/U+FF5F NormalizationTest.txt ⦅␊⦅ Line 15023: FULLWIDTH LEFT WHITE PARENTHESIS. Its distinct columns, one per line. 7 B
003799 unicode/part1/U+FF60 NormalizationTest.txt ⦆␊⦆ Line 15024: FULLWIDTH RIGHT WHITE PARENTHESIS. Its distinct columns, one per line. 7 B
003800 unicode/part1/U+FF61 NormalizationTest.txt 。␊。 Line 15025: HALFWIDTH IDEOGRAPHIC FULL STOP. Its distinct columns, one per line. 7 B
003801 unicode/part1/U+FF62 NormalizationTest.txt 「␊「 Line 15026: HALFWIDTH LEFT CORNER BRACKET. Its distinct columns, one per line. 7 B
003802 unicode/part1/U+FF63 NormalizationTest.txt 」␊」 Line 15027: HALFWIDTH RIGHT CORNER BRACKET. Its distinct columns, one per line. 7 B
003803 unicode/part1/U+FF64 NormalizationTest.txt 、␊、 Line 15028: HALFWIDTH IDEOGRAPHIC COMMA. Its distinct columns, one per line. 7 B
003804 unicode/part1/U+FF65 NormalizationTest.txt ・␊・ Line 15029: HALFWIDTH KATAKANA MIDDLE DOT. Its distinct columns, one per line. 7 B
003805 unicode/part1/U+FF66 NormalizationTest.txt ヲ␊ヲ Line 15030: HALFWIDTH KATAKANA LETTER WO. Its distinct columns, one per line. 7 B
003806 unicode/part1/U+FF67 NormalizationTest.txt ァ␊ァ Line 15031: HALFWIDTH KATAKANA LETTER SMALL A. Its distinct columns, one per line. 7 B
003807 unicode/part1/U+FF68 NormalizationTest.txt ィ␊ィ Line 15032: HALFWIDTH KATAKANA LETTER SMALL I. Its distinct columns, one per line. 7 B
003808 unicode/part1/U+FF69 NormalizationTest.txt ゥ␊ゥ Line 15033: HALFWIDTH KATAKANA LETTER SMALL U. Its distinct columns, one per line. 7 B
003809 unicode/part1/U+FF6A NormalizationTest.txt ェ␊ェ Line 15034: HALFWIDTH KATAKANA LETTER SMALL E. Its distinct columns, one per line. 7 B
003810 unicode/part1/U+FF6B NormalizationTest.txt ォ␊ォ Line 15035: HALFWIDTH KATAKANA LETTER SMALL O. Its distinct columns, one per line. 7 B
003811 unicode/part1/U+FF6C NormalizationTest.txt ャ␊ャ Line 15036: HALFWIDTH KATAKANA LETTER SMALL YA. Its distinct columns, one per line. 7 B
003812 unicode/part1/U+FF6D NormalizationTest.txt ュ␊ュ Line 15037: HALFWIDTH KATAKANA LETTER SMALL YU. Its distinct columns, one per line. 7 B
003813 unicode/part1/U+FF6E NormalizationTest.txt ョ␊ョ Line 15038: HALFWIDTH KATAKANA LETTER SMALL YO. Its distinct columns, one per line. 7 B
003814 unicode/part1/U+FF6F NormalizationTest.txt ッ␊ッ Line 15039: HALFWIDTH KATAKANA LETTER SMALL TU. Its distinct columns, one per line. 7 B
003815 unicode/part1/U+FF70 NormalizationTest.txt ー␊ー Line 15040: HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK. Its distinct columns, one per line. 7 B
003816 unicode/part1/U+FF71 NormalizationTest.txt ア␊ア Line 15041: HALFWIDTH KATAKANA LETTER A. Its distinct columns, one per line. 7 B
003817 unicode/part1/U+FF72 NormalizationTest.txt イ␊イ Line 15042: HALFWIDTH KATAKANA LETTER I. Its distinct columns, one per line. 7 B
003818 unicode/part1/U+FF73 NormalizationTest.txt ウ␊ウ Line 15043: HALFWIDTH KATAKANA LETTER U. Its distinct columns, one per line. 7 B
003819 unicode/part1/U+FF74 NormalizationTest.txt エ␊エ Line 15044: HALFWIDTH KATAKANA LETTER E. Its distinct columns, one per line. 7 B
003820 unicode/part1/U+FF75 NormalizationTest.txt オ␊オ Line 15045: HALFWIDTH KATAKANA LETTER O. Its distinct columns, one per line. 7 B
003821 unicode/part1/U+FF76 NormalizationTest.txt カ␊カ Line 15046: HALFWIDTH KATAKANA LETTER KA. Its distinct columns, one per line. 7 B
003822 unicode/part1/U+FF77 NormalizationTest.txt キ␊キ Line 15047: HALFWIDTH KATAKANA LETTER KI. Its distinct columns, one per line. 7 B
003823 unicode/part1/U+FF78 NormalizationTest.txt ク␊ク Line 15048: HALFWIDTH KATAKANA LETTER KU. Its distinct columns, one per line. 7 B
003824 unicode/part1/U+FF79 NormalizationTest.txt ケ␊ケ Line 15049: HALFWIDTH KATAKANA LETTER KE. Its distinct columns, one per line. 7 B
003825 unicode/part1/U+FF7A NormalizationTest.txt コ␊コ Line 15050: HALFWIDTH KATAKANA LETTER KO. Its distinct columns, one per line. 7 B
003826 unicode/part1/U+FF7B NormalizationTest.txt サ␊サ Line 15051: HALFWIDTH KATAKANA LETTER SA. Its distinct columns, one per line. 7 B
003827 unicode/part1/U+FF7C NormalizationTest.txt シ␊シ Line 15052: HALFWIDTH KATAKANA LETTER SI. Its distinct columns, one per line. 7 B
003828 unicode/part1/U+FF7D NormalizationTest.txt ス␊ス Line 15053: HALFWIDTH KATAKANA LETTER SU. Its distinct columns, one per line. 7 B
003829 unicode/part1/U+FF7E NormalizationTest.txt セ␊セ Line 15054: HALFWIDTH KATAKANA LETTER SE. Its distinct columns, one per line. 7 B
003830 unicode/part1/U+FF7F NormalizationTest.txt ソ␊ソ Line 15055: HALFWIDTH KATAKANA LETTER SO. Its distinct columns, one per line. 7 B
003831 unicode/part1/U+FF80 NormalizationTest.txt タ␊タ Line 15056: HALFWIDTH KATAKANA LETTER TA. Its distinct columns, one per line. 7 B
003832 unicode/part1/U+FF81 NormalizationTest.txt チ␊チ Line 15057: HALFWIDTH KATAKANA LETTER TI. Its distinct columns, one per line. 7 B
003833 unicode/part1/U+FF82 NormalizationTest.txt ツ␊ツ Line 15058: HALFWIDTH KATAKANA LETTER TU. Its distinct columns, one per line. 7 B
003834 unicode/part1/U+FF83 NormalizationTest.txt テ␊テ Line 15059: HALFWIDTH KATAKANA LETTER TE. Its distinct columns, one per line. 7 B
003835 unicode/part1/U+FF84 NormalizationTest.txt ト␊ト Line 15060: HALFWIDTH KATAKANA LETTER TO. Its distinct columns, one per line. 7 B
003836 unicode/part1/U+FF85 NormalizationTest.txt ナ␊ナ Line 15061: HALFWIDTH KATAKANA LETTER NA. Its distinct columns, one per line. 7 B
003837 unicode/part1/U+FF86 NormalizationTest.txt ニ␊ニ Line 15062: HALFWIDTH KATAKANA LETTER NI. Its distinct columns, one per line. 7 B
003838 unicode/part1/U+FF87 NormalizationTest.txt ヌ␊ヌ Line 15063: HALFWIDTH KATAKANA LETTER NU. Its distinct columns, one per line. 7 B
003839 unicode/part1/U+FF88 NormalizationTest.txt ネ␊ネ Line 15064: HALFWIDTH KATAKANA LETTER NE. Its distinct columns, one per line. 7 B
003840 unicode/part1/U+FF89 NormalizationTest.txt ノ␊ノ Line 15065: HALFWIDTH KATAKANA LETTER NO. Its distinct columns, one per line. 7 B
003841 unicode/part1/U+FF8A NormalizationTest.txt ハ␊ハ Line 15066: HALFWIDTH KATAKANA LETTER HA. Its distinct columns, one per line. 7 B
003842 unicode/part1/U+FF8B NormalizationTest.txt ヒ␊ヒ Line 15067: HALFWIDTH KATAKANA LETTER HI. Its distinct columns, one per line. 7 B
003843 unicode/part1/U+FF8C NormalizationTest.txt フ␊フ Line 15068: HALFWIDTH KATAKANA LETTER HU. Its distinct columns, one per line. 7 B
003844 unicode/part1/U+FF8D NormalizationTest.txt ヘ␊ヘ Line 15069: HALFWIDTH KATAKANA LETTER HE. Its distinct columns, one per line. 7 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.