---
title: "Huggy Lingo: Using Machine Learning to Improve Language Metadata on the Hugging Face Hub"
description: "Roughly 87% of the ~50K public datasets on the Hugging Face Hub lack language metadata, so Hugging Face samples 20 rows from likely text columns via the dataset viewer API and runs Meta's fastText language-identification model (217 languages) on each row."
url: "https://swe.quest/articles/huggy-lingo-using-machine-learning-to-improve-language-metadata-on-the-hugging-c4b326d3f2e50ea0"
canonical: "https://huggingface.co/blog/huggy-lingo"
source: "Hugging Face"
published: "2023-08-02"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["machine-learning","data-pipelines","search"]
---

# Huggy Lingo: Using Machine Learning to Improve Language Metadata on the Hugging Face Hub

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2023-08-02, 8 min read, Case study. Original: [https://huggingface.co/blog/huggy-lingo](https://huggingface.co/blog/huggy-lingo)

## Summary

Roughly 87% of the ~50K public datasets on the Hugging Face Hub lack language metadata, so Hugging Face samples 20 rows from likely text columns via the dataset viewer API and runs Meta's fastText language-identification model (217 languages) on each row. Per-dataset predictions are grouped by language, and a language is kept only if it appears in at least 20% of rows with a mean confidence of at least 80%. ISO 639-3 codes are converted to ISO 639-1 with the script dropped, and some codes are mapped by hand. Librarian-Bot then opens pull requests adding the language tags, which repo owners can merge to make datasets discoverable through the Hub's language filters.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Search](https://swe.quest/tags/search.md) (Backend & APIs)

## Prerequisites

- Hugging Face Hub datasets
- language identification basics

## Keywords

Hugging Face Hub, fastText, Librarian-Bot, dataset viewer API, No Language Left Behind, ISO 639

## Related posts

- [Introducing the Data Measurements Tool: an Interactive Tool for Looking at Datasets](https://swe.quest/articles/introducing-the-data-measurements-tool-an-interactive-tool-for-looking-at-28723606ed6df7ae.md): Hugging Face · 2021-11-29 · Easy · 7 min read · Machine learning, Model training, Python, Open source
  Hugging Face's Data Measurements Tool is an open-source Python library and no-code Streamlit interface for measuring, exploring and comparing NLP datasets on the Hub.
- [Data-Centric Machine Learning: Building Shopify Inbox’s Message Classification Model](https://swe.quest/articles/data-centric-machine-learning-building-shopify-inbox-s-message-classification-89547c88c3590e73.md): Shopify Engineering · 2022-07-21 · Medium · 12 min read · Machine learning, Model training, Privacy, Communications
  Shopify Inbox's message classifier improved from ~70% to ~90% accuracy, and from ~35% to ~80% high-confidence coverage, by investing in better training data rather than model tweaks.
- [The Open ASR Leaderboard Adds Its First Global South Language](https://swe.quest/articles/the-open-asr-leaderboard-adds-its-first-global-south-language-ca46d1d4426986bf.md): Hugging Face · 2026-08-28 · Medium · 14 min read · Speech & audio, Evaluation
  Voice Arena and Hugging Face add Monsoon en-IN and Monsoon hi-IN to the Open ASR Leaderboard, making Hindi its first Indic language.
- [mmBERT: ModernBERT goes Multilingual](https://swe.quest/articles/mmbert-modernbert-goes-multilingual-ef8a6ca2e930c6ea.md): Hugging Face · 2025-09-09 · Hard · 15 min read · Model training, LLMs, Search
  mmBERT is a massively multilingual encoder built on the ModernBERT architecture with the Gemma 2 tokenizer, trained on over 3T tokens covering 1,833 languages.
- [MTEB: Massive Text Embedding Benchmark](https://swe.quest/articles/mteb-massive-text-embedding-benchmark-25d46b3f4051ff19.md): Hugging Face · 2022-10-19 · Medium · 3 min read · Evaluation, Machine learning, Search, Python
  MTEB is a benchmark of 56 datasets across 8 embedding tasks (classification, clustering, retrieval, STS, bitext mining and more) covering up to 112 languages, with a public leaderboard of over 2000 results.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
