Score: 1: The response is in the same language as the question
Score: 0: The response is in a different language than the question
The evaluation uses the langdetect library to detect the language of the text, with special handling for Spanish and Portuguese languages in the Equal Language Evaluator.