# YES stroke alphabetical order

The YES stroke alphabetical order (一二三漢字筆順排檢法), also called YES stroke-order sorting, briefly YES order or YES sorting, is a Chinese character sorting method based on a stroke alphabet and stroke orders. It is a simplified stroke-based sorting method free of stroke counting and grouping.
"YES" in the English name is the acronym of "Yi Er San", the pinyin expression of the Chinese name. The Chinese name "Yi Er San" (一二三; literally "one, two, three") is in turn formed by the first three of all the Chinese characters in YES order (because stroke "一" lies at the top of the alphabet).
YES order has been applied to the indexing of Xinhua Character Dictionary and Xiandai Hanyu Word Dictionary. In this joint index the user can look up a Chinese character alphabetically to find its pinyin and Unicode, in addition to the page numbers in the two popular dictionaries.

## Stroke alphabet

In the Oxford Advanced Learner's Dictionary, the word alphabet is defined as "a set of letters or symbols in a fixed order used for writing a language". The YES "alphabet" is a list of Chinese character strokes in the order of
for writing and sorting Chinese. This stroke alphabet is built on the basis of Unicode CJK Strokes and the Standard of Chinese Character Bending Strokes of the GB13000.1 Character Set. There are in total 30 strokes, sorted by the standard basic stroke order of “heng (橫, 横, 一), ti (提, ㇀), shu (豎, 竖, 丨), pie (撇, 丿), dian (點, 点, 丶), na (捺, ㇏)” and the bending points order of “zhe (折), wan (彎, 弯) and gou (鉤, 钩)”.
The English name is formed by the initial Pinyin letters of each character in the Chinese name, similar to the naming of CJK strokes in Unicode, i.e., H: heng, T: ti/tiao, S: shu, P: pie, D: dian, N: na; z: zhe, w: wan and g: gou.
YES stroke names and examples :
| Stroke | English name | Chinese name | Example |
| ㇐ | H | 横 | First stroke of 十First stroke of 七 |
| ㇕ | HzS | 横折竖 | • Second stroke of 口 • First stroke of 敢 |
| ㇅ | HzSzH | 横折竖折横 | • Second stroke of 凹 |
| ㇎ | HzSzHzS | 横折竖折横折竖 | • Fourth stroke of 凸 |
| ㇡ | HzSzHzSg | 横折竖折横折竖钩 | • First stroke of 乃 • Fifth stroke of 杨 |
| ㇋ | HzSzHzP | 横折竖折横折撇 | • Second stroke of 及 • Fifth stroke of 延 |
| ㇊ | HzSzT | 横折竖折提 | • Second stroke of 计 • Second stroke of 鸠鳩 |
| ㇍ | HzSwH | 横折竖弯横 | • Second stroke of 朵 • Fifth stroke of 投 |
| ㇈(乙) | HzSwHg | 横折竖弯横钩 | • Second stroke of 几 • Last stroke of 亿 |
| ㇆ | HzSg | 横折竖钩 | • Second stroke of 同 • First stroke of 也 |
| ㇇(乛) | HzP | 横折撇 | • First stroke of 又 • Third stroke of 寳 |
| ㇌ | HzPzPg | 横折撇折撇钩 | • First stroke of 陽 • Ninth stroke of 部 |
| | HzNg | 横折捺钩 | • First stroke of 飞 • Second stroke of 风 |
| ㇀ | T | 提 | • Third stroke of 提 • Third stroke of 堆 • Third stroke of 江 |
| ㇑ | S | 竖 | • Second stroke of 十 • Second stroke of 五 |
| ㇗(㇜) | SzH | 竖折横 | • Second stroke of 山 • Second stroke of 车 |
| ㇞ | SzHzS | 竖折横折竖 | • First stroke of 鼎 • Fourth stroke of 吳 |
| ㇉ | SzHzSg | 竖折横折竖钩 | • Second stroke of 马 • Third stroke of 弓 |
| ㄣ | SzHzP | 竖折横折撇 | • Third stroke of 专 • Seventh stroke of 奊 |
| ㇙ | SzT | 竖折提 | • Third stroke of 长 • First stroke of 以 |
| ㇄ | SwH | 竖弯横 | • Fourth stroke of 四 • Fifth stroke of 西 |
| ㇟ | SwHg | 竖弯横钩 | • Third stroke of 己 • Last stroke of 电 • Second stroke of 心 |
| ㇚ | Sg | 竖钩 | • First stroke of 小 • Second stroke of 了 |
| ㇓ | P | 撇 | • First stroke of 千 • First stroke of 人 • First stroke of 儿 |
| ㇜ | PzT | 撇折提 | • Sixth stroke of 私 • First and second strokes of 红 |
| ㇛ | PzD | 撇折点 | • First stroke of 女 • First, Second and third strokes of 巡 |
| ㇢ | Pg | 撇钩 | • Second stroke of 犹 • First stroke of 乄 |
| ㇔ | D | 点 | • First and second strokes of 河 • First and second strokes of 家 |
| ㇏(〇) | N | 捺 | • Second stroke of 人 • Last stroke of 边 • 〇, Last stroke of 㔔 |
| ㇂(㇃) | Ng | 捺钩 | • Second stroke of 戈 • Fourth stroke of 成 • Second stroke of 心 in Regular font |

## Stroke order

Strokes are the most basic writing units of Chinese. Chinese characters are written stroke by stroke in a certain order. The standard stroke orders of Taiwan and the China mainland are quite similar. For example, the stroke orders of the different characters in "一二三笔顺排检法 一二三筆順排檢法" are:
where the stroke order of each character is a string of strokes put in brackets. In the rare cases where more than one glyph or stroke order exist for a Chinese character, YES follows the fonts and stroke order in the Standard of GB13000.1 Character Set Chinese Character Order (Stroke-Based Order) in its current implementations, because this standard covers all the 20,902 Unicode CJK characters and has a larger user population. Theoretically, any standard of stroke order can be used in YES.

## YES sorting

With the knowledge of stroke alphabet and stroke order, the user is now ready to sort (or look up) Chinese characters and words alphabetically.

### Sorting of characters

To arrange two Chinese characters into YES order, the user follows the same rules of Latin alphabetical order. First compare the first strokes of the stroke orders of the two characters. If they are different, arrange the characters according to the strokes' order in the alphabet, for example, "土 (㇐㇑㇐, earth)" comes before "日 (㇑㇕㇐㇐, sun)", because the initial stroke "㇐" is before initial stroke "㇑" in the alphabet. If the first strokes are the same, compare the second strokes of both sides, and so on, until a pair of strokes that are not the same is found and the Chinese characters are ordered accordingly, for example, "土 (㇐㇑㇐)" comes before "木 (㇐㇑㇓㇏)" because the third stroke "㇐" precedes "㇓". If the last stroke of one of the characters is compared and the strokes on both sides are again the same, then the shorter stroke order string comes first, for example, "二 (一 一)" comes before "三 (一 一 一)".
The YES order of the different characters in "一二三笔顺排检法 一二三筆順排檢法" is:

### Sorting of words

Words of multiple characters are sorted by their first characters in YES order. If the first characters are the same, then check the second characters, and so on. Non-Chinese characters appear after Chinese characters in alphabetical/Unicode order. For example,

## Applications

YES order has been applied to the compilation of several books and lists, including:
* 一二三笔顺检字手册 (Handbook of YES Stroke-Order Sorting for Chinese Characters) (in Chinese, a pocket book of 276 pages with a joint index for all the 13,000 plus different characters in Xinhua Dictionary and Xiandai Hanyu Cidian).
* The YES-CEDICT Chinese Dictionary (一二三漢英大詞典, Trial Edition, Sorted by Traditional Chinese, a Chinese–English dictionary of over 110,000 word entries).
* The YES-CEDICT Chinese Dictionary (一二三汉英大词典, Trial Edition, Sorted by Simplified Chinese, a Chinese–English dictionary of over 110,000 word entries).
* CJK Unified Ideographs (YES order) (list).
* Stroke orders of CJK Unified Ideographs (YES order) (a list with dictionary information).

## Advantages

Comparing with traditional stroke-based sorting, the advantages of YES include: (a) No stroke counting and grouping (such as, into the heng-shu-pie-dian-zhe 5 groups) is needed. (b) The employment of stroke alphabetical order. (c) Free of labelling.
According to experimental results, YES's one-tiered stroke-order sorting is more accurate than the traditional two-tiered stroke-count-stroke-order sorting. For example, in the traditional method, the 9 characters of "夕夊夂久么勺凡丸及" are not sortable, because they are all of 3 strokes and share the same stroke order code of 354 (pie-zhe-dian, 撇-折-点, ㇓㇕㇔). The YES method can sort them into 6 groups "及/凡丸/勺/夕/夊夂久/么". The code duplicating rate (重码率) of the traditional method on the 20,902 CJK characters set is 10.31%. And in YES order, it is reduced to 2.75%. The maximal number of characters sharing a code is reduced to 4, such as 甲 曱 叶 申. (Duplicating code characters, i.e., characters sharing a stroke order code, are sorted by the positions of the starting and ending points of corresponding strokes in the order of higher before lower and left before right.)