persian-tools

39 mods across 1 repository, 1.2k stars between them.

legalId

25

persian-tools/persian-tools

Skill Claude CodeCodex

Validate Iranian Legal IDs (شناسه ملی حقوقی, 11-digit company identifiers) using the official check-digit algorithm. Use when verifying company registration numbers in B2B forms or invoices. Triggers on requests mentioning verifyIranianLegalId, شناسه ملی, شناسه حقوقی, legal id, Iranian company id.

1.2k 1mo ago A 68 tokens original MIT

moneyWordsToNumber

26

persian-tools/persian-tools

Skill Claude CodeCodex

Parse Persian money phrases ("یک میلیون تومان", "دو هزار ریال", "سه تومن" colloquial) into a number, with toman/rial unit detection and optional cross-currency conversion. Use when parsing user-typed prices, voice/chat input for money amounts, or invoice OCR results. Triggers on mentions of moneyWordsToNumber…

1.2k 1mo ago A 108 tokens original MIT

nationalId

27

persian-tools/persian-tools

Skill Claude CodeCodex

Validate and generate Iranian National IDs (کد ملی, 10-digit). Use when verifying a user's submitted National ID, generating valid synthetic IDs for tests/fixtures, or checking whether a 3-digit prefix corresponds to a registered city. Triggers on requests mentioning national id, کد ملی, verifyIranianNationalId…

1.2k 1mo ago A 84 tokens original MIT

numberToWords

28

persian-tools/persian-tools

Skill Claude CodeCodex

Convert a number (integer up to Number.MAXSAFEINTEGER) into its Persian-words representation, with optional ordinal suffix. Use when generating invoice text, receipt amounts in words, reading numbers aloud, or accessibility output. Triggers on mentions of numberToWords, number to Persian words, to Persian words…

1.2k 1mo ago A 82 tokens original MIT

numberplate

29

persian-tools/persian-tools

Skill Claude CodeCodex

Parse Iranian license plates (cars and motorcycles) — normalize the input, classify the plate type and category (personal, government, taxi, diplomat, etc.), and resolve the trailing 2-digit code to a province. Use when parsing OCR output from license-plate cameras or validating user-entered plates in…

1.2k 1mo ago A 94 tokens original MIT

phoneNumber

30

persian-tools/persian-tools

Skill Claude CodeCodex

Validate Iranian mobile numbers, normalize between formats (0..., +98..., 0098...), extract the 4-digit operator prefix, and look up operator name plus province coverage. Use when validating SMS gateway input, building contact forms, or showing operator info next to a number. Triggers on mentions of…

1.2k 1mo ago A 98 tokens original MIT

remainingTime

31

persian-tools/persian-tools

Skill Claude CodeCodex

Calculate the structured (years/months/days/hours/minutes/seconds) breakdown of time remaining until a target Gregorian date, plus a stringified Persian phrase and an isFinished flag. Use when implementing countdown widgets, event timers, or deadline displays. Triggers on mentions of remainingTime, countdown Persian…

1.2k 1mo ago A 78 tokens original MIT

removeOrdinalSuffix

32

persian-tools/persian-tools

Skill Claude CodeCodex

Strip Persian ordinal endings (مین, ام, اُم, م, plus irregular forms like سوم → سه, یازدهم → یازده) from a Persian word, leaving the cardinal form. Use when canonicalizing user-typed ordinals before lookup or comparison. Triggers on mentions of removeOrdinalSuffix, strip Persian ordinal, "سوم → سه", "یازدهم → یازده"…

1.2k 1mo ago A 91 tokens original MIT

sheba

33

persian-tools/persian-tools

Skill Claude CodeCodex

Validate and parse Iranian Sheba codes (IBAN — "IR" + 24 digits) and resolve them to bank info plus, for many banks, the underlying account number. Use when validating IBAN entry in wire-transfer forms, displaying bank name from an IBAN, or extracting account number for legacy systems. Triggers on mentions of sheba…

1.2k 1mo ago A 99 tokens original MIT

slugify

34

persian-tools/persian-tools

Skill Claude CodeCodex

Generate URL-safe slugs from Persian text, with options for separator, lowercase, max length, custom replacements, and Persian digit handling. Use when building URL paths from article titles, file names from user-typed strings, or anchor IDs. Triggers on mentions of slugify, createSlug, URL-safe Persian, slug from…

1.2k 1mo ago A 75 tokens original MIT

textAnalyzer

35

persian-tools/persian-tools

Skill Claude CodeCodex

Run a full multi-dimensional analysis on Persian text — character/word counts, language ratios, readability, sentiment, keyword extraction, formality, and quality scoring. Use when building Persian writing assistants, content moderation, SEO scoring, or post-editor analytics. Triggers on mentions of analyzeText…

1.2k 1mo ago A 82 tokens original MIT

timeAgo

36

persian-tools/persian-tools

Skill Claude CodeCodex

Convert a Jalali (Persian) date-time string ("yyyy/mm/dd hh:mm:ss") into a human-readable "time ago" phrase in Persian ("اکنون", "5 دقیقه قبل", "حدود 1 سال قبل"). Use when displaying activity timestamps in Persian UIs. Triggers on mentions of timeAgo, چند دقیقه قبل, زمان نسبی, Jalali time ago, Persian relative time.

1.2k 1mo ago A 85 tokens original MIT

toPersianChars

37

persian-tools/persian-tools

Skill Claude CodeCodex

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…

1.2k 1mo ago A 103 tokens original MIT

verifyCardNumber

38

persian-tools/persian-tools

Skill Claude CodeCodex

Validate Iranian bank debit/credit card numbers (16 digits) using both the Luhn checksum and the Iranian BIN prefix list. Use when validating card-number entry in payment forms, or pre-flighting before calling a PSP. Triggers on requests mentioning verifyCardNumber, Iranian card validation, شماره کارت, Luhn check, BIN…

1.2k 1mo ago A 71 tokens original MIT

wordsToNumber

39

persian-tools/persian-tools

Skill Claude CodeCodex

Parse Persian number words ("سه هزار دویست و دوازده") into a number, with optional fuzzy typo correction and configurable output digit system. Use when parsing spoken/typed amounts, voice transcripts, or any free-form Persian numeric input. Triggers on mentions of wordsToNumber, parse Persian words, Farsi to number…

1.2k 1mo ago A 80 tokens original MIT