Detects the language of a given line of text using a probability score based on Bayes' rule.