1. A computer implemented method for enhancing language detection in short communications, comprising: storing a short communication in an element of a line cache accessible to an application executing in a data processing system, the element being an element in a set of elements in the line cache; assembling a compound text from contents of a subset of the elements of the line cache; receiving a language identifier (language ID) for the compound text from a language detection algorithm; storing the language ID in a language cache element of a language ID cache accessible to the application, the language ID cache including a set of language cache elements; and determining, using contents of a subset of language cache elements, a language of the short communication.