Alphabet and word encodings in natural languages