GUIDE

Typing Thai: four levels, and no spaces between words

8 min readUpdated

Thai is typed on the Kedmanee layout, which uses all four levels of the keyboard — including the number row, which carries Thai characters rather than digits. Thai does not put spaces between words, so the space bar marks the end of a clause rather than the end of a word, and a keyboard chart of three unshifted rows shows under two thirds of what the script needs.

The space bar does something else here

Thai is written without spaces between words. Spaces exist and they mark the ends of clauses and sentences, so a Thai typist presses the space bar a small fraction as often as an English one does, and never to separate two words.

This has a consequence that reaches well beyond typing: working out where one word ends and the next begins is something the reader does, and something software has to be taught to do. Thai word segmentation is a genuinely hard problem with a research literature behind it, which is why search, spellchecking and line-breaking in Thai are all harder than they look.

For a typing tutor it raises an awkward question, and the honest answer is worth stating. The practice runs here present Thai words separated by spaces, which is not how Thai is written. It is a drill rather than a text: separating the words is what makes it possible to tell you which one you got wrong. The sample sentence on the Thai lessons page is written properly, without them, and reading it next to the drill is a fair picture of the difference.

Why a keyboard chart shows less for Thai

The script has 44 consonants, fifteen vowel symbols that combine into around 28 forms, and four tone marks. A level of a keyboard has about 30 usable keys. The arithmetic does not work, and Kedmanee's answer is to use every level it has: unshifted and shifted, across the letter block and the number row, with Thai characters rather than digits in the unshifted number row.

So the three unshifted rows a keyboard chart draws are a smaller share of Thai than they are of Russian. That is measurable rather than a matter of opinion, and the table below measures it: the share of the distinct characters in each language's own practice words that the rendered chart actually produces.

Thai is near the bottom, and so is every other abugida here for the same structural reason. Russian and Hebrew are at the top because their alphabets fit a level of a keyboard with room to spare — which is exactly the property Thai does not have.

What three rows of unshifted keys reach, lowest and highest
LanguageLayoutCharacters the chart produces
KhmerKhmer NIDA22 of 41
BengaliBengali InScript22 of 38
GujaratiGujarati InScript24 of 40
MalayalamMalayalam InScript22 of 36
ThaiKedmanee23 of 38
KannadaKannada InScript26 of 42
HebrewHebrew QWERTY26 of 26
Korean2-Set Hangul IME62 of 62
RussianЙЦУКЕН25 of 25
Counted over the distinct characters each language's own practice words use, punctuation and digits excluded. 35 languages here ship a key map; the six with the least coverage are all abugidas, where a consonant carries vowel signs and the inventory outgrows a keyboard level.

Vowels that are written before the consonant they follow

Five Thai vowels are written to the left of the consonant they are pronounced after. A word beginning with one of them starts, visually and in typing order, with a vowel that is spoken second.

It is not an edge case: 19 of the 51 Thai practice words here begin with one, including some of the most common words in the language — และ, ใน, เป็น, ไม่, ให้.

The good news for a typist is that you type what you see. Thai text is stored and typed in the order it is drawn, so a leading vowel is simply the first key you press, and no reordering is happening in your head or in the software. The reordering is between the writing and the pronunciation, which is a reading problem rather than a typing one.

Other vowels sit above or below the consonant, and tone marks stack above them. Those are typed after the consonant they attach to, so the sequence and the visual arrangement come apart in the other direction — two or three keystrokes produce a cluster that occupies one horizontal position.

Kedmanee and Pattachote

Kedmanee is the standard, and the one these lessons teach. It is what is sold, what is installed, and what a Thai office runs on.

Pattachote is the alternative, designed in the 1960s to distribute the work more evenly between the hands and fingers than Kedmanee does. It is more efficient and it lost, which by now is a familiar sentence: it is the same story as Dvorak against QWERTY, Sebeolsik against Dubeolsik, and Turkey's F-keyboard against its Q-keyboard.

The pattern is consistent enough to be worth naming. A layout designed after a standard is established has to be enough better to overcome every keyboard already in the world, and no layout has ever been that much better. Learn the standard one.

Questions

Does Thai really have no spaces between words?

None. Spaces mark the ends of clauses and sentences instead, so the space bar does a different job from the one it does in English. Finding word boundaries is left to the reader — and to software, where Thai word segmentation is a well-known hard problem.

What is the Kedmanee layout?

The standard Thai keyboard. Thai has far more characters than one level of a keyboard has keys, so Kedmanee uses all four levels — shifted and unshifted, across the letters and the number row — and the unshifted number row carries Thai characters rather than digits.

Why does the keyboard guide not show every Thai character?

Because it draws the three unshifted letter rows, and Thai does not fit in them. Those rows produce 23 of the 38 distinct characters the Thai practice words use — the rest are on the shifted level. For Russian or Hebrew the same three rows cover the whole alphabet.

Do I type the vowel before or after the consonant?

In the order it is written. Five Thai vowels are drawn to the left of the consonant they are pronounced after, and those are typed first, exactly as they appear. Vowels drawn above or below are typed after the consonant. You type what you see.

Should I learn Pattachote instead?

Almost certainly not. It is the more efficient design and it is not what anyone has installed, which is the same trade Dvorak offers against QWERTY. Kedmanee is on every keyboard in Thailand, and that is worth more than the efficiency.

Put it into practice

The language this guide is about: Thai.

Reading about typing is the smaller half. The beginner course starts on the home row, the speed test will tell you where you stand, and all of it works in 86 languages without an account.

Start in Welsh, Macedonian, Italian, Georgian or Croatian — or pick from all 86.

← All guides