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.
6. The computer implemented method of claim 1 , wherein determining the language of the short communication further comprises: comparing the contents of the subset of language cache elements, and when the contents are identical in each language cache element in the subset of language cache elements, setting that content as the language of the short communication.