How to detect a text's language? Make sure the text is long enough (at least a couple sentences) if you want good results.