- Home
- Skills
- Mobile Development
- Arabic App Strings Gate: Plurals, RTL & Script QA
Works with the AI Agents you already use
Arabic App Strings Gate: Plurals, RTL & Script QA
- `many` (11–99) takes a singular accusative: ١١ ملفًا.
$9
Arabic App Strings Gate: Plurals, RTL & Script QA
Example session with this skill installed
Before we ship the Arabic release of our shop app, check ar.json against en.json (i18next + ICU plurals). Fix what you can and tell me whether we can ship.
- Read your context and instructions
- Compiled the arabic app strings
Decision: BLOCK → SHIP after fixes. 79/100 before: 1 missing required plural form, 1 Persian letter, and 1 plural branch grammatically wrong. 100/100 after the fixes below.
1. Gate output
python3 scripts/ar_strings_gate.py en.json ar.json
──────────────────────────────────────────────────────────────────────────────
ARABIC APP STRINGS GATE source: en.json (14 msgs) arabic: ar.json (14 msgs)
──────────────────────────────────────────────────────────────────────────────
ERROR=2 WARN=4 REVIEW=1 INFO=1 SCORE 79/100 FIX BEFORE RELEASE
HOW THAT SCORE WAS REACHED
100 starting points
-12 2 ERROR finding(s) × 6 (cap 60)
-8 4 WARN finding(s) × 2 (cap 25)
-1 1 REVIEW finding(s) × 1 (cap 10)
──────────────────────────────────────────────────────────────────────────────
ERROR A1 product.in_stock
Missing plural form 'many' — used for 11–99 (e.g. ١١ ملفًا)
ERROR A6 orders.shipped
Persian letter(s) in Arabic text (breaks search and sorting)
evidence: ک -> ك
fixed: '{courier} استلم طلبك'
WARN A1 product.in_stock
Missing plural form 'zero' — used for 0 (e.g. لا توجد ملفات)
WARN A2 cart.items
'few' is identical to 'many': 3–10 takes a plural noun, 11+ does not — one of them is wrong
evidence: {{count}} منتجات في سلتك
WARN A5 orders.shipped
Starts with a placeholder or Latin word: with auto direction the whole line renders left-to-right
evidence: {courier} استلم طلبک
WARN A5 promo.banner
Starts with a placeholder or Latin word: with auto direction the whole line renders left-to-right
evidence: Apple Pay متاح الآن عند الدفع
REVIEW A2 product.reviews
'many' is identical to 'other'; 11–99 normally takes the singular in the accusative (ملفًا / رسالةً)
evidence: # مراجعة
INFO A7 orders.points
Latin punctuation in Arabic text (Arabic uses ؟ ، ؛)
evidence: ?
──────────────────────────────────────────────────────────────────────────────
2. Plural grammar review (reviewed judgement, not script output)
cart.items — test numbers 0 / 1 / 2 / 3, 105 / 11, 115 / 100
| Branch | Arabic | Rule | Verdict | Correction |
|---|---|---|---|---|
| zero | سلتك فارغة | negation phrase | CORRECT | – |
| one | منتج واحد في سلتك | singular + واحد | CORRECT | – |
| two | منتجان في سلتك | dual, nominative | CORRECT | – |
| few | {{count}} منتجات في سلتك | 3–10: plural | CORRECT | – |
| many | {{count}} منتجات في سلتك | 11–99: singular accusative | WRONG | {{count}} منتجًا في سلتك |
| other | {{count}} منتج في سلتك | 100+: singular genitive | CORRECT | – |
product.in_stock: added zero {نفدت الكمية} and `many {بقيت
قطعةً فقط}. The existing بقي
قطع` is correct, because a masculine verb is allowed with a broken plural.
- product.reviews:
many {# مراجعة}is acceptable unvocalised. Changed to# مراجعةًfor clarity.
3. Fixes applied
--write-fixed ar.fixed.jsonreplaced ک with ك inorders.shippedand added an RLM before{courier}…and beforeApple Pay….- The grammar corrections were applied on top.
orders.pointswas rewritten as a label (نقاط المكافأة التي ربحتها: {points}), which also removes the Latin?.- Re-run result:
ERROR=0 WARN=0 REVIEW=0 INFO=0 SCORE 100/100 PASS.
Out of scope: layout mirroring, strings built in code, iOS files, tone.
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
Arabic has six plural forms, and most translation files ship two:
few(3–10) takes a plural noun: ٣ ملفات.many(11–99) takes a singular accusative: ١١ ملفًا.other(100+) takes a singular genitive: ١٠٠ ملف.
Copy one branch into another and the app is wrong for a whole range of numbers. Generic i18n linters miss this, because nothing is technically missing.
Three other silent breakers:
- A name placeholder at the start of a line flips the whole line left-to-right.
- A translator on a Persian keyboard types ی and ک. They look identical but break search and sorting.
- Placeholders like
%2$sget dropped.
What it does
- Gate (deterministic). 8 checks across JSON, i18next, ICU MessageFormat, Flutter ARB and Android strings.xml. The score shows its arithmetic.
- Grammar review. Every plural branch is tested at 0, 1, 2, 3, 105, 11, 115 and 100 against a written reference of Modern Standard Arabic number–noun rules: agreement, the dual's case and gender polarity.
- Fixed copy. A new file holds the Persian letter and digit fixes, direction marks, and the grammar corrections you approve. The gate then re-runs and reports the new score.
Why trust it
- Standard-library Python, no network. It never overwrites your file.
- An independent QA pass tried to break it (percent signs, ICU
#, symlinks, BOM files, nested JSON); every bug it found was fixed before release. - The grammar reference ships in the package, so you can check every rule.
What it will not tell you
It does not translate from scratch or judge CSS/layout mirroring. It does not read iOS .stringsdict files, and it is not a translation-quality score. Dialectal brand voice is respected when you name it.
Built by a native Arabic speaker who works with Arabic linguistics.
Supports JSON, i18next, ICU MessageFormat, Flutter ARB and Android strings.xml. Not iOS .stringsdict/.xcstrings, not i18next v3 key_0..key_5. Does not check CSS/layout mirroring or strings built by concatenation in code. Grammar review covers Modern Standard Arabic; dialectal brand voice is reported as a choice, not an error. Not a translation-quality score.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 10 days ago
Requires
Permissions
File Scopes
Reads the two files you name. Writes only the new file given to --write-fixed, never the input. No network.