Detects the language of text inputs and returns language codes with confidence scores for downstream analysis.