1. A method of representing a language comprising at least two words and at least one translation of a word sequence on a device having a processor and a memory, the method comprising: executing on the processor instructions configured to: store in the memory a word index comprising, for respective words of the language: the word stored at an index location in the word index, and a word mapping that identifies the index location of the word in the word index; and store in the memory a translation mapping identifying, for a word index sequence comprising at least one index location, the translation of the words respectively located at the index locations of the word index.