language-status / README.md
nafisehNik's picture
Translation-resource audit of 325 FineWiki languages (finewiki_audit_20261115T012342Z)
5f12097 verified
|
Raw History Blame Contribute Delete
19.2 kB
metadata
license: cc-by-4.0
language_bcp47: []
task_categories:
  - translation
pretty_name: FineWiki translation-resource state per language
size_categories:
  - n<1K
tags:
  - machine-translation
  - low-resource
  - wikipedia
  - language-resources
configs:
  - config_name: languages
    default: true
    data_files:
      - split: audit
        path: data/languages.parquet

FineWiki translation-resource state per language

One row for each of the 325 language configs in HuggingFaceFW/finewiki, recording how large that Wikipedia is, which other Wikipedias it shares articles with, and which machine-translation systems, benchmarks and parallel corpora currently cover it.

The table exists to answer one question: which languages have enough Wikipedia text and a close enough well-resourced neighbour to build high-quality parallel data, while also having some existing test set to measure quality against?

What is in the table

Group Columns
Identity finewiki_config, wiki_prefix, language_name, autonym, iso639_1, iso639_3, macrolanguage, code_note
Genealogy glottocode, family_name, macroarea, is_isolate, classification_path
Wikipedia size finewiki_articles, wikipedia_articles_live, wikipedia_edits, wikipedia_active_editors, wikipedia_size_rank
Partner coverage (greedy set cover) coverage_best_partner, coverage_material_partners, coverage_material_partner_count, coverage_material_items, coverage_material_share, coverage_ceiling_share, coverage_items_unique_to_this_wiki
Cross-language articles shared_articles_with_en, top_partner_1, top_partner_1_shared_articles, top_partner_2, top_partner_2_shared_articles, best_pivot_language, closest_related_high_resource_language
MT support in_google_translate, in_microsoft_translator, in_nllb200, in_madlad400, has_commercial_mt
Test sets in_flores_plus, in_ntrex, in_smol_smoldoc, in_smol_smolsent, in_gatitos, in_sacrebleu, tatoeba_has_test_set, in_community_benchmark, has_translation_test_set, translation_test_set_count
Benchmark inventory benchmarks_covering, benchmarks_covering_count, test_sentences_available, benchmark_train_sentences
Existing parallel data training_sentences_public, training_data_saturated, opus_sentence_pairs_total, opus_sentence_pairs_with_en
Has anyone built anything hub_datasets, hub_translation_datasets, hub_focused_translation_datasets
Parallel data opus_corpora_count, opus_sentence_pairs_total, opus_sentence_pairs_with_en, in_glot500, in_hplt2
Derived state resource_tier, is_high_resource_anchor, opportunity_score, opportunity_rank
Detail dictionaries article_overlap_json, machine_translation_json, evaluation_sets_json, parallel_corpora_json, hub_presence_json, article_coverage_json, benchmarks_json, opportunity_components_json

The eight *_json columns hold the per-source dictionaries as JSON strings so the Dataset Viewer stays flat and sortable. languages.jsonl in this repository carries the same rows with those fields as real nested objects.

Cross-language article overlap

Every FineWiki row carries a wikidata_id. Two articles in different Wikipedias that share a Wikidata item describe the same concept, so the number of shared items bounds how many concept-aligned (comparable) article pairs a language pair can supply. Counted over 20,472,604 distinct Wikidata items across 325 Wikipedias.

shared_articles_with_en is the count against English; top_partner_1 and top_partner_2 are the two non-English Wikipedias that share the most articles with this one, with their counts. article_overlap_json holds the top ten both with and without English.

Which partners together cover the most

A partner's solo overlap overstates its usefulness, because large Wikipedias overlap heavily with each other. For Gilaki, Spanish shares 32,928 articles but adds only 8 that English does not already cover, while Persian shares less than half as many and adds 134 on top of English and Mazandarani. So the columns report a greedy maximum set cover: at each rank, the partner that adds the most previously uncovered Wikidata items.

coverage_material_partners is the sorted list of partners that each add more than one percent of the language's own article count -- the ones worth actually using. coverage_material_items is how many articles that set reaches together, and coverage_ceiling_share is what all audited Wikipedias reach combined. coverage_items_unique_to_this_wiki counts articles no other audited Wikipedia has at all, which no cross-lingual method can reach. The full ranked table, with each partner's marginal gain, is in article_coverage_json.

Benchmark inventory

benchmarks_json lists every benchmark the audit checked, for this language: where it lives, whether it is reachable, its licence, and how many sentences it holds per split. Three of them will not serve their data files, so their coverage is taken from an authoritative listing and their sentence counts from an open mirror; each such entry records coverage_established_from and counts_measured_from rather than guessing.

