Inspiration

I build speech and language technology for Ugandan languages at Sunbird AI. People ask the same question every week: "Is there a model for my language?" A search of Hugging Face usually says yes. In practice the answer is often no. The model may be one of hundreds of languages in a broad multilingual model, it may be licensed for research only, or it may be fine-tuned from a base model that has since disappeared.

Funders, researchers and language communities decide where to put scarce effort using these listings. If the listings overstate coverage, effort goes to the wrong languages, and the cheapest fixes never get noticed. I wanted a tool that answers two questions honestly:

  1. Which low-resource languages truly have usable language technology?
  2. For each gap, what is the smallest fix that would close it?

What it does

Lingua Atlas is a single-file Relate graph that joins four public sources:

  • Glottolog v5.4: the language family tree, endangerment and documentation level.
  • Hugging Face: public model and dataset metadata for Uganda, Kenya, Tanzania, Rwanda, South Sudan and DR Congo.
  • LinguaMeta: speaker figures.
  • Model cards: evaluation results.

A language counts as covered for a task only when all three of these hold:

  • A targeted model serves it, meaning one built for 100 languages or fewer, not a broad multilingual model.
  • The model's licence allows commercial use and derivatives.
  • Every model in its DERIVED_FROM chain is public and licensed the same way.

That last condition is graph work, not table work: a permissive model fine-tuned from an unavailable or non-commercial base is not really usable.

What the graph reveals:

Country Languages appearing on Hugging Face Languages actually covered
Uganda 87% 12% (7 of 60)
Kenya 77% 13%
Tanzania 59% 6%
  • About half of all listed languages are served only by broad multilingual models, and this holds at every threshold I tested.
  • 714 models declare a commercial licence but are blocked (76) or incomplete (638) somewhere in their lineage.
  • Uganda's 9 incomplete languages, spoken by at least 8.6 million people, all trace back to three models. If one unavailable base model were made public with a usable licence, all nine would become covered.
  • 15 language–country pairs are data-ready: commercially licensed data exists, but nobody has trained a targeted model on it. Sukuma is the clearest case.
  • Evaluation is thin even where coverage exists. Only 4 of Uganda's 7 covered languages, 4 of Kenya's 11 and 5 of Tanzania's 9 have any reported result that can be attributed to them.

Every gap comes with its fix type: a missing licence, an unavailable base model, or unused data. Each type points to a different person who can act on it: a model author, an organisation, or a team with compute.

Agent access. The store is served read-only over MCP (relate serve --mcp stdio), so any MCP-capable agent can ask questions such as "Which single fix would cover the most Ugandan languages for ASR?" and get answers grounded in the graph. docs/agent.md gives ten tested Cypher recipes and lists known dataset caveats, so agents don't recommend data that cannot really be used.

How I built it

  • Rust plus the embedded relate crate (1.4). The whole atlas is one file, data/atlas.rl.
  • Why single-file mode: the atlas is a dataset as much as an application. One file can be committed, checksummed, shipped with the repository and opened read-only by the CLI, by an MCP server or by another program, with no database server to run. Anyone can rebuild it and confirm the same content with atlas digest, a SHA-256 of a canonical export.
  • Graph model:
    • Nodes: Languoid/Language, Country, Model, Dataset, Task, License.
    • Relationships: CHILD_OF, SPOKEN_IN {speakers}, COVERS, FOR_TASK, LICENSED_AS, DERIVED_FROM {how}, TRAINED_ON and REPORTS {metric, value, split, …}.
  • Graph queries:
    • Unbounded lineage walks (*0..) compute a verdict for every model's full chain.
    • shortestPath over the Glottolog tree finds each uncovered language's nearest covered relative, as a transfer baseline.
    • EXISTS {} subqueries separate targeted coverage from broad coverage.
  • Fetching uses public data only. Hugging Face is queried without a token, with paginated, resumable fetches and retries. A private or deleted repository is recorded as "not public", never guessed at.
  • Tested: 27 integration tests on fixture data, plus an MCP smoke test that runs every agent recipe against the live server.

Challenges

  • Broad models inflate coverage. At first, one 2,000-language model made nearly every language look covered. I added coverage tiers based on how many languages a model serves, and picked the threshold by checking real models. A 40-language cut-off wrongly excluded Sunbird's own 50-language Sunflower model, so the default became 100.
  • A licence is a property of a chain, not of a model. Checking only each model's own licence overstated coverage. Licences had to be resolved across the full lineage, including bases that are now deleted or private.
  • Attributing evaluations honestly. Model cards report scores without saying clearly which language they belong to. My first pass credited a LibriSpeech English score to Kinyarwanda. Now a result counts only if it names the language, or if the language is the only one the model and its evaluation dataset share. Training-split results are excluded.
  • Performance. That ambiguity check took 145 seconds at query time, so I moved it into the build.
  • Relate details. A temporary file named atlas.rl.tmp was opened in directory mode because the file extension selects the storage mode. Builds now write to atlas.building.rl and rename it over the store when complete.

What I learned

  • Listing counts are the wrong measure for low-resource languages. What decides whether a community can use a model is the connected context: the model's lineage, its licences and whether an evaluation exists.
  • The most effective fixes are often not new models. A licence change or one re-published base model can matter more than a new training run.
  • I work at Sunbird AI, and the atlas flags several of our own models as incomplete. That convinced me the method is useful: it surfaces actionable problems even for teams that know the field well. The atlas uses only public metadata, and no private Sunbird data.

What's next

  • Extend coverage beyond the six East and Central African countries.
  • Accept community corrections to the curated caveats file through pull requests.
  • Share the fix list with the model authors concerned, starting with the licence and base-model issues behind Uganda's nine languages.

Built With

Share this project:

Updates

Submission history