Context-{en,es,fr,pt,hi,bn,ar,ru,id,zh}.tsv contain aggregate n-gram counts derived
from the Tatoeba sentence collection, contributed by the Tatoeba community.
Source and attribution: https://tatoeba.org/en/downloads
Original sentence authors and records: https://tatoeba.org/
Export URLs: https://downloads.tatoeba.org/exports/per_language/{ISO639-3}/{ISO639-3}_sentences.tsv.bz2
Language codes: eng, spa, fra, por, hin, ben, ara, rus, ind, cmn.
Exports downloaded October 7, 2026; last modified October 3, 2026.
Tatoeba licenses these text exports under CC BY 2.0 FR (some sentences are CC0).
https://creativecommons.org/licenses/by/2.0/fr/
https://creativecommons.org/licenses/by/2.0/fr/legalcode

Changes: lowercasing, Unicode normalization, punctuation-aware tokenization,
aggregation into counts with one to six preceding tokens; Chinese uses Han characters as tokens.
At most 150,000 records per language, with every tenth record held out.
Keep at most 16,000 short contexts plus 8,000 longer contexts,
and eight continuations with count >= 2 and total >= 5.
Only bounded aggregate token sequences are shipped in the model. The companion test fixture
contains short typing contexts from the held-out records with the same attribution.
No endorsement is implied. The derived statistical tables and test fragments are
provided under CC BY 2.0 FR with attribution to Tatoeba and its contributors.
ContextModelManifest.json records source SHA-256 hashes and counts.
Regenerate with scripts/build_keyboard_context_models.py and the cited exports.

KeyboardQualityCorpus.json contains additional held-out typing fragments under
the same CC BY 2.0 FR attribution to Tatoeba and its contributors. It preserves
source_sentence_id for attribution and original author/record lookup at
https://tatoeba.org/en/sentences/show/{source_sentence_id}.
Changes: the trainer's normalization and tokenization, exact training-sentence
duplicate exclusion, query deduplication, deterministic validation/test splits,
prefix truncation; Chinese dictionary-covered words are represented by full,
initial or mixed Pinyin derived from the separately attributed CC-CEDICT index.
No user text is included. KeyboardQualityCorpusManifest.json records source
hashes and exclusion counts. Regenerate with scripts/build_keyboard_evaluation.py.
