LangID as a computational task is usually attributed to Gold (1967), who sought to investigate language learnability from a language theory perspective.
its current form is much more recognizable in the work of Cavnar and Trenkle (1994), where the authors classified documents according to rank order statistics over byte n-grams between a document and a global language profile.