How WoW's language cipher works
World of Warcraft doesn't translate chat between the Horde and the Alliance, and it doesn't scramble it at random either. Every word you type is swapped for a fixed made-up word from your language, chosen by a hash of the word. The same word always turns into the same thing, which is why a Horde "lol" is always "kek" to the Alliance and an Alliance "lol" is always "bur" to the Horde.
Step by step
- The message is split on spaces. Each word is handled on its own; nothing carries over from the word before it.
- The word is hashed with SStrHash, Blizzard's string hash, ignoring capitals. Punctuation stays part of the word.
- The game takes the speaker's language's list of words that are as long as the typed word (words of 18 or more letters share one list). If the language has no words of that length, it uses the next shorter list.
- It picks the word at position hash mod list size.
- Capitals are copied from what was typed, letter by letter: "LOL" gives "KEK", "Lol" gives "Kek".
- A listener with 300 skill in the language sees the original text. The other faction has 0 skill in your languages, so they always see the swap.
The word lists come from the game client's LanguageWords table: an ID, a language and a word per row. The lists keep the table's order, which matters, because the position picked is a position in that order.
Worked example: "lol"
SStrHash("lol") is 4160084056. Orcish has 12 three-letter words ("Lok", "Tar", "Kaz", "Ruk", "Kek", "Mog", "Zug", "Gul", "Nuk", "Aaz", "Kil", "Ogg"). 4160084056 mod 12 is 4, and word 4 (counting from 0) is "kek", so the Alliance sees "kek". Common has 13 three-letter words; 4160084056 mod 13 is 11, which is "bur", so the Horde sees "bur".
It isn't random, and it doesn't depend on the letters before it
A long-running belief among players was that the scramble can't be worked out because the result depends on what came before. It doesn't. Each word is hashed alone: "lol" shows as "kek"; "haha lol" shows as "zaga kek"; "lol you are dead lol" shows as "kek ogg kaz zaga kek". What does change the result is the word itself, capitals aside: "lol!" is a different word to the hash than "lol", so it shows as "kagg".
Why you can't read it back exactly
The swap is many-to-one. Orcish has only 12 three-letter words, so every three-letter word anyone types lands on one of them: 216 of the 40,000 most common English words become "kek". Going forwards is exact, which is why Burkek can tell you what to type. Going backwards is a guess; the chat decoder ranks the likeliest words, chat shorthand like "lol" first.
The languages
| Language | Faction | Spoken by | Words | Letters | Same list as |
|---|---|---|---|---|---|
| Common | Alliance | every Alliance race | 124 | 1–12 | Gutterspeak |
| Darnassian | Alliance | Night Elves | 102 | 1–17 | — |
| Dwarvish | Alliance | Dwarves | 112 | 1–17 | — |
| Gnomish | Alliance | Gnomes | 128 | 1–11 | — |
| Orcish | Horde | every Horde race | 100 | 1–13 | — |
| Taurahe | Horde | Tauren | 105 | 1–15 | — |
| Troll | Horde | Trolls | 79 | 1–9 | — |
| Gutterspeak | Horde | Undead | 124 | 1–12 | Common |
What's confirmed
Horde "lol" to "kek" and Alliance "lol" to "bur" are confirmed in game, and the formula above reproduces both from the client's own table. Every other result on this site is a prediction from the same data and formula. Later retail versions changed the formula to include the speaker's language skill; the Classic data matches the original one.
Sources: the LanguageWords table and the ChatTranslate function as documented on wowdev.wiki.
Guides
- How the language cipher works
- Chat decoder: what did they type?
- What "kek" means
- What "bur" means