# Real context examples: Tatoeba

`context-examples.json` is a frozen selection of **unmodified** English sentences from the Tatoeba community corpus. No placeholder sentence templates or generative sentences are used in this file. This is a separate licensed source from the FreeDict/WikDict meanings. Original curated card examples must take precedence; card IDs and source meanings are not changed by this adaptation.

- Source and export format: https://tatoeba.org/en/downloads
- Sentence text license specified by the export: **CC BY 2.0 FR**, https://creativecommons.org/licenses/by/2.0/fr/
- English: https://downloads.tatoeba.org/exports/per_language/eng/eng_sentences_detailed.tsv.bz2
- Russian: https://downloads.tatoeba.org/exports/per_language/rus/rus_sentences_detailed.tsv.bz2
- Translation links: https://downloads.tatoeba.org/exports/links.tar.bz2
- Optional self-reported author-language preferences: https://downloads.tatoeba.org/exports/user_languages.tar.bz2

The selected weekly snapshot is 14 November 2026. The JSON records the original archive SHA-256 values. These export URLs are updated weekly; reproducing an identical selection requires archives with the recorded hashes.

Each English row retains `sentenceID` and the credited Tatoeba `author`. Attribute a displayed sentence to that contributor and Tatoeba, link to `https://tatoeba.org/en/sentences/show/{sentenceID}`, and make the license available. If a Russian sentence is displayed, credit its separate `rusAuthor` and `rusSentenceID` as well. The sentence source page supplies contributor/edit history. Corpus audio is not included; audio has separate contributor-selected licenses.

Matching normalizes case, typographic apostrophes, hyphens and token boundaries without altering sentence text. `match` distinguishes exact, inflected, placeholder and combined matches. Explicit learner placeholders such as one's/someone/something can match actual pronouns in the source sentence. Filters exclude selected abusive, sexual, graphic/violent and archaic language, overly long sentences, very short entries and malformed surface punctuation. Ordinary word usage is preferred over a proper name; short contextual sentences, contributor CK and optionally self-reported native-English authors are preferred.

**These are automatically selected real usage examples, not individually verified grammar or senses.** Community authorship, self-reported English proficiency and punctuation filters do not certify correctness. `translationKeys` means a conservative stem overlap with a linked Russian sentence, not proven translation equivalence. An empty list means the card's Russian sense was not supported by that heuristic. Do not silently treat an ambiguous example as the particular meaning on a card, and never overwrite a curated example. Missing or unsuitable examples should remain visibly unavailable or be supplied through a separately attributed source, explicit generation, or editing.

Reproduce with Python's standard library; download archives into a scratch directory first:

```sh
python scripts/source-contexts.py \
  --cards /workspace/work/context-card-words.json \
  --english /workspace/work/tatoeba-eng-sentences-detailed.tsv.bz2 \
  --russian /workspace/work/tatoeba-rus-sentences-detailed.tsv.bz2 \
  --links /workspace/work/tatoeba-links.tar.bz2 \
  --user-languages /workspace/work/tatoeba-user-languages.tar.bz2 \
  --scratch /workspace/work --snapshot 2026-11-14
```

The cards input is a scratch array extracted from the existing catalogue containing `word`, `translation` and any existing `example`. Its input is read-only. Source corpora and candidate caches are never copied into the browser app by this script. Final coverage and unfilled terms are recorded in the JSON and scratch report; no claim of complete library coverage is made.
