Language detection enhanced