Cangjie Decomposition Rules (取碼規則) Explained with Examples

The handful of rules that decide every Cangjie code, including head and body, single-unit characters, enclosures and keeping shapes whole, each shown with verified examples.

Key takeaways

  • Split a character in writing order: left before right, top before bottom, outside before inside.
  • Compound characters have a head (字首) and a body (字身). The head keeps first + last codes; the body keeps first + second + last.
  • Single-unit characters keep first, second, third and last: at most four codes.
  • No code exceeds five letters. Keep recognisable shapes whole instead of cutting them into strokes.

Step 1: find the parts in writing order

Every Cangjie code starts with a question: what are this character’s parts, in the order you write them? Chinese characters are written left to right, top to bottom and outside to inside, and Cangjie follows the same order.

CharacterCangjie codeRadicalsQuick
ABABAB
DDDDDD
WPWPWP
RRRRRRRR

In AB日月, 日 comes before 月. In WP田心, 田 sits on top of 心. When parts repeat, each is coded: RRR口口口, DDD木木木.

Step 2: decide whether it is single-unit or compound

A compound character (合體字) divides cleanly into two or more parts, side by side, stacked or enclosed. A single-unit character (獨體字) does not: its strokes cross or interlock so there is no clean division. 馬, 車, 東, 重 and 事 are single-unit; 明, 你 and 說 are compound.

Rule for compound characters: head and body

The first part of a compound character is its head (字首) and everything after it is its body (字身).

  • The head keeps at most 2 codes: its first and last.
  • The body keeps at most 3 codes: its first, second and last.

This is why the longest possible code is five letters. The rule shows most clearly when both parts are complex. The speech radical 言 is YMMR on its own, but as a head it keeps only YR. The body 兌 is CRHU and keeps CRU:

CharacterCangjie codeRadicalsQuick
YRCRUYRCRUYU
YMMRYMMRYR
CRHUCRHUCU

The same pattern is everywhere. 糸 (VIF) becomes VF as a head, and 巠 keeps its first, second and last codes, M V M, giving VFMVM女火一女一. The body of YRHHI卜口竹竹戈 is 射 (HHDI), which keeps HHI. In VSQF女尸手火, the body 馬 (SQSF) keeps SQF.

When the head is a single radical, it contributes one code: ONF人弓火, QMN手一弓, EM水一, PQMB心手一月.

Top-bottom characters

The same head/body logic applies vertically. The top part is the head. In DUP木山心, the head 相 (DBU) keeps first and last, D and U, and the body 心 adds P. In YTAP卜廿日心, the first division is 立 over the rest: 立 gives YT and the body 日心 gives AP. HBND竹月弓木 splits into its top (HB) and 子 (ND).

CharacterCangjie codeRadicalsQuick
DUPDUPDP
YTAPY廿TAPYP
HBNDHBNDHD

Rule for single-unit characters

Single-unit characters take their first, second, third and last radicals, up to four codes. Anything in between is dropped.

CharacterCangjie codeRadicalsQuick
SQSFSQSFSF
JWJJWJJJ
HJWGHJWGHG
DWDWDW
JLLNJLLNJN
WYIWYIWI

HJWG竹十田土 is written as a sequence of shapes that Cangjie reads as 竹 十 田 土. SQSF尸手尸火 keeps S Q S from the start and F (灬) from the end.

Enclosures: the frame comes first

For characters where one part surrounds another, the outside is the head. The enclosure 囗 is W in WIRM田戈口一 and WRBC田口月金; the gate 門 keeps AN in ANR日弓口 and ANCRU日弓金口山; the frame of BMR月一口 is B.

The walk radicals 辶 and 廴 are coded first, even though they are written last. So YYMR卜卜一口 is 辶 (Y) plus 言 (YMR), and NKLQ弓大中手 is 廴 (NK) plus 聿 (LQ). YTHU卜廿竹山 is Y plus 首 (THU).

CharacterCangjie codeRadicalsQuick
WIRMWIRMWM
WRBCWRBCWC
ANCRUANCRUAU
YYMRYYMRYR
NKLQNKLQNQ
YTHUY廿THUYU

Keep shapes whole

Choose the decomposition that uses whole, recognisable radicals rather than splitting a shape into loose strokes. MK一大 is 一 + 大, not 二 + 人, because 大 is a radical in its own right. QO手人 is Q + O. When two splits are possible, the one with fewer, larger components is usually correct.

Checking your answers

These rules produce the right code for the vast majority of characters, but Cangjie also has conventions for particular shapes that take practice, such as 海 (EOWY) and 電 (MBWU). When your answer doesn’t match, look the character up and compare how the dictionary split it. The mismatch usually teaches you a new auxiliary shape. For the classic troublemakers, see difficult Cangjie characters.

Frequently asked questions

What is the maximum length of a Cangjie code?

Five letters: two from the head (字首) and three from the body (字身).

Why does 言 become YR in 說 when 言 alone is YMMR?

As a head, a component keeps only its first and last codes. YMMR shortens to YR.

Is 辶 coded first or last?

First. 辶 and 廴 are treated as the head of the character even though they are written last, so 這 is YYMR.

What if a character can be split more than one way?

Prefer the split that follows writing order and keeps whole radicals. If you are still unsure, use the dictionary: the correct code will show you which split Cangjie uses.

← Learn Cangjie