---
name: ghazal-persian
description: Write or edit natural Persian (Farsi), then correct spelling, half-spaces and punctuation with Ghazal. Use when writing, translating into, or editing Persian prose.
---

# Persian writing with Ghazal

Edition 1.

## The loop

1. Read this file once, including the guide below. Write in Persian from the start.
2. Write the text to the file where you will deliver it. Keep that path.
3. From wherever you are, run `python3 <the skill folder>/fix.py FILE`. Use the skill folder's actual path;
   you do not need to move there or read `fix.py`. The file is now corrected in place. `.txt` is plain text;
   other files are Markdown. Add `--text` to force plain text, `--kind colloquial` when spoken Persian was
   asked for, or `--style academy` when the text already writes «خانهٔ».
4. Read what the command prints: the number of changes, then advice and spelling guesses. Decide these few
   findings; take a spelling guess only if you are sure that word was meant. Deliver the file.
5. Do not run it again unless you changed the text.

Set `GHAZAL_KEY` to a free key from https://ghazalai.ir/account/ before running the command.
The command applies errors and house spellings. Add `--sure-only` to leave style choices as written.
Use `--house ezafe=hamza,digits=latin,quotes=keep` for your writing preferences; each key is optional.
`ezafe` takes `ye` or `hamza`, `digits` takes `persian`, `latin` or `keep`, and `quotes` takes `guillemets` or `keep`.
Use `--words FILE` for personal words: one word per line in UTF-8, at most 500 words of at most 60 characters, without spaces.
Only spelling and confusion findings for those words are hidden; spacing, punctuation and grammar remain.

Use `python3 <the skill folder>/fix.py --profile llm --kind formal FILE` when a language model wrote the Persian.
Keep `--kind formal` for friendly written prose; use `--kind colloquial` for chat.
The profile keeps a fixed set of reviewed rules and changes their levels; style findings stay style.
House preferences come first; the profile can only keep findings from its own rules.
Omit `--profile` to keep the existing behaviour.

## What not to send or change

Quotations, names of people, companies and books, verse, code and URLs stay as their owners wrote them.
Send only your own prose. If a file includes quotations, names or verse, use `check` on the prose and apply
only findings outside those passages. Markdown protects code, URLs and front matter; it does not protect
quotations or names.

## Without the script

`POST https://ghazalai.ir/api/v1/fix` with `{"text": "...", "format": "markdown", "apply": "house"}` and headers
`content-type: application/json` and `Authorization: Bearer gz_...`; use the answer's `text` and decide the
advice and spelling guesses in `left`. Send `kind: colloquial` for spoken Persian or `style: academy` for
«خانهٔ». Omit `apply` to keep style choices as written. Use `/api/v1/check` to get findings without changes.
An MCP server is at `https://ghazalai.ir/mcp`. The reference is `https://ghazalai.ir/llms-full.txt`.
For the same profile over HTTP or MCP, add `"profile": "llm"`; use `"kind": "formal"` for friendly written prose.
`only` narrows the profile, `disable` removes rules, and `min_severity` uses its levels.
`fix` applies errors with suggestions, except `spell.*`, unless you send `apply: all`; `apply: house` also applies style findings.
Review the findings in `left`, including errors without a suggestion.

# How a careful Persian writer writes

Edition 1. Read once before writing. Examples are Persian; the rules are stated in English so any model can
follow them.

## 1. Think in Persian

Write the sentence a Persian writer would write, not the English sentence in Persian words. If a phrase only makes
sense when translated back into English, replace it.

| not | but |
|---|---|
| در پایان روز، مهم این است که… | آخرش مهم این است که… |
| این نقش مهمی بازی می‌کند | این نقش مهمی دارد |
| امیدوارم این کمک کند! | (leave it out) |
| بیایید نگاهی بیندازیم به… | (start with the point) |
| این به ما اجازه می‌دهد که سریع‌تر کار کنیم | با این، کار سریع‌تر پیش می‌رود |
| من هیجان‌زده‌ام که اعلام کنم | (say the news) |
| حس خوبی دارد | خوب است / دلنشین است |
| روی این موضوع تمرکز می‌کنیم | به این موضوع می‌پردازیم |
| یک تجربه‌ی کاربری بهتر را فراهم می‌کند | کار با آن راحت‌تر است |

- Do not open with a wind-up («در دنیای امروز…»، «در این متن خواهیم دید…») or close with a summary of what was just
  said. Say the thing.
- «یک» is not an article. Write «کتابی خریدم» or «کتاب خریدم», not «یک کتاب خریدم», unless the number matters.
- After a number the noun is singular: «سه کتاب», never «سه کتاب‌ها».
- Drop pronouns the verb already carries: «رفتم», not «من رفتم», unless there is a contrast.
- Prefer the active: «علی نامه را نوشت», not «نامه توسط علی نوشته شد».
- One idea per sentence. Two short sentences beat one with three «که».
- Finish the verb before «و»: «بدنه از فولاد ساخته شده است و دو جداره دارد», not «بدنه از فولاد ساخته شده و دو
  جداره دارد».
- «را» comes right after its noun, before «که»: «کتابی را که خریدم خواندم», not «کتابی که خریدم را خواندم».

## 2. Plain words, not office words

| not | but |
|---|---|
| می‌باشد | است |
| مورد بررسی قرار گرفت | بررسی شد |
| به انجام رساند | انجام داد / کرد |
| عدم وجود | نبودِ / نبودن |
| جهت ارسال | برای فرستادن |
| در رابطه با / در خصوص | درباره‌ی |
| علی‌رغم | با اینکه / با وجود |
| حائز اهمیت است | مهم است |
| به منظور بهبود | برای بهتر شدن |
| منجر به … شد | باعث … شد / به … انجامید |
| بر روی میز | روی میز |
| اقدام به خرید کرد | خرید |
| می‌گردد / گردید | می‌شود / شد |
| در راستای | برای |
| عدم حضور | نیامدن |
| احتراماً به استحضار می‌رساند | (start with the request) |

Use the Persian word when a common one exists and people use it (فرستادن، دریافت کردن، پرونده، رایانامه only if
the reader does). Keep a technical term in English or its usual loan form when that is what practitioners say
(API، Markdown، توکن، مدل زبانی). Do not coin words.

## 3. Choose one kind and stay in it

- **Formal** (reports, letters, articles, product text): written forms only. «می‌گویم»، «نمی‌دانم»، «خانه»، «را».
- **Friendly** (a blog post, a message to a customer): the same written forms, shorter sentences, direct address
  with «شما». It is the tone that is warm, not the grammar: «در» and «یک», not «توی» and «یه».
- **Chat** (only when asked for spoken Persian): spoken forms throughout: «می‌گم»، «نمی‌دونم»، «خونه»، «رو»،
  «می‌خوام». Half-spaces and punctuation still apply.

Never mix: «می‌خواهم بگم» is wrong in every kind. Exclamation marks and emoji belong to chat, and even there one
is enough.

## 4. Spelling and spacing

The tool fixes most of these; writing them right the first time keeps its changes few.

- Persian letters: ی and ک, never Arabic ي، ى or ك. No ة in a Persian word.
- Half-space (ZWNJ, U+200C), not a space and not nothing:
  «می‌روم»، «نمی‌دانم»، «کتاب‌ها»، «خانه‌ای»، «بزرگ‌تر»، «بزرگ‌ترین»، «رفته‌ام»، «گفته‌اند».
  No half-space after a letter that does not join (ا، د، ذ، ر، ز، ژ، و): «دیدارها»، «برادرها».
  A half-space never stands next to a space: «تجربه‌ی او», not «تجربه‌ او».
- Ezāfe after a silent ه is written, as «ه‌ی»: «خانه‌ی پدر»، «نامه‌ی اداری». Never «خانه ی». If the text you are
  editing already writes «خانهٔ پدر», keep that spelling throughout and run the tool with `--style academy`.
- The hamza stays: «سؤال»، «مسئول»، «مسائل»، «تأثیر»، «مؤثر»، «متأسفانه»; not «سوال» or «تاثیر».
- A compound word takes a half-space: «پایان‌نامه»، «بین‌المللی»، «دانش‌آموز». Two words joined by an ezāfe, and
  a word like «همه» or «هیچ» with its noun, stay apart: «راه حل»، «قابل توجه»، «مورد نظر»، «صرف نظر»، «همه چیز»،
  «هیچ کدام»، «هیچ وقت». «بنابراین» and «پنجشنبه» are one word. «است» stands apart: «خانه است».
- No tatweel (ـ) to stretch a word.

## 5. Punctuation and numbers

- Persian marks: «،» «؛» «؟» and guillemets «…» for quotations. Not `,` `;` `?` or "…".
- No space before a mark; one space after it. No space inside brackets or guillemets.
- An ellipsis is one character, «…», not three full stops.
- Persian has no em dash habit. Where English would use one, use «،» or «؛», or start a new sentence.
- Persian digits in a Persian sentence: «۱۲ نفر»، «۳۵٪»، «۰٫۹۲»، «۱٬۹۷۴». Latin digits stay inside code, URLs and
  names like `GPT-4`.
- Lists and headings: no colon-and-dash chains, no bold on every other phrase. A Persian paragraph reads as prose.

## 6. Leave alone

Quotations, names, verse, code and URLs. Spell a name the way its owner does.
