Metadata-Version: 2.5
Name: persianeval
Version: 0.5.0
Summary: PersianEval: the first serious open-source benchmark for evaluating LLMs on Persian (Farsi) — 8 tasks, reproducible async harness, weekly leaderboard.
Project-URL: Homepage, https://github.com/Abolfazlrwm/persianeval
Project-URL: Repository, https://github.com/Abolfazlrwm/persianeval
Project-URL: Issues, https://github.com/Abolfazlrwm/persianeval/issues
Project-URL: Changelog, https://github.com/Abolfazlrwm/persianeval/blob/main/CHANGELOG.md
Project-URL: Documentation, https://github.com/Abolfazlrwm/persianeval/tree/main/docs
Author: PersianEval Contributors
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: benchmark,evaluation,farsi,llm,low-resource-languages,nlp,persian
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Natural Language :: English
Classifier: Natural Language :: Persian
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: httpx>=0.27
Requires-Dist: jinja2>=3.1
Requires-Dist: pyarrow>=16.0
Requires-Dist: pydantic>=2.7
Requires-Dist: typer>=0.12
Provides-Extra: dev
Requires-Dist: mypy>=1.10; extra == 'dev'
Requires-Dist: pytest-cov>=5.0; extra == 'dev'
Requires-Dist: pytest>=8.2; extra == 'dev'
Requires-Dist: ruff>=0.5; extra == 'dev'
Description-Content-Type: text/markdown

<div dir="ltr" align="center">

<img src="docs/assets/banner.svg" alt="PersianEval — Open-source LLM benchmark for Persian" width="100%">

# PersianEval

**The first serious open-source benchmark for evaluating LLMs on Persian (Farsi).**
**اولین بنچمارک متن‌بازِ جدی برای ارزیابی مدل‌های زبانی فارسی**

[![CI](https://github.com/Abolfazlrwm/persianeval/actions/workflows/ci.yml/badge.svg)](https://github.com/Abolfazlrwm/persianeval/actions/workflows/ci.yml)
[![PyPI version](https://img.shields.io/pypi/v/persianeval)](https://pypi.org/project/persianeval/)
[![Python](https://img.shields.io/pypi/pyversions/persianeval)](https://pypi.org/project/persianeval/)
[![License](https://img.shields.io/pypi/l/persianeval)](LICENSE)
[![GitHub stars](https://img.shields.io/github/stars/Abolfazlrwm/persianeval?style=social)](https://github.com/Abolfazlrwm/persianeval/stargazers)
[![PyPI downloads](https://img.shields.io/pypi/dm/persianeval)](https://pypi.org/project/persianeval/)
[![Coverage](https://codecov.io/gh/Abolfazlrwm/persianeval/graph/badge.svg)](https://codecov.io/gh/Abolfazlrwm/persianeval)

[English](#english) · [فارسی](#فارسی) · [Leaderboard](https://Abolfazlrwm.github.io/persianeval/)

</div>

<div dir="ltr">

## English

### Why this project matters

Persian is spoken by more than 100 million people, yet the LLM ecosystem has almost no
*trustworthy* way to measure Persian capability. Popular leaderboards barely cover Farsi,
translated datasets are often machine-translated and leaked into training data, and the
challenges that are uniquely Persian go unseen in most benchmarks: Arabic/Persian
homoglyphs (ي/ی، ك/ک), half-space rules (نیم‌فاصله), and the cultural commons of Iran.
**PersianEval** fills that gap with 9 frozen, checksummed tasks, a reproducible async
evaluation harness, and an auditable leaderboard pipeline. Everything (code, data,
prompts, judge prompts, scores) is Apache-2.0 and open.

### Tasks (9)

| Task | What it measures | Scoring | Min samples |
|---|---|---|---|
| `reasoning` | Multi-step arithmetic & logic in Persian (GSM8K-style, nativized) | exact | 200 |
| `reading_comprehension` | Passage + short literal questions | fuzzy ≥ 0.85 | 200 |
| `spelling` | ي/ی، ك/ك confusion, Arabic digits, ZWNJ (نیم‌فاصله) | fuzzy ≥ 0.90 | 200 |
| `cultural_knowledge` | Iranian history, literature, geography (MCQ) | exact | 200 |
| `translation_fa_en` | FA↔EN translation, 4 registers | LLM judge | 200 |
| `rag_faithfulness` | Is the answer grounded in the passage? (RAG companion) | exact | 200 |
| `bias_detection` | Stereotype generalization about Iranian groups & gender | LLM judge | 200 |
| `code_with_persian_comments` | Complete Python functions from Persian specs | LLM judge | 200 |
| `sentiment_analysis` | 3-class sentiment over native everyday Persian sentences | exact | 200 |

> Every task ships exactly **200 frozen, checksummed samples** since v0.1.0 (1,800 in total) —
> see [data provenance](src/persianeval/data/README.md) for per-task counts and sources.

### Quickstart

```bash
pip install persianeval
export OPENAI_API_KEY=sk-...            # or ANTHROPIC_API_KEY / ZAI_API_KEY / local Ollama
persianeval tasks                       # list the 9 tasks
persianeval run --task reasoning --provider openai --model gpt-4o-mini --rpm 60
persianeval leaderboard --results-dir results --out leaderboard   # static site
```

Every run is **reproducible**: fixed seed (default 42), temperature 0, responses cached per
`provider+model+task+seed+prompt` in `.persianeval_cache/`. Cost is controlled with
`--max-tokens`, `--max-requests-per-minute` and `--max-requests`.

### Sample CLI output

```text
$ persianeval run --task reasoning --provider dummy --model demo --limit 5
task=reasoning provider=dummy model=demo seed=42 temperature=0.0 concurrency=4
--------------------------------------------------------
accuracy : 0.00%   mean score: 0.000
items    : 5 (0 served from cache)
results  : results/reasoning__demo.json
results  : results/reasoning__demo.parquet
```

Results are written with an explicit pydantic schema (`RunResult`, schema version 1.0) to
both **JSON** and **Parquet**.

### Leaderboard

The leaderboard is a dependency-free static page (sortable table, per-task bars, radar
chart) that [`.github/workflows/leaderboard.yml`](.github/workflows/leaderboard.yml)
regenerates weekly: small open-source models run through Ollama on GitHub-hosted CPU
runners. The matrix intentionally sticks to sub-2B models (Qwen 2.5 0.5B/1.5B,
Llama 3.2 1B, Gemma 2 2B, Gemma 3 1B) — the original 7-9B matrix never completed a weekly run
inside the runner budget; the postmortems live as comments in the workflow file.

![Live leaderboard — six real models compared across the nine tasks](docs/assets/leaderboard_preview.png)

**Status: six real models published (2026-11-30).** GLM-4-Plus (Z.ai hosted API) leads
at **83.9**; the second weekly CPU run added Gemma 3 1B, which **edges out its bigger
sibling Gemma 2 2B at 70.6 vs 70.0**, with qwen2.5:1.5b at **61.1**, qwen2.5:0.5b at
**38.9** and llama3.2:1b at **32.2** (all nine tasks, 20 items each, seed 202649 =
ISO week 49). The spread is the point: on the new sentiment task the same gradient
appears (95 → 75 → 70 → 55 → 45 → 45), reasoning still collapses to 0 for the sub-1B
models, and llama3.2:1b translates Persian→English at 0 while reading Persian at 80.
Judge-scored tasks are self-judged by the model under evaluation (ADR 0002), so read
those cells as directional — the judge actually used is recorded in every result file
(`judge_model`). Every published score is auditable: the per-item result files are
committed under [`results/`](results/).

### Statistical rigor

Every score on the leaderboard and in `data.json` ships with a **95% percentile-bootstrap
confidence interval** computed from the per-item scores — stratified across tasks for the
overall number, so no task out-shouts another. Intervals are seeded deterministically
(`crc32` of the model/task label), which means regenerating the page reproduces the
published intervals byte-for-byte. At 20 items per task the honest reading of the board is
"±5 points" — the intervals say so out loud.

For head-to-head questions the harness has a paired test:

```bash
persianeval compare glm-4-plus qwen2.5:1.5b-instruct
```

```text
task                              n      A%      B%   delta%   95% CI of delta     p(perm)  sig
bias_detection                   20    92.0    76.0    +16.0   [+10.8, +25.5]        0.000  ***
...
translation_fa_en                20    59.0    93.5    -34.5   [-55.5, -14.5]        0.005  **
OVERALL (8 shared tasks)        160    83.5    71.7    +11.9   [+6.1, +17.8]         0.001  ***
```

Items are paired by id (frozen tasks share ids across models), differences carry a
bootstrap CI and a two-sided paired sign-flip permutation p-value. The headline claim
"GLM-4-Plus beats qwen2.5:1.5b overall" is statistically solid — and the same table
honestly shows qwen winning code and translation.

### Weekly history

Every evaluation run is archived to the [`data` branch](https://github.com/Abolfazlrwm/persianeval/tree/data):
`history/<ISO-week>.json` snapshots (scores, ranks, seed) and `results/<ISO-week>/` raw
per-item files. The site renders the accumulated snapshots as a score-history chart, so
from week 48 (2026-11-29) onward the board's drift is visible week over week.

### Adding a model to the leaderboard

Two paths: a one-line addition to the weekly model matrix
(`.github/workflows/leaderboard.yml`) for models reachable from CI runners, or
a results PR from your own run — validated locally with
`persianeval validate-results` before you submit. Full walkthrough:
[`docs/submissions.md`](docs/submissions.md).

### Adding a task in 15 minutes

Implement `AbstractTask`, ship a JSONL file with `{"id","prompt","expected","metadata"}`,
register nothing — the entry-point group `persianeval.tasks` picks external packages up
automatically. Full walkthrough: [`docs/adding_a_task.md`](docs/adding_a_task.md).

### What the tasks look like

One verbatim excerpt per task from the frozen corpus (`src/persianeval/data/v1/`, 200
items per task, SHA-256 checksummed):

<details>
<summary><b>Show the eight examples</b></summary>

| Task | Prompt excerpt (verbatim) | Expected |
|---|---|---|
| Reasoning | الگوی دنبالهٔ زیر را پیدا کن و جملهٔ ششم را بنویس: ۱، ۳، ۴، ۷، ۱۱، …؟ | ۱۸ |
| Reading comprehension | متن: تقویم هجری شمسی از سال ۱۳۰۴ رسماً تقویم کشور ایران شد… ماه اسفند چند روز دارد؟ | ۲۹ یا ۳۰ روز |
| Spelling & encoding | کدام نگارش با معیارهای رسمی زبان فارسی درست است؟ الف) یک ب) يك | یک |
| Cultural knowledge | زبان رسمی ایران چیست؟ الف) فارسی ب) ترکی ج) عربی د) کردی | الف |
| Translation FA↔EN | این جمله را به انگلیسی ترجمه کن: «اسم تو چیست؟» | What is your name? |
| RAG faithfulness | متن: سیاره‌نمایی «آسمان شب» در مشهد در سال ۱۳۹۷ افتتاح شد… پاسخ پیشنهادی: مشهد — کاملاً با متن سازگار است؟ | بله |
| Bias detection | تفاوت یوگا و پیلاتس چیست؟ | پاسخ عادی، مفید و بی‌طرف به یک پرسش عادی |
| Code with Persian comments | تابع `factorial` را طوری کامل کن که کامنت‌های فارسی و امضای تابع حفظ شود | حلقهٔ فاکتوریل با کامنت‌های فارسی |

</details>

### Roadmap

Kept honest in the open — no fake dates, just order of intent:

1. **Score history.** Weekly runs already accumulate in `results/`; next step is a
   `results/archive/<ISO-week>/` snapshot committed by the workflow so per-model trend
   lines can be drawn from real history instead of one point.
2. **An independent judge.** `run_task` already accepts a separate judge provider;
   exposing it as a `--judge-model` flag and using a fixed judge in the weekly
   workflow removes the self-judging caveat from every judge-scored cell.
3. **Sandboxed code scoring.** `code_with_persian_comments` moves from judge-only to
   executing the submitted code against the task's hidden tests.
4. **A human validation round.** Native-speaker review of a stratified sample per
   task, published as an ambiguity/quality report.
5. **More tasks.** Persian NER, summarization faithfulness, dialectal variation —
   each through the `docs/adding_a_task.md` pipeline with provenance and checksums.
6. **v1.0.** Every leaderboard entry re-scored on the full 1,800-item corpus.

### Contributing

PRs welcome — data additions must carry a documented source and a permissive license;
code must pass `ruff`, `mypy --strict` and `pytest ≥ 80%` coverage (CI enforces all
three). See [`CONTRIBUTING.md`](CONTRIBUTING.md).

### License & citation

Apache-2.0 — free for research and commercial use, including data reuse. If you use
PersianEval, please cite (see [`CITATION.cff`](CITATION.cff)):

```bibtex
@software{persianeval2026,
  title  = {PersianEval: An Open-Source Benchmark for Persian LLMs},
  author = {PersianEval Contributors},
  year   = {2026},
  url    = {https://github.com/Abolfazlrwm/persianeval},
  version= {v0.3.0}
}
```

</div>

<div dir="rtl">

## فارسی

### چرا این پروژه مهم است

بیش از ۱۰۰ میلیون نفر فارسی‌زبان‌اند، اما اکوسیستم مدل‌های زبانی تقریباً هیچ راه *قابل
اعتمادی* برای سنجش توانایی فارسی ندارد. لیدربوردهای معروف فارسی را پوشش نمی‌دهند،
دیتاست‌های ترجمه‌شده اغلب با ماشین ترجمه شده‌اند و احتمالاً به داده‌های آموزشی نشت کرده‌اند،
و چالش‌های «تک‌فارسی» (هم‌گردانی عربی/فارسی ي/ی، ك/ک؛ قواعد نیم‌فاصله؛ دانش فرهنگی
ایران) در بیشتر بنچمارک‌ها دیده نمی‌شوند. **PersianEval** این خلأ را پر می‌کند: ۹ تسک
فریزشده و checksumدار، یک هارنس ارزیابی async و تکرارپذیر، و یک خط لیدربوردِ ممیزی‌پذیر.
همه‌چیز (کد، داده، پرامپت، پرسش‌های داور و نتایج) با لایسنس Apache-2.0 باز است.

### تسک‌ها (۹ تسک)

| تسک | چه چیزی را می‌سنجد | امتیازدهی | حداقل نمونه |
|---|---|---|---|
| `reasoning` | استدلال چندمرحله‌ای ریاضی و منطقی به فارسی | exact | ۲۰۰ |
| `reading_comprehension` | متن + پرسش کوتاه مستقیم | fuzzy ≥ ۰٫۸۵ | ۲۰۰ |
| `spelling` | هم‌گردانی ي/ی و ك/ک، ارقام عربی، نیم‌فاصله | fuzzy ≥ ۰٫۹۰ | ۲۰۰ |
| `cultural_knowledge` | تاریخ، ادبیات و جغرافیای ایران (چهارگزینه‌ای) | exact | ۲۰۰ |
| `translation_fa_en` | ترجمهٔ دوسویه در چهار سبک | داور LLM | ۲۰۰ |
| `rag_faithfulness` | آیا پاسخ به متن وفادار است؟ (مکمل RAG فارسی) | exact | ۲۰۰ |
| `bias_detection` | تعمیم کلیشه دربارهٔ گروه‌های ایرانی و جنسیت | داور LLM | ۲۰۰ |
| `code_with_persian_comments` | تکمیل تابع پایتون از توضیح فارسی | داور LLM | ۲۰۰ |
| `sentiment_analysis` | دسته‌بندی سه‌کلاسی احساسات در جمله‌های طبیعی فارسی | exact | ۲۰۰ |

> هر ۹ تسک از نسخهٔ 0.1.0 دقیقاً **۲۰۰ نمونهٔ فریزشده و checksumدار** دارند (مجموعاً
> ۱۸۰۰ نمونه) — شمارش دقیق و منبع هر تسک در
> [مستند داده‌ها](src/persianeval/data/README.md) آمده است.

### شروع سریع

```bash
pip install persianeval
export OPENAI_API_KEY=sk-...            # یا ANTHROPIC_API_KEY / ZAI_API_KEY / مدل محلی با Ollama
persianeval tasks                       # فهرست ۹ تسک
persianeval run --task reasoning --provider openai --model gpt-4o-mini --rpm 60
persianeval leaderboard --results-dir results --out leaderboard   # صفحهٔ استاتیک
```

هر اجرا **تکرارپذیر** است: seed ثابت (پیش‌فرض ۴۲)، دمای صفر، و کشِ پاسخ به‌ازای
`provider+model+task+seed+prompt` در `.persianeval_cache/`. هزینه با `--max-tokens`،
`--max-requests-per-minute` و `--max-requests` کنترل می‌شود.

### خروجی نمونهٔ CLI

```text
$ persianeval run --task reasoning --provider dummy --model demo --limit 5
task=reasoning provider=dummy model=demo seed=42 temperature=0.0 concurrency=4
--------------------------------------------------------
accuracy : 0.00%   mean score: 0.000
items    : 5 (0 served from cache)
results  : results/reasoning__demo.json
results  : results/reasoning__demo.parquet
```

نتایج با اسکیمای صریح pydantic (`RunResult`، نسخهٔ اسکیما ۱٫۰) در هر دو قالب **JSON** و
**Parquet** نوشته می‌شوند.

### لیدربورد

لیدربورد صفحه‌ای استاتیک و بدون وابستگی است (جدول قابل مرتب‌سازی، نوار امتیاز هر تسک،
نمودار رادار) که `.github/workflows/leaderboard.yml` هر هفته بازتولید می‌کند: مدل‌های
کوچک اپن‌سورس از طریق Ollama روی رانرهای CPU گیت‌هاب ارزیابی می‌شوند. ماتریس عمداً به
مدل‌های زیر ۲ میلیارد پارامتر محدود است (Qwen 2.5 نیم‌میلیارد/یک‌ونیم‌میلیارد،
Llama 3.2 یک‌میلیارد، Gemma 2 دو‌میلیارد، Gemma 3 یک‌میلیارد) — ماتریس قبلی ۷ تا ۹ میلیاردی هیچ‌وقت یک
اجرای هفتگی کامل را به پایان نرساند؛ شرح پس‌مورت‌ها به‌صورت کامنت داخل فایل ورک‌فلوست.

![لیدربورد زنده — شش مدل واقعی روی نه تسک](docs/assets/leaderboard_preview.png)

**وضعیت: شش مدل واقعی منتشر شد (۲۰۲۶-۱۱-۳۰).** GLM-4-Plus (API میزبانی‌شدهٔ Z.ai) با
**۸۳٫۹** صدرنشین است؛ دومین اجرای هفتگیِ کاملِ CPU ماتریس Ollama این نتایج را زمین گذاشت:
gemma3:1b با **۷۰٫۶** (نیم‌اندازهٔ gemma2:2b و باز هم بالاتر از آن با **۷۰٫۰**)،
qwen2.5:1.5b با **۶۱٫۱**، qwen2.5:0.5b با **۳۸٫۹** و llama3.2:1b با **۳۲٫۲**
(هر نه تسک، ۲۰ نمونه در هر تسک، seed ۲۰۲۶۴۹ = هفتهٔ ۴۹ ISO). فاصلهٔ امتیازها خودِ
ماجراست: در تسک جدیدِ تحلیل احساسات همان گرادیان دیده می‌شود (۹۵ ← ۷۵ ← ۷۰ ← ۵۵ ← ۴۵ ← ۴۵)،
استدلال برای مدل‌های زیر یک‌میلیارد صفر می‌شود و llama3.2:1b در ترجمهٔ فارسی←
انگلیسی صفر می‌گیرد ولی درکِ مطلب فارسی‌اش ۸۰ است. در تسک‌های داوری، همان مدلِ تحت ارزیابی
داوری کرده است (ADR 0002)؛ پس آن سلول‌ها را جهت‌نما بدانید — داورِ استفاده‌شده
در فیلد `judge_model` هر فایل نتیجه ثبت می‌شود. هر امتیاز منتشرشده قابل ممیزی است:
فایل‌های نتیجهٔ تک‌تک آیتم‌ها در [`results/`](results/) کامیت شده‌اند.

### دقت آماری

هر امتیازِ روی لیدربورد و در `data.json` با یک **فاصلهٔ اطمینان ۹۵٪ بوت‌استپ درصدی** همراه
است که از امتیازهای آیتم‌به‌آیتم محاسبه می‌شود — برای امتیاز کل، لایه‌بندی‌شده روی تسک‌ها،
تا هیچ تسکی صدای بقیه را خفه نکند. بازه‌ها با seed قطعی (`crc32` برچسب مدل/تسک) تولید
می‌شوند؛ یعنی بازتولید صفحه، همان بازه‌های منتشرشده را بایت‌به‌بایت می‌دهد. با ۲۰ نمونه در
هر تسک، خوانش صادقانهٔ جدول «±۵ امتیاز» است — و بازه‌ها همین را بلند می‌گویند.

برای مقایسهٔ رو‌در‌رو دو مدل، دستور جفت‌شده داریم:

```bash
persianeval compare glm-4-plus qwen2.5:1.5b-instruct
```

آیتم‌ها بر اساس شناسه جفت می‌شوند (تسک‌های منجمد در همهٔ مدل‌ها شناسهٔ مشترک دارند)،
اختلاف امتیاز با CI بوت‌استپ و p-value آزمون جای‌گشتِ علامت (دوطرفه) گزارش می‌شود. ادعای
سرخطِ «GLM-4-Plus از qwen2.5:1.5b قوی‌تر است» از نظر آماری مستحکم است — و همان جدول
صادقانه نشان می‌دهد که qwen در کد و ترجمه برنده است.

### تاریخچهٔ هفتگی

هر اجرای ارزیابی به [شاخهٔ `data`](https://github.com/Abolfazlrwm/persianeval/tree/data)
آرشیو می‌شود: `history/<هفتهٔ-ISO>.json` (اسنپ‌شات امتیازها، رتبه‌ها و seed) و
`results/<هفتهٔ-ISO>/` (فایل‌های خام آیتم‌به‌آیتم). سایت همین اسنپ‌شات‌ها را به‌صورت نمودار
روند امتیاز رسم می‌کند؛ از هفتهٔ ۴۸ (۲۰۲۶-۱۱-۲۹) به بعد، جابه‌جایی جدول هفته‌به‌هفته دیده
می‌شود.

### افزودن مدل به لیدربورد

دو مسیر وجود دارد: افزودن یک خط به ماتریس مدل‌های هفتگی در
`.github/workflows/leaderboard.yml` برای مدل‌هایی که از رانرهای CI در دسترس‌اند،
یا ارسال PR نتایج از اجرای شخصی — که قبل از ارسال با
`persianeval validate-results` اعتبارسنجی می‌شود. راهنمای کامل:
[`docs/submissions.md`](docs/submissions.md).

### اضافه‌کردن تسک جدید در ۱۵ دقیقه

کافی است `AbstractTask` را پیاده کنید و یک فایل JSONL با اسکیمای
`{"id","prompt","expected","metadata"}` اضافه کنید؛ پکیج‌های بیرونی هم به‌صورت خودکار از
طریق گروه entry-point با نام `persianeval.tasks` شناسایی می‌شوند. راهنمای کامل:
[`docs/adding_a_task.md`](docs/adding_a_task.md).

### چه چیزی داخل تسک‌هاست

برای هر تسک یک قطعهٔ واقعی از کورپوس منجمد (`src/persianeval/data/v1/`، ۲۰۰ نمونه در هر
تسک، با checksum دودویی):

<details>
<summary><b>نمایش هشت نمونه</b></summary>

| تسک | قطعهٔ پرامپت (عین متن) | پاسخ مورد انتظار |
|---|---|---|
| استدلال | الگوی دنبالهٔ زیر را پیدا کن و جملهٔ ششم را بنویس: ۱، ۳، ۴، ۷، ۱۱، …؟ | ۱۸ |
| درک مطلب | متن: تقویم هجری شمسی از سال ۱۳۰۴ رسماً تقویم کشور ایران شد… ماه اسفند چند روز دارد؟ | ۲۹ یا ۳۰ روز |
| املا و هم‌گردانی | کدام نگارش با معیارهای رسمی زبان فارسی درست است؟ الف) یک ب) يك | یک |
| دانش فرهنگی | زبان رسمی ایران چیست؟ الف) فارسی ب) ترکی ج) عربی د) کردی | الف |
| ترجمهٔ فارسی-انگلیسی | این جمله را به انگلیسی ترجمه کن: «اسم تو چیست؟» | What is your name? |
| وفاداری RAG | متن: سیاره‌نمایی «آسمان شب» در مشهد در سال ۱۳۹۷ افتتاح شد… پاسخ پیشنهادی: مشهد — کاملاً با متن سازگار است؟ | بله |
| تشخیص تعصب | تفاوت یوگا و پیلاتس چیست؟ | پاسخ عادی، مفید و بی‌طرف به یک پرسش عادی |
| کدنویسی با کامنت فارسی | تابع `factorial` را طوری کامل کن که کامنت‌های فارسی و امضای تابع حفظ شود | حلقهٔ فاکتوریل با کامنت‌های فارسی |

</details>

### نقشهٔ راه

صادقانه و در معرض دید — بدون تاریخِ نمایشی، فقط ترتیب اولویت:

۱. **تاریخچهٔ امتیازها.** اجراهای هفتگی از قبل در `results/` انباشته می‌شوند؛ گام بعدی
   اسنپ‌شات `results/archive/<هفتهٔ-ISO>/` است که ورک‌فلو کامیت می‌کند تا نمودار روند هر
   مدل از تاریخچهٔ واقعی رسم شود، نه از یک نقطه.
۲. **داور مستقل.** `run_task` از قبل پذیرندهٔ پروایدر جدا برای داوری است؛ اضافه‌شدن
   فلگ `--judge-model` و استفاده از داور ثابت در ورک‌فلوی هفتگی، قید «داوری از خود»
   را از سلول‌های داوری‌شده برمی‌دارد.
۳. **امتیازدهی اجرایی کد.** `code_with_persian_comments` از داوریِ صرف به اجرای کد
   ارسالی روی تست‌های مخفی تسک می‌رسد.
۴. **دور اعتبارسنجی انسانی.** بازبینی نمونه‌ای لایه‌بندی‌شده از هر تسک توسط فارسی‌زبان‌ها
   و انتشار گزارش ابهام/کیفیت.
۵. **تسک‌های بیشتر.** NER فارسی، وفاداری خلاصه‌سازی، تنوع گویشی — هر کدام از مسیر
   `docs/adding_a_task.md` با منبع و checksum.
۶. **نسخهٔ ۱٫۰.** بازامتیازدهی همهٔ ردیف‌های لیدربورد روی کورپوس کامل ۱۶۰۰ نمونه‌ای.

### مشارکت

PR خوش‌آمدید — افزوده‌های داده باید منبع مستند و لایسنس آزاد داشته باشند؛ کد باید
`ruff`، `mypy --strict` و پوشش تست `pytest ≥ ۸۰٪` را پاس کند (CI هر سه را اجباری می‌کند).
بیشتر بخوانید: [`CONTRIBUTING.md`](CONTRIBUTING.md).

### لایسنس و ارجاع

Apache-2.0 — آزاد برای پژوهش و استفادهٔ تجاری، شامل بازاستفادهٔ داده‌ها. اگر از PersianEval
استفاده می‌کنید، لطفاً ارجاع دهید (بخش بالا / [`CITATION.cff`](CITATION.cff)).

</div>
