toPersianChars

Normalize Arabic-script characters (ي, ى, ك) and Arabic diacritics inside a Persian string to their Persian-script equivalents (ی, ک), while preserving Arabic text inside `{{...}}` template segments. Use when sanitizing user input from Arabic keyboards, normalizing for storage/comparison, or preparing text for Persian-only matching. Triggers on requests to "normalize Persian characters", "fix Arabic chars in Persian", "clean ي ك", or "toPersianChars".

persian-tools 3152d7b 3.9 KB Updated

File contents

persian-tools/persian-tools/tree/main/skills/toPersianChars commit 3152d7b259

Frequently asked questions

npx skillmds@latest add persian-tools/topersianchars