Detect dominant language

Determines the dominant language of the input text.