s_languageWordBuckets
global · ui
- Address
0xb6e5b4· 4 bytes, up to0xb6e5b7- Type
void *- Meaning
- Points at the bucket array of the language word index, 12 bytes a bucket
- Confidence
- verified, proof one
- Finding
- ui/chatlanguage#choosing-the-substitute
Finding: Choosing the substitute in ui: languages in chat
A word that is not understood is replaced by a LanguageWords word of the same byte length in the same
language. The length key is the word's length capped at 18; when the language has no word of that
length the key falls by one until one exists, and a word with no match down to length 1 is dropped from
the line. The candidates of a key are in LanguageWords row order and the pick is the hash (computed
above) modulo their count, so the same word always gives the same substitute.
The derivation is in the doc.