Detect the language of text.