Why this matters now
Ask a mainstream voice assistant a question in Yoruba, Hausa or Igbo and the results are often disappointing. Nigeria alone has hundreds of languages, and the continent has a large fraction of the world's total linguistic diversity. Yet most of these languages are what researchers call low-resource: there is little digitised text, few annotated datasets and limited tooling.
This is not merely an academic gap. When health information, financial services, agricultural advice and government services move onto AI-powered channels, people who do not speak a well-supported language get a worse experience or are excluded entirely. In health tech, I have seen how much language affects whether a patient understands and follows guidance. A chatbot that only works in English quietly filters out a large part of the population it claims to serve.
Large multilingual models have improved the picture, but they do not solve it on their own. Their training data still skews heavily towards high-resource languages, and their performance on African languages is uneven.
Community-first research: the Masakhane model
Some of the most important progress has come from grassroots communities rather than big labs. Masakhane, whose name means "we build together" in isiZulu, is a pan-African research community focused on NLP for African languages by Africans. Their paper on participatory research for low-resourced machine translation argued that involving native speakers, translators and local researchers across the whole pipeline, not just as annotators, produces better data and more relevant research questions.
That philosophy resonates with my own experience leading the Omdena UNILAG Chapter, where collaborative AI projects brought together contributors with different skills and backgrounds. The best results came when people closest to the problem shaped the questions, not only the labels.
The community has produced a series of benchmark datasets that have become standard references:
- MasakhaNER: named entity recognition datasets across multiple African languages.
- AfriSenti: a sentiment analysis benchmark built from social media text in many African languages, including Nigerian Pidgin and Hausa.
- Further datasets for news classification, part-of-speech tagging and machine translation.
Funding bodies such as the Lacuna Fund have supported the creation of labelled datasets for underserved contexts, including language data.
Techniques that work when data is scarce
Low-resource NLP is an engineering discipline of its own. The techniques that matter most include:
- Cross-lingual transfer: train or fine-tune on a related, better-resourced language and transfer to the target. Languages within the same family often share structure that models can exploit.
- Multilingual pretraining: massively multilingual models learn shared representations across languages. Meta's No Language Left Behind project, for example, targeted translation across a large number of languages including many African ones, and released evaluation data alongside the models.
- Adapters and parameter-efficient fine-tuning: small language-specific modules can be trained on modest hardware without retraining the whole model.
- Tokeniser adaptation: standard tokenisers often fragment African-language words into many pieces, especially with diacritics and tonal marks. Extending the vocabulary or training language-aware tokenisers can improve both quality and cost.
- Data augmentation: back-translation, where target-language text is machine-translated into a source language to create synthetic parallel pairs, is a well-established way to stretch limited parallel data.
- Active learning: rather than labelling at random, have the model select the examples it is least sure about, so scarce annotator time goes where it helps most.
Real-world realities: code-switching, orthography and speech
Benchmarks only capture part of the challenge. Real users in Lagos rarely type in a single, standardised language. They switch between English, Pidgin and Yoruba mid-sentence, abbreviate freely and frequently omit tonal diacritics because keyboards make them inconvenient. A model trained on carefully edited text may stumble on exactly the messages it will receive in production.
Some practical observations:
- Diacritics: Yoruba text with and without tone marks can look like different languages to a model. Normalise consistently, or train on both forms.
- Code-switching: include mixed-language examples in training and evaluation data. Language identification at the sentence level often fails on these inputs.
- Speech first: for many users, voice is more natural than text, and literacy in one's mother tongue may be lower than spoken fluency. Speech recognition and synthesis are therefore high-impact, though data collection for speech is more expensive.
- Domain vocabulary: medical, legal and agricultural terms may lack agreed translations. Work with domain experts and native speakers to build glossaries.
Ethics, ownership and risk
Language data is cultural data. Several ethical issues deserve attention:
- Data sovereignty: who owns datasets built from community contributions, and who benefits commercially? Clear licences and benefit-sharing arrangements matter.
- Fair compensation: annotators and translators should be paid fairly, and credited where appropriate.
- Representation: datasets scraped from the web over-represent certain dialects, regions and topics. Religious texts, for example, are common sources of parallel data but produce models with skewed vocabulary.
- Evaluation honesty: automatic metrics like BLEU can be unreliable for morphologically rich languages. Human evaluation by native speakers remains essential before deployment in high-stakes settings.
- Safety: content moderation and safety filters are often weakest in low-resource languages, which can be exploited to bypass guardrails.
A practical roadmap for builders
If you are building a product that needs to serve African-language users, here is the path I recommend to developers I mentor:
- Measure first. Build a small, high-quality evaluation set in your target languages with real user-style inputs, including code-switched text. Test existing models before training anything.
- Start with existing resources. Explore the datasets and models published by Masakhane and others on Hugging Face before collecting new data.
- Fine-tune narrowly. A focused classifier or extractor for your domain usually beats a general model, and parameter-efficient methods keep costs manageable.
- Design for fallback. When confidence is low, route to a human or ask a clarifying question rather than guessing.
- Close the loop. Collect consented feedback from production to grow your dataset over time.
- Contribute back. Where you can, release evaluation sets and findings. The ecosystem grows when builders share.
Key takeaways
- Most African languages remain low-resource, which excludes many users from AI-powered services.
- Community-led efforts like Masakhane have produced key benchmarks and a participatory research model.
- Cross-lingual transfer, adapters, tokeniser adaptation, back-translation and active learning stretch scarce data.
- Production systems must handle code-switching, missing diacritics and voice-first users.
- Treat language data as cultural data: respect ownership, pay contributors fairly and evaluate with native speakers.
- Start with a strong evaluation set, reuse open resources and contribute back.
References & further reading
- Masakhane: A grassroots NLP community for Africa, by Africans — Masakhane
- Participatory Research for Low-resourced Machine Translation: A Case Study in African Languages — arXiv
- MasakhaNER: Named Entity Recognition for African Languages — arXiv
- AfriSenti: A Twitter Sentiment Analysis Benchmark for African Languages — arXiv
- No Language Left Behind: Scaling Human-Centered Machine Translation — arXiv
- Lacuna Fund — Lacuna Fund
Cover image: original illustration created for this article. Cited works remain the property of their respective authors and publishers.