hangul.dev
The Korean alphabet as engineering marvel.
The Architecture
Hangul is not a collection of arbitrary symbols. It is a systematic encoding of the human vocal apparatus -- consonants shaped after articulatory organs, vowels derived from three cosmic elements. King Sejong created it in 1443 as a deliberate act of information design.
For developers, Hangul's Unicode block (U+AC00 to U+D7A3) is one of the most elegantly structured ranges in the entire Unicode standard. Every syllable can be algorithmically decomposed and recomposed.
// Hangul syllable formula
const syllable =
(initial * 21 + medial)
* 28 + final
+ 0xAC00;
// Decompose '한' (U+D55C)
const code = 0xD55C - 0xAC00;
const initial = code / (21 * 28) | 0; // ㅎ (18)
const medial = code / 28 % 21 | 0; // ㅏ (0)
const final = code % 28; // ㄴ (4)
The Consonants
Five base consonants map to five articulatory positions. Each shape is a diagram of the mouth producing its sound. Adding strokes creates aspiration; doubling creates tension. The system is generative.
The Vowels
All vowels derive from three cosmic elements: a dot representing heaven (·), a horizontal line for earth (ㅡ), and a vertical line for the upright human (ㅣ). Bright vowels place the stroke outward; dark vowels place it inward.
The Human Story
나랏말이 중국과 달라 문자와로 서르 사맛디 아니할쎄
"The sounds of our language differ from those of China, and cannot be communicated through Chinese characters."
-- Hunminjeongeum, 1446
King Sejong the Great recognized an injustice that seems obvious in hindsight: a nation whose people could not write was a nation whose voices were silenced. The Chinese character system, with its thousands of complex ideographs, was accessible only to the scholarly aristocracy.
In 1443, Sejong and the Hall of Worthies (집현전) completed what is arguably the most successful act of deliberate language engineering in human history. Twenty-eight letters, reducible to five basic consonant shapes and three vowel primitives. Learnable in a single day. Precise enough to encode every sound in Korean.
Today, Hangul's 11,172 possible syllable blocks are encoded in a contiguous Unicode range that preserves the original algorithmic logic. The formula (initial * 21 + medial) * 28 + final + 0xAC00 is both a programming convenience and a testament to Sejong's foresight: he designed a writing system so systematic that it could be encoded computationally centuries before computers existed.
October 9: Hangul Day (한글날). A national holiday celebrating the most deliberately designed alphabet on Earth.