Automatically detect the language of a text.