mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 09:20:08 +08:00
extract_url_language_and_stem tested the normalized language string with 'first_norm in SUPPORTED_LANGUAGE_PAIRS', but that constant is a set of frozensets, so the clause was always False. A regional variant not listed in _CANONICAL_LANGUAGES (e.g. /fr-be/, /en_US/) was therefore not treated as a language and bilingual pairings were missed. Test the normalized language against a flattened set of supported languages instead. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>