Benchmark Role Access
Helsinki-NLP/tatoeba_mt evaluation gated terms
ai4bharat/IN22-Gen evaluation gated terms
facebook/bouquet evaluation gated terms
gmnlp/tico19 evaluation open
google/wmt24pp evaluation open
mteb/NTREX evaluation open
mteb/flores evaluation open
openlanguagedata/flores_plus evaluation gated terms
Davlan/sib200 evaluation parallel non mt open
facebook/belebele evaluation parallel non mt open
Helsinki-NLP/opus-100 mixed open
Helsinki-NLP/tatoeba mixed open
bible-nlp/biblenlp-corpus mixed open
indonlp/NusaX-MT mixed open
masakhane/mafand mixed open
haoranxu/ALMA-Human-Parallel training open
openlanguagedata/oldi_seed training open

test_sentences_available sums the test and dev sentences across every reachable benchmark; training_sentences_public sums public parallel training sentences (OPUS plus benchmark train splits) and is what the scarcity component penalises.

Resource tiers

Tier Rule Languages
high Commercial MT, a public test set, and 100,000+ Wikipedia articles. 70
medium Commercial MT, or in NLLB-200, or in FLORES+. 146
low Some public test set, GATITOS, or 1,000+ OPUS sentence pairs. 95
very_low None of the above; a Wikipedia and little else. 14

Opportunity ranking

opportunity_score combines a usable Wikipedia, a well-resourced neighbour with many shared articles, an existing test set, and the absence of commercial MT coverage. opportunity_rank is that score in descending order.

Component Weight Meaning
wikipedia_size 0.28 log-scaled article count
mineable_article_coverage 0.22 log-scaled articles reachable from the material partner set
existing_test_sets 0.20 how many public test sets cover the language; a focused Hub dataset alone counts as half of one
no_commercial_mt 0.12 no Google or Microsoft support
parallel_data_scarcity 0.10 inverse log-scaled OPUS sentence pairs
has_related_anchor 0.08 shares a Glottolog family with an anchor

In Google Translate, present in FLORES-200 or FLORES+, and at least 40,000 Wikipedia articles. 90 languages qualify as anchors.

Simple English (simple) is excluded from the ranking because it is English.

shortlist.json applies the audit's own filter and keeps the 22 languages that have at least 1,000 articles and at least one public test set -- or, failing that, a focused Hub translation dataset -- but no Google or Microsoft Translator support. evaluation_evidence says which of the two applies.

Worked examples

Language Articles Shared with en Top non-English partners Test sets Commercial MT Rank
Boarisch (bar) 23,542 16,306 de 20,825, fr 15,588 2 no 18
گیلکی (glk) 47,607 39,863 es 32,928, uk 32,360 1 no 7
مازِرونی (mzn) 63,403 51,248 ar 39,531, es 38,307 1 no 13

Sources

sources/ holds the raw catalogue snapshot each column was derived from, one JSON file per source, each with its URL and fetch time. Those files are not part of the viewer config.

Source What it contributes Snapshot
community_benchmarks Curated parallel corpora the big catalogues do not list. sources/community_benchmarks.json
finewiki Article and byte counts per language config. sources/finewiki.json
flores_plus FLORES+ language inventory. sources/flores_plus.json
glot500 Glot500-c corpus coverage. sources/glot500.json
glottolog_classification Root-to-leaf classification path, used for closest relatives. sources/glottolog_classification.json
glottolog_languages Glottocode, family, macroarea. sources/glottolog_languages.json
google_translate Languages the public Google Translate endpoint lists. sources/google_translate.json
hf_benchmarks Benchmark locations, access status and per-split sentence counts. sources/hf_benchmarks.json
hplt2 HPLT v2 cleaned web corpora coverage. sources/hplt2.json
hub_datasets Hugging Face Hub datasets tagged with the language. sources/hub_datasets.json
iso639_3 ISO 639-1/639-3 code reconciliation. sources/iso639_3.json
iso639_macrolanguages Macrolanguage membership for code matching. sources/iso639_macrolanguages.json
madlad400 MADLAD-400 language coverage. sources/madlad400.json
microsoft_translator Languages the Microsoft Translator endpoint lists. sources/microsoft_translator.json
nllb200 NLLB-200 supported language tokens. sources/nllb200.json
ntrex NTREX-128 reference languages. sources/ntrex.json
opus Parallel corpora, partner languages and sentence-pair counts. sources/opus.json
sacrebleu WMT, IWSLT and other test sets with their language pairs. sources/sacrebleu.json
smol SMOLDOC, SMOLSENT and GATITOS language lists. sources/smol.json
tatoeba_challenge Training-size tiers and test-set availability per pair. sources/tatoeba_challenge.json
[wikimedia_sitematrix](https://meta.wikimedia.org/w/api.php?action=sitematrix&format=json&smtype=language&smsiteprop=url code sitename
wikistats Live article counts, edits and active editors. sources/wikistats.json

Caveats

  • Alias expansion is one-way. A macrolanguage wiki such as fa claims resources published for its member varieties (pes_Arab), because that is the language it is written in; an individual language never inherits its macrolanguage's resources, because a Modern Standard Arabic test set does not evaluate Egyptian Arabic. Where a commercial system lists only the macrolanguage, macrolanguage_has_commercial_mt says so instead. For a macrolanguage wiki, counts are summed across its member varieties.
  • Catalogue membership is matched on language codes (ISO 639-1/639-3, macrolanguage members, script-suffixed FLORES codes). A language whose wiki uses a collective or retired prefix carries a code_note; nah has no usable three-letter code and therefore matches nothing.
  • Presence in a catalogue says nothing about quality. in_google_translate means the public endpoint lists the language, not that output is good.
  • OPUS figures were queried with the wiki prefix as the source code and are the latest version of each corpus; corpora under other code spellings may be missed.
  • FLORES+ membership comes from the gated openlanguagedata/flores_plus repository's dev split file list.
  • Coverage counts topics, not prose. A shared Wikidata item means both wikis have an article on it, not that either has enough text to align; the audit does not measure article length, so a stub and a full article count the same.
  • Shared Wikidata items measure comparable, not parallel, text. Wikipedia articles on the same topic are rarely translations of each other.
  • hub_datasets counts are capped at 100 per queried code, so a large number means "many", not an exact total. hub_focused_translation_datasets excludes umbrella corpora and any translation dataset whose card declares more than 25 languages, because a release covering hundreds of languages is not evidence that anyone worked on one of them.
  • in_community_benchmark comes from sources/community_benchmarks.json, a curated list added only from first-hand inspection. It is deliberately incomplete: absence means the audit has not verified a resource, not that none exists.

Rebuilding

Every script in the pipeline is bundled under scripts/, with the curated benchmark config and the test suite. Run them in this order from a checkout that has huggingface-hub and pyarrow available:

python scripts/lang_audit_sources.py
python scripts/lang_audit_overlap.py
python scripts/lang_audit_coverage.py
python scripts/lang_audit_build.py
python scripts/shortlist_pivots.py
python scripts/build_eval_corpus.py
python scripts/build_baseline_corpus.py
python scripts/build_lexicon_corpus.py
python scripts/stage_audit_extras.py
python scripts/publish_lang_audit.py
python scripts/publish_corpus.py
file role
scripts/lang_audit_sources.py Snapshots every external catalogue into cache/lang_audit/ with a fetch timestamp.
scripts/lang_audit_overlap.py Counts shared Wikidata items between every pair of wikis from the FineWiki files.
scripts/lang_audit_coverage.py Greedy maximum set cover over those items: which partners reach a wiki's topics.
scripts/lang_audit_build.py Joins all of it into data/languages.parquet, languages.jsonl and shortlist.json.
scripts/shortlist_pivots.py Derives the shortlist from the row state and chooses each language's pivots.
scripts/build_eval_corpus.py Gathers the human-written test sets for the shortlist into the evaluation dataset.
scripts/build_baseline_corpus.py Downloads the existing OPUS and Tatoeba training data as the comparison baseline.
scripts/build_lexicon_corpus.py Gathers bilingual dictionaries, wordlists and token glosses into the lexicon dataset.
scripts/corpus_subsets.py Shared subset writer used by both corpus builders (- configs).
scripts/stage_audit_extras.py Adds this script bundle and selected_languages.json to the staged audit release.
scripts/publish_lang_audit.py Validates the staged release, uploads it and waits for the Dataset Viewer.
scripts/publish_corpus.py The same for the evaluation and baseline datasets.
scripts/hf_publishing_auth.py Reads the write token from the macOS Keychain; no credential is ever written to disk.
configs/community_benchmarks.json Curated community test sets (PARME, xSID, NaLiBaSID) with pinned revisions.
tests/test_lang_audit.py Tests for the audit: code resolution, prefix collisions, thresholds, derived columns.
tests/test_eval_corpus.py Tests for the sentence corpora: parsing, pivots, de-duplication, contamination.
tests/test_lexicon_corpus.py Tests for the lexicon corpus and the licence tiering both corpora share.

The tests run with .venv-publish/bin/python -m unittest discover -s tests -q.

The first two steps do the network work and cache it; the rest are offline and cheap to re-run. Publishing needs a write token, which scripts/hf_publishing_auth.py reads from the system keyring -- no credential is stored in this repository.

Selected languages

selected_languages.json and selected_languages.md list the 22 languages this audit selected, each with the pivot languages chosen for it and the amount of evaluation and baseline data that was actually found. The companion datasets are sigiranic/underserved-translation-eval (human test sets) and sigiranic/underserved-translation-baseline (the existing training data to compare against).

shortlist.json is the same selection with the full audit columns for each row; selected_languages.json adds the pivots and the outcome.

Schema version 3; built 2026-11-15T01:23:43+00:00.