Repository navigation
Conversation
3lf
left a comment
There was a problem hiding this comment.
Independent review of the #33 to #39 stack at b779ae9: needs changes, priority medium.
Several recommendations were changed under a wording-polish title (WRAP-052, WRAP-057, WRAP-053).
Size: this PR takes README.md from 553,136 to 554,297 bytes (+1,161). The README panel on the repo page only renders about the first 512,000 bytes, and main was already over that. Details and options in the #33 review, under "Stack level".
Line numbers inside the findings refer to the stack head (b779ae9) unless another commit is named; each link points to the line in this PR.
4 findings are inline threads on this diff.
The 16 findings below are nits, or on lines this PR does not change but within its topic:
Minor
- WRAP-054 · README.md:5479 · pre-existing
The text says to keep («نگه دار») Unicode control characters for plain text or the terminal, but the book never says which characters (for example LRM, U+200E; RLM, U+200F; or the FSI/PDI isolates, U+2068 and U+2069) or how to use them. A reader with text-direction problems in a terminal has nothing to act on. In a book that introduces U+200C by its code point (line 5461), the gap stands out.
Suggested fix: Complete the sentence: «... مثل متن ساده یا ترمینال؛ مثلاً یه کلمه یا عدد لاتین رو بین دو جداساز FSI (U+2068) و PDI (U+2069) بذار، یا بعد از تکه لاتین یه RLM (U+200F) بذار. این کاراکترها نامرئیان و ...» - WRAP-055 · README.md:5547 · pre-existing
OpenAI's official embeddings page has no list of supported languages and doesn't mention Persian, so «رسماً پشتیبانی» ("officially supported") is an unsourced claim that gives the reader confidence it can't back up. The same section immediately goes on to say to measure with FaMTEB, so dropping «رسماً» is enough.
Suggested fix: Suggested wording: «* گزینه امن برای شروع: امبدینگهای چندزبانه، مثل text-embedding-3 از OpenAI، امبدینگ Gemini یا مدل متنباز BGE-M3. قبل از انتخاب، نتیجهشون رو روی فارسی تو FaMTEB و روی سندهای خودت ببین.»
Source: https://developers.openai.com/api/docs/guides/embeddings
Nits (14)
- WRAP-122 · README.md:2051 · pre-existing
The claim is stated as certain («تولید میکنه», "produces"), while after PR #34 the rest of the chapter speaks in terms of «ممکنه» (may) and «بسته به مدل» (depending on the model). Conflicting roles raise the chance of inconsistent output, but they don't always produce low-quality output. PR #39 already touched this line for a grammar fix («از همهچیز») but kept the absolute tone.
Suggested fix: Suggested wording: «... مدل ممکنه خروجیهای ناسازگار و بیکیفیتی بده، چون معلوم نیست به کدوم دستور اولویت بده.» - WRAP-123 · README.md:2146 · new in #39
PR #39 changed four H2 headings (CoT, ToT, ReAct and «هندل کردن خطاها», error handling), so all four GitHub anchors changed, e.g.#۳-زنجیره-تفکر-chain-of-thought-prompting---cot-became#۳-زنجیره-تفکر-chain-of-thought-prompting-cot-. All 11 internal references were updated correctly, but any external link, bookmark or reference in previously published PDFs that uses an old anchor now silently lands at the top of the page. The description mentions the heading changes but not the broken anchors.
Suggested fix: If the owner wants old links to keep working, add a compatibility anchor above each heading, e.g.<a id="۳-زنجیره-تفکر-chain-of-thought-prompting---cot-"></a>. GitHub adds theuser-content-prefix, and the browser still reaches it through the unprefixed fragment (test this on GitHub's preview). Otherwise, add one line to the description: "old anchors for CoT, ToT, ReAct and error handling no longer resolve". - WRAP-124 · README.md:2171 · pre-existing
«حساسیت کمتری داشته باشه» ("be less sensitive") is vague: it could mean sensitivity to prompt changes, risk of leaking information, or parsing fragility. The reader can't tell why a short answer would be less "sensitive".
Suggested fix: If the point is parsing and checking: «تا هم خروجی کوتاهتر و ارزونتر بشه، هم برنامه راحتتر جواب نهایی رو جدا کنه.» - WRAP-092 · README.md:2351 · style preference
PR #39 turned a prompt sentence and a benchmark name (line 5769,Humanity's Last Exam) into inline code to keep the apostrophe isolated from the surrounding text. The visible result: the Persian version of the same sentence is in «» and bold while the English one looks like code, and the other benchmarks (GPQA Diamond, SWE-bench) are plain text. In this book, inline code is for code and identifiers. If the real problem was apostrophe rendering in the PDF, this works, but it changes what the formatting means.
Suggested fix: If the goal is direction isolation, use<bdi>or a typographic apostrophe (’) instead of code: ««Let’s think step by step» یا «بیا قدم به قدم فکر کنیم»» and «Humanity’s Last Exam». If code formatting really is needed, document why once in CONTRIBUTING. - WRAP-125 · README.md:2548 · new in #39
«تقویمت تو Google» is a literal, unnatural rendering; the product has a proper name, Google Calendar. The same paragraph (line 2552) already says «تقویم Google».
Suggested fix: «فرض کن یه اپ چت داری که میخواد به تقویم Google خودت وصل بشه:» - WRAP-126 · README.md:3023 · new in #39
Each step label is followed by «؛». A semicolon separates two independent clauses, not a label from its explanation; this needs «:». Line 3026 also has «اگر نه... اگر آره», which puts formal «اگر» next to colloquial «آره»; the book's voice uses «اگه».
Suggested fix: «- ۱. فکر (Thought) 🤔: صورتمسئله رو بررسی میکنه...» (same pattern for lines 3024 and 3025), and «- ۴. تکرار 🔄: پرونده حل شد؟ اگه نه، برگرد به مرحله ۱؛ اگه آره، گزارش نهایی رو بده.» - WRAP-133 · README.md:3462 · new in #39
A PR meant to make the Persian consistent adds new, inconsistent forms itself: «میآد» twice (lines 3462 and 5150), while the book uses «میاد/میاره/میان» 31 times; «اگر» three times (twice at 3026, once at 6516) in a book with 223 «اگه»; and «مفیدبودنش» (line 560), while the rest of the book writes such compounds with a space.
Suggested fix: Lines 3462 and 5150: «به کارت میاد»; line 3026: «اگه نه... اگه آره»; line 6516: «اگه لازم شد»; line 560: «مفید بودنش». - WRAP-134 · README.md:5324 · incomplete fix in #39
PR #39 removed the broad claim «مدلهای جدید فارسی رو خوب میفهمن» (new models understand Persian well) from lines 5553 and 6512, and dropped the promise «دقیقاً همون چیزی که میخوای» (exactly what you want) from 552, 560 and 619, but sibling sentences are unchanged: 5324 (this one), 5466 «مدلهای بزرگ ... معمولاً نیمفاصله رو درست استفاده میکنن» (large models usually use the half-space correctly), and 2473 «هرچی مدل دقیقتر بفهمه چی میخوای، جواب بهتری میده» (the better the model understands what you want, the better the answer), which is the same claim that was removed from 6472. The editorial policy is only half applied.
Suggested fix: Either soften these three sentences the same way PR #39 did (e.g. line 5324: «خیلی از مدلهای جدید متاپرامپت فارسی رو هم میفهمن؛ روی مدل خودت امتحانش کن.»), or say in the PR description that this cleanup only covers the listed lines. - WRAP-127 · README.md:5383 · style preference
PR #39 removed the trailing emoji from three tool items (lines 5383-5385) and four capability items (5707-5710), but the same pattern remains in the neighboring items (5399 «⚡», 5400 «🌟», 5721-5723, 5729-5731). Also,Humanity's Last Exam(5769) was put in code backticks to work around the apostrophe in RTL, though it's a benchmark name, not code. Neither is an error; this is only about consistency.
Suggested fix: Either make trailing emoji consistent across a whole list, or leave them alone. For the name, use<bdi>Humanity's Last Exam</bdi>or<span dir="ltr">...</span>instead of backticks. - WRAP-128 · README.md:5435 · pre-existing
The book's code runs correctly and gives the same 7 and 14 tokens. But the book uses GPT-6 for its examples throughout,tiktokenhas no mapping forgpt-6-astraorgpt-6-luna, and OpenAI hasn't said GPT-6 useso200k_base. «نسلهای جدید» ("newer generations") may lead readers to think theo200k_basecount is exact for GPT-6. The book rightly says to measure with your chosen model's tokenizer, but doesn't say that for GPT-6 the exact route is OpenAI's own token counter.
Suggested fix: Change the code comment to «# توکنایزر o200k_base (مال GPT-4o و GPT-5)؛ برای GPT-6 شمارش دقیق رو از شمارنده توکن خود OpenAI بگیر», and add to the «نکته عملی» at line 5453: «برای مدلهایی که توکنایزر عمومی ندارن، از endpoint شمارش توکن همون سرویس استفاده کن.» - WRAP-129 · README.md:5608 · new in #39
PR #39 switched the numbers in the notes under the table to Persian digits («۱۰۰٬۰۰۰ توکن», «۲۰۰٬۰۰۰», «۲۷۲٬۰۰۰»), and did the same for the Haiku row of the snapshot table (line 5750), but two rows of the cost table still say «100k token» in English. The same price threshold is now written two ways on one page. The table text itself comes from main; PR #39 created the mismatch.
Suggested fix: «| مدل Claude Haiku 5.5 🟣
تا ۱۰۰٬۰۰۰ توکن ورودی | $0.10 | $0.50 |» and «| مدل Claude Haiku 5.5 🟣
بیشتر از ۱۰۰٬۰۰۰ توکن ورودی | $0.50 | $2.50 |» - WRAP-130 · README.md:5640 · pre-existing
Everywhere else in the book this concept is called «مسیریابی مدل (Model Routing)» (line 1996, this chapter's figure captions at 5651 and 5653, cheat sheet at 6406 and 6448); only here is it «مسیردهی» and "Smart Routing".
Suggested fix: «۵. مسیریابی مدل (Model Routing) 🧠» - WRAP-131 · README.md:6243 · pre-existing
The book mostly writes «جستوجو» (e.g. cheat sheet lines 6400 and 6429), but here and in the glossary (line 6563) it is «جستجو». PR #39 normalized «گفتگو» to «گفتوگو» (line 5826) but missed these.
Suggested fix: «... کِی جستوجو کنه.» and in the glossary: «دیتابیس مخصوص ذخیره و جستوجوی بردارها». - WRAP-132 · README.md:6530 · pre-existing
The glossary intro promises «همه اصطلاحات» (all terms), but several key terms from the chapters on problems, security, evaluation and RAG have no entry: Faithfulness, Context Precision, Context Recall, LLM-as-a-Judge, Rubric, Gold Answer, Jailbreak, Lost in the Middle, Lethal Trifecta, BM25, HyDE. PR #36 and PR #37 also introduced new terms (Bradley-Terry, Paired Bootstrap, Anchor Set, Late Chunking) that have no entry either.
Suggested fix: Add short entries, for example «| وفاداری | Faithfulness | سازگار بودن ادعاهای جواب با متن بازیابیشده |», «| دقت نتایج بازیابی | Context Precision | چه سهمی از نتیجههای بالای فهرست مرتبطن و ترتیبشون |», «| مدل به عنوان داور | LLM-as-a-Judge | سنجیدن خروجی با یه مدل دیگه و یه راهنمای نمرهدهی |». Or change the intro to «اصطلاحات پرتکرار» (frequent terms).
| ``` | ||
|
|
||
| دقیقاً همون اصول پرامپتنویسی که یاد گرفتی اینجا هم برقراره: **کوتاه، صریح، با مثال.** فایلهای غولآسا جواب نمیدن؛ یه فایل ۵۰ خطی متمرکز، از یه فایل ۱۰۰۰ خطی پراکنده خیلی بهتر کار میکنه. | ||
| همون اصول پرامپتنویسی اینجا هم به کارت میآد: **روشن، مرتبط و با مثال.** فایل رو از توضیح پراکنده پُر نکن؛ قاعدهها رو طوری بنویس که بشه رعایتشون رو بررسی کرد. تعداد خط بهتنهایی معیار کیفیت نیست. |
There was a problem hiding this comment.
Minor (new in #39) · WRAP-052
This PR is meant to polish Persian wording, but it changes a real technical recommendation: the "short" principle («کوتاه») is gone from the AGENTS.md/CLAUDE.md advice, and a new sentence «تعداد خط بهتنهایی معیار کیفیت نیست» (line count alone is not a quality measure) was added. The reader no longer learns that this file is loaded into context in every session, and that a long file both takes up space and lowers adherence. The new sentence isn't wrong, but it drops an important condition that the official docs back.
Suggested fix: Restore the principle and the reason behind it, for example: «همون اصول پرامپتنویسی اینجا هم به کارت میاد: کوتاه، روشن، مرتبط و با مثال. این فایل تو هر جلسه وارد کانتکست میشه؛ پس فقط قاعدههایی رو بنویس که واقعاً لازمن و بشه رعایتشون رو بررسی کرد. مثلاً مستندات Claude Code پیشنهاد میکنه هر فایل CLAUDE.md زیر ۲۰۰ خط بمونه.»
| ``` | ||
|
|
||
| دقیقاً همون اصول پرامپتنویسی که یاد گرفتی اینجا هم برقراره: **کوتاه، صریح، با مثال.** فایلهای غولآسا جواب نمیدن؛ یه فایل ۵۰ خطی متمرکز، از یه فایل ۱۰۰۰ خطی پراکنده خیلی بهتر کار میکنه. | ||
| همون اصول پرامپتنویسی اینجا هم به کارت میآد: **روشن، مرتبط و با مثال.** فایل رو از توضیح پراکنده پُر نکن؛ قاعدهها رو طوری بنویس که بشه رعایتشون رو بررسی کرد. تعداد خط بهتنهایی معیار کیفیت نیست. |
There was a problem hiding this comment.
Minor (new in #39) · WRAP-053
PR #39 describes itself as "Polish Persian wording", but it also carries several new content and advice changes that the description doesn't mention and that belong to the topics of earlier PRs:
- line 3462 (AGENTS.md section): drops the claim «فایل ۵۰ خطی متمرکز از فایل ۱۰۰۰ خطی خیلی بهتر کار میکنه» (a focused 50-line file works much better than a 1000-line one) and adds a new rule;
- line 3483: rewrites the "done" («تمومه») criterion for the coding agent;
- line 3230: adds «این کارها ریسک رو کمتر میکنن؛ قابلاتکا بودن ایجنت رو باید روی کار واقعی خودت بسنجی» (these reduce risk; measure the agent's reliability on your own real work);
- line 6502 (common mistakes): «۳ تا ۴ بار تکرار کن» (repeat 3 to 4 times) becomes «برای تلاشها سقف بذار» (cap your attempts);
- line 6488 (common mistakes): adds «ترکیب زبانها بهخودیخود اشتباه نیست» (mixing languages is not a mistake in itself);
- line 2562 (MCP): «سرمایهگذاری امنیه» (a safe investment) is replaced by the advice «پشتیبانی کلاینت و سرور رو چک کن» (check client and server support).
These may well be right, but a reviewer of a language PR usually doesn't check technical content, and a tone rewrite shouldn't add new conditions or policy.
Suggested fix: Either move these hunks to their topical PRs (PR #34 for prompting and common mistakes, PR #35 or PR #36 for agents and validation), or add a "Content changes" section to the PR #39 description that lists these lines, so a technical reviewer sees them too.
| ### نکات طلایی برای کار با فارسی 🌟 | ||
|
|
||
| 1. **پرامپت فارسی بنویس، نه انگلیسی:** مدلهای جدید فارسی رو خوب میفهمن. نیازی نیست انگلیسی بنویسی، مگه اینکه خروجی انگلیسی بخوای. | ||
| 1. **برای خروجی فارسی، با فارسی روان شروع کن:** اگه زبان دستور رو عوض کردی، کیفیت و لحن رو روی کار خودت مقایسه کن. |
There was a problem hiding this comment.
Minor (new in #39) · WRAP-056
«با فارسی روان شروع کن» ("start with fluent Persian") has no object: it's unclear what should start in Persian (the prompt? the conversation? the output?). The main version («پرامپت فارسی بنویس، نه انگلیسی») was clear. This is the chapter's first "golden tip" («نکته طلایی»), and the ambiguity works against the PR's goal of clearer instructions. Line 6512 («برای خروجی فارسی، با فارسی شروع کن») has the same problem.
Suggested fix: Line 5553: «برای خروجی فارسی، پرامپت رو هم اول به فارسی روان بنویس: اگه خواستی دستورها رو انگلیسی کنی، کیفیت و لحن دو نسخه رو روی کار خودت مقایسه کن.»
Line 6512: «برای خروجی فارسی، اول پرامپت فارسی رو امتحان کن؛ کیفیت و مصرف توکن دو نسخه رو روی متن و مدل خودت مقایسه کن.»
| | `Please summarize this text in farsi and make it خلاصه with good quality` | `این متن رو به فارسی خلاصه کن. لحن: رسمی. حداکثر ۳ جمله.` | | ||
|
|
||
| **چرا مهمه؟** قاطی کردن زبانها بدون دلیل، مدل رو گیج میکنه و کیفیت خروجی پایین میاد. | ||
| **چرا مهمه؟** دستور روشن خوندن و بررسی نتیجه رو راحتتر میکنه. این با نگهداشتن اسم مدل، کد یا متن منبع به زبان اصلی فرق داره؛ ترکیب زبانها بهخودیخود اشتباه نیست. |
There was a problem hiding this comment.
Minor (new in #39) · WRAP-057
The heading at line 6482 still lists «قاطی کردن زبانها (بدون دلیل)» (mixing languages without a reason) as a mistake, but the new «چرا مهمه؟» (why it matters) no longer says what harm it does and ends with «ترکیب زبانها بهخودیخود اشتباه نیست» (mixing languages is not a mistake in itself), so the reader never learns why it is a mistake. This PR also changed the third pair in figure vis-50 from "mixed language → one language" to "Finglish → Persian script", so the figure no longer shows this mistake either. The caption at line 6516, instead of summarizing the figure's six pairs, recommends only two of them (Persian script and context budget), and «اگر لازم شد» breaks the book's voice.
Suggested fix: "Why it matters": «چرا مهمه؟ وقتی بیدلیل وسط جمله زبان عوض میکنی، معلوم نیست جواب باید به چه زبانی باشه و قیدها (مثل «with good quality») هم مبهم میمونن. نگهداشتن اسم مدل، کد یا متن منبع به زبان اصلی فرق داره؛ اونجا دلیل داری.»
Caption: «> 🖼️ شش جفت اشتباه و اصلاح کنار هم: هدف مبهم، متن بیقالب، فینگلیش، متن بیرون از بودجه کانتکست، نسخه اول بیبازبینی و نیمفاصله نادرست؛ همه به یه پرامپت قابل استفاده میرسن.»
4284f85 to
c9dfc78
Compare
b779ae9 to
227b2c3
Compare
c9dfc78 to
53ccb01
Compare
227b2c3 to
062cf4d
Compare
Refine conversational Persian, terminology, number formatting and Persian-prompt guidance while retaining precise content advice on agent instructions, completion evidence, bounded attempts and task-specific reliability. Isolate complete Latin phrases with explicit LTR
<bdi>markup so apostrophes stay ordered in the PDFs and prose retains ordinary text semantics; keep the concrete FSI/PDI display example.Replace the stale hero with two authentic PDF-page exports and record their provenance. Preserve the stack’s 15 unique legacy heading aliases and add a resolution ledger covering all 131 supplied review findings, including recorded mitigations and deferrals. This draft depends on #38 and targets
docs/base-examples-reader-flow.062cf4d52f0f544e170390c1269236c23855993c: 79 Node tests, source/anchor QA, volatile-data checks and workflow lint. CI.This update keeps the existing PR Draft. No merge or release is included.