Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Tutorial: Contributing Entries

This tutorial shows how to add new terms, sentences, and paragraphs to the benchmark dataset using qebench add.

Why Contribute?

The dataset starts with 314 terms seeded from the QuantEcon glossary. To build a comprehensive benchmark, we need:

Every entry you add earns 15 XP and makes the benchmark more useful.

Before You Start

Pull the latest data so you’re working with the current dataset:

uv run qebench update

Adding a Term

uv run qebench add

Select term when prompted, then fill in:

FieldExampleNotes
English termmarginal costThe English source term
Chinese translation边际成本The best/most standard translation
DomaineconomicsPick from the configured domain list
DifficultybasicHow hard to translate: basic / intermediate / advanced
Alternatives边际费用Other valid translations (comma-separated)
Sourcequantecon/supply-demandWhere you found this term (optional)

After filling in the fields, you’ll see a preview:

╭────── Preview ──────╮
│  ID:         term-315│
│  English:    marginal cost  │
│  Chinese:    边际成本        │
│  Domain:     economics      │
│  Difficulty: basic          │
╰─────────────────────╯
? Save this entry? (Y/n)

Confirm to save. Your entry is saved to data/terms/{your-username}.json — a file dedicated to your contributions. This avoids merge conflicts with other contributors.

Adding a Sentence

Select sentence when prompted. Sentences are full clauses or statements extracted from QuantEcon lectures.

Good sentence entries:

Example:

Adding a Paragraph

Select paragraph when prompted. Paragraphs are the most valuable entry type — they test how well a translator handles connected prose, math notation, and technical flow.

Additional fields for paragraphs:

Submitting Your Contributions

After adding entries, push them to GitHub:

uv run qebench submit

This commits your data files and pushes to main. The dashboard updates automatically to reflect the new entries.

Tips for Good Entries

  1. Use real sources — pull from QuantEcon lectures, not synthetic text

  2. Verify translations — only add Chinese translations you’re confident about

  3. Tag difficulty accurately — based on what level of education typically introduces the term:

    • basic: terms introduced in high school (GDP, supply, demand)

    • intermediate: terms introduced at the undergraduate level (eigenvalue, stochastic)

    • advanced: terms introduced at the graduate level (Bellman equation variants, ergodicity)

  4. Include alternatives — many terms have multiple valid translations

  5. Fill the gaps — check qebench stats to see which domains need more entries

How Data Is Organized

This per-user file model means multiple RAs can work simultaneously without any merge conflicts.

Checking Your Work

After adding entries, verify the dataset:

uv run qebench stats

The domain table updates immediately to reflect your additions.