سالسی — Write Persian with Persian words
Persian prose is full of borrowed words that have perfectly good Persian
equivalents. Replacing them makes writing clearer and more native. Replacing
them carelessly makes writing wrong — it mangles technical terms, changes
meaning, and produces words no reader recognises.
This skill is about the difference.
The one rule that matters
A loanword is only worth replacing when the replacement is at least as clear
to the reader. Purity is never worth clarity. If you are unsure whether a
reader would recognise the Persian equivalent, keep the original.
Workflow
Scan the text to find candidates:
salsi scan article.md --format json
If salsi is not on PATH, this skill ships its own copy — run
./bin/salsi from this skill's directory instead. It needs nothing
installed beyond Python 3.10 and carries the full 20,129-word lexicon.
Add --domain tech (or medical, legal, science, business) so the
terminology of that field is protected. Add --topic <subject> to help the
scanner pick the right sense of an ambiguous word.
Read each finding. Every one carries level, ambiguous, and a sense
label per suggestion. Apply the judgement rules below. Most findings will be
rejected in a technical document — that is the expected outcome, not a
failure.
Apply with your normal editing tools, one considered change at a time.
For the settled subset only, salsi apply article.md does it mechanically.
Show the user a diff and the reasoning before finalising. Never rewrite
someone's text wholesale without showing what changed.
Only if you cannot run commands at all — no shell available — work from
reference/core-words.md, which holds the settled replacements as a plain
table. It is ~119 words against the lexicon's 20,129, so say plainly that you
are working without the full dictionary and be correspondingly conservative.
Judgement rules
Never touch
- Anything inside code fences, inline code, URLs, file paths, commands,
identifiers, or configuration keys. (
salsi already excludes these; if you
are working by hand, you must too.)
- Quoted text from another author, or a cited title. Quotations are evidence,
not drafts.
- Proper nouns: people, places, companies, products, brands, standards bodies.
- Numbers, units, and formulas.
Technical terms — the part people get wrong
Ask what the field itself writes, not what a dictionary offers.
- Use the Persian term when the field already uses it:
کامپیوتر→رایانه,
دیتابیس→پایگاه داده, دانلود→بارگیری, فایل→پرونده. These read as
normal technical Persian.
- Keep the loanword when it is the term of art:
الگوریتم, پروتکل,
کامپایلر, ایپیآی, توکن, کرنل. Translating these makes the text
harder for its own audience.
- Never invent a term. If the lexicon offers something you have not seen used
in that field, do not be the first to use it in someone else's document.
- In medicine, law and standards, a term can have a defined meaning. Changing
it changes the content. Leave it.
Meaning first
The lexicon is keyed by spelling, not sense. Check the sense label on each
suggestion before using it.
سرور in a systems document is server, not سُرور "joy".
استرس is تنش in mechanics but دلهره in psychology.
تست is آزمون in science, but a تُست is bread.
When ambiguous is true, either pick the sense the context demands or leave the
word alone. Never take the first suggestion because it is first.
Register and audience
- Formal, literary and cultural writing tolerates more purism.
- Technical documentation, legal text and UI copy tolerate much less: the reader
is there to accomplish something, not to admire the prose.
- Casual and conversational text should stay casual.
سلام، فایلو فرستادم
should not become a treatise.
Craft
- Be consistent. Once you choose
پرونده for فایل, use it everywhere in
the document, including headings.
- Introduce once. When an unfamiliar equivalent genuinely earns its place,
the first occurrence may carry the original:
بارگیری (دانلود). Once.
- Fix the grammar around the change. Persian suffixes change shape:
فایلها→پروندهها, خانهای patterns, ezafe. Re-read the sentence after
each edit.
- Do not increase word count much. A three-word phrase replacing one word is
usually a bad trade.
When the user asks for سرهنویسی
Full purism (--level pure) also targets Arabic loanwords that are ordinary
modern Persian — کتاب, علم, قانون. Only do this when the user explicitly
asks for it, and warn that the result reads as a deliberate literary style, not
as neutral Persian.
Levels
| Level |
What it offers |
Use it for |
safe |
Only the curated, settled replacements |
Automation, first pass, anything you cannot review |
standard (default) |
Everything except naturalised and protected words |
Normal editing with review |
pure |
The full lexicon |
سرهنویسی, only on request |
Commands
salsi scan FILE [FILE...] # --format text|json|markdown
salsi apply FILE # settled replacements only; --diff to preview
salsi lookup WORD # what does the lexicon offer, and in which sense
salsi domains # protection profiles available
salsi info # lexicon size and provenance
# useful flags
--level safe|standard|pure
--domain tech|medical|legal|science|business # repeatable
--topic "زبانشناسی" # disambiguates senses
--protect WORD / --protect-file FILE # your own exceptions
Exit code with --strict is non-zero when anything is found, which makes
salsi scan --level safe --strict usable as a CI or pre-commit check.
Reference
reference/judgement.md — worked examples of accepting and rejecting findings
reference/core-words.md — the settled replacements, usable without the CLI
reference/install.md — installing salsi and this skill elsewhere
Credit
The word list and every Persian equivalent come from پاسبان (Pasban) —
https://pasbans.ir. This skill is a way of using their work; it is not a
substitute for it. Keep the attribution when you redistribute.
1---2name: salsi3description: Write Persian with Persian words. Use when writing, editing, translating or reviewing Persian (Farsi) prose — articles, documentation, posts, essays, UI copy — to replace loanwords with Persian equivalents while leaving technical terminology, proper nouns and code untouched. Also use when the user asks for پارسی سره, سرهنویسی, فارسیسازی, or "make this text more Persian".4license: MIT5---67# سالسی — Write Persian with Persian words89Persian prose is full of borrowed words that have perfectly good Persian10equivalents. Replacing them makes writing clearer and more native. Replacing11them *carelessly* makes writing wrong — it mangles technical terms, changes12meaning, and produces words no reader recognises.1314This skill is about the difference.1516## The one rule that matters1718**A loanword is only worth replacing when the replacement is at least as clear19to the reader.** Purity is never worth clarity. If you are unsure whether a20reader would recognise the Persian equivalent, keep the original.2122## Workflow23241. **Scan** the text to find candidates:2526 ```bash27 salsi scan article.md --format json28 ```2930 If `salsi` is not on PATH, this skill ships its own copy — run31 `./bin/salsi` from this skill's directory instead. It needs nothing32 installed beyond Python 3.10 and carries the full 20,129-word lexicon.3334 Add `--domain tech` (or `medical`, `legal`, `science`, `business`) so the35 terminology of that field is protected. Add `--topic <subject>` to help the36 scanner pick the right sense of an ambiguous word.37382. **Read each finding.** Every one carries `level`, `ambiguous`, and a `sense`39 label per suggestion. Apply the judgement rules below. Most findings will be40 *rejected* in a technical document — that is the expected outcome, not a41 failure.42433. **Apply** with your normal editing tools, one considered change at a time.44 For the settled subset only, `salsi apply article.md` does it mechanically.45464. **Show the user a diff and the reasoning** before finalising. Never rewrite47 someone's text wholesale without showing what changed.4849Only if you cannot run commands at all — no shell available — work from50`reference/core-words.md`, which holds the settled replacements as a plain51table. It is ~119 words against the lexicon's 20,129, so say plainly that you52are working without the full dictionary and be correspondingly conservative.5354## Judgement rules5556### Never touch5758- Anything inside code fences, inline code, URLs, file paths, commands,59 identifiers, or configuration keys. (`salsi` already excludes these; if you60 are working by hand, you must too.)61- Quoted text from another author, or a cited title. Quotations are evidence,62 not drafts.63- Proper nouns: people, places, companies, products, brands, standards bodies.64- Numbers, units, and formulas.6566### Technical terms — the part people get wrong6768Ask **what the field itself writes**, not what a dictionary offers.6970- Use the Persian term when the field already uses it: `کامپیوتر`→`رایانه`,71 `دیتابیس`→`پایگاه داده`, `دانلود`→`بارگیری`, `فایل`→`پرونده`. These read as72 normal technical Persian.73- Keep the loanword when it *is* the term of art: `الگوریتم`, `پروتکل`,74 `کامپایلر`, `ایپیآی`, `توکن`, `کرنل`. Translating these makes the text75 harder for its own audience.76- Never invent a term. If the lexicon offers something you have not seen used77 in that field, do not be the first to use it in someone else's document.78- In medicine, law and standards, a term can have a *defined* meaning. Changing79 it changes the content. Leave it.8081### Meaning first8283The lexicon is keyed by spelling, not sense. Check the `sense` label on each84suggestion before using it.8586- `سرور` in a systems document is *server*, not `سُرور` "joy".87- `استرس` is `تنش` in mechanics but `دلهره` in psychology.88- `تست` is `آزمون` in science, but a `تُست` is bread.8990When `ambiguous` is true, either pick the sense the context demands or leave the91word alone. Never take the first suggestion because it is first.9293### Register and audience9495- Formal, literary and cultural writing tolerates more purism.96- Technical documentation, legal text and UI copy tolerate much less: the reader97 is there to accomplish something, not to admire the prose.98- Casual and conversational text should stay casual. `سلام، فایلو فرستادم`99 should not become a treatise.100101### Craft102103- **Be consistent.** Once you choose `پرونده` for `فایل`, use it everywhere in104 the document, including headings.105- **Introduce once.** When an unfamiliar equivalent genuinely earns its place,106 the first occurrence may carry the original: `بارگیری (دانلود)`. Once.107- **Fix the grammar around the change.** Persian suffixes change shape:108 `فایلها`→`پروندهها`, `خانهای` patterns, ezafe. Re-read the sentence after109 each edit.110- **Do not increase word count much.** A three-word phrase replacing one word is111 usually a bad trade.112113### When the user asks for سرهنویسی114115Full purism (`--level pure`) also targets Arabic loanwords that are ordinary116modern Persian — `کتاب`, `علم`, `قانون`. Only do this when the user explicitly117asks for it, and warn that the result reads as a deliberate literary style, not118as neutral Persian.119120## Levels121122| Level | What it offers | Use it for |123| --- | --- | --- |124| `safe` | Only the curated, settled replacements | Automation, first pass, anything you cannot review |125| `standard` (default) | Everything except naturalised and protected words | Normal editing with review |126| `pure` | The full lexicon | سرهنویسی, only on request |127128## Commands129130```bash131salsi scan FILE [FILE...] # --format text|json|markdown132salsi apply FILE # settled replacements only; --diff to preview133salsi lookup WORD # what does the lexicon offer, and in which sense134salsi domains # protection profiles available135salsi info # lexicon size and provenance136137# useful flags138--level safe|standard|pure139--domain tech|medical|legal|science|business # repeatable140--topic "زبانشناسی" # disambiguates senses141--protect WORD / --protect-file FILE # your own exceptions142```143144Exit code with `--strict` is non-zero when anything is found, which makes145`salsi scan --level safe --strict` usable as a CI or pre-commit check.146147## Reference148149- `reference/judgement.md` — worked examples of accepting and rejecting findings150- `reference/core-words.md` — the settled replacements, usable without the CLI151- `reference/install.md` — installing `salsi` and this skill elsewhere152153## Credit154155The word list and every Persian equivalent come from **پاسبان (Pasban)** —156<https://pasbans.ir>. This skill is a way of using their work; it is not a157substitute for it. Keep the attribution when you redistribute.