AfroScope: A Framework for Studying the Linguistic Landscape of Africa
Sang Yun Kwon, AbdelRahim Elmadany, Muhammad Abdul-Mageed
TL;DR
AfroScope tackles the challenge of language identification in Africa's highly diverse linguistic landscape by building AfroScope-Data with 713 languages and AfroScope-Models trained on this data. It introduces Mirror-Serengeti for hierarchical disambiguation to resolve fine-grained confusions among related varieties and analyzes cross-lingual transfer and domain effects to guide robust deployment. The results show data-size thresholds, domain and script influences, and substantial gains from targeted disambiguation (average macro-F1 improvement of +4.55 on confusable groups). The resources and insights enable scalable measurement of Africa's linguistic landscape and offer practical guidance for building inclusive, robust African NLP systems, while noting limitations such as code-switching and metadata dependence that warrant future work.
Abstract
Language Identification (LID) is the task of determining the language of a given text and is a fundamental preprocessing step that affects the reliability of downstream NLP applications. While recent work has expanded LID coverage for African languages, existing approaches remain limited in (i) the number of supported languages and (ii) their ability to make fine-grained distinctions among closely related varieties. We introduce AfroScope, a unified framework for African LID that includes AfroScope-Data, a dataset covering 713 African languages, and AfroScope-Models, a suite of strong LID models with broad language coverage. To better distinguish highly confusable languages, we propose a hierarchical classification approach that leverages Mirror-Serengeti, a specialized embedding model targeting 29 closely related or geographically proximate languages. This approach improves macro F1 by 4.55 on this confusable subset compared to our best base model. Finally, we analyze cross linguistic transfer and domain effects, offering guidance for building robust African LID systems. We position African LID as an enabling technology for large scale measurement of Africas linguistic landscape in digital text and release AfroScope-Data and AfroScope-Models publicly.
