AFROSCOPE: A Framework for Studying the Linguistic Landscape of Africa
Authors: Sang Yun Kwon, AbdelRahim A. Elmadany, Muhammad Abdul-Mageed
Abstract
Language Identification (LID), the task of determining the language of a given text, is a fundamental preprocessing step for multilingual NLP. While recent work has expanded African LID, existing systems remain limited in both language coverage and fine-grained discrimination among closely related languages and varieties. We introduce AFROSCOPE, a unified framework for African LID that includes AFROSCOPE-DATA, a dataset covering 640 languages, and AFROSCOPE-MODELS, a suite of strong LID models with broad African language coverage. To address persistent confusions among related or geographically proximate languages, we propose a hierarchical classification approach leveraging AFROSCOPE-MIRROR, a specialized embedding model for targeted disambiguation. This approach improves macro-F1 by 4.55 points on a confusable-language subset compared to our strongest base model. We further analyze cross-lingual transfer and domain effects, showing how language-family structure, script compatibility, and domain coverage shape LID performance. Finally, we position African LID as an enabling technology for measuring Africa’s linguistic landscape in digital text and release AFROSCOPE-DATA and AFROSCOPE-MODELS online.