Polyglot is a language identifier for detecting text documents containing text written in more than one language, and for identifying the languages therein.