{"uid":"cap_aHDpnxKltgKgUbd_xQri8","slug":"irantools-persian-text-normalizer-2a796985","name":"IranTools Persian Text Normalizer","description":"Persian and Iranian utilities for AI agents, plus general text/Unicode tooling. Jalali (Solar Hijri) calendar conversion, Iranian national ID / SHEBA / bank card / postal code / economic code validation, province and city lookup, official public holidays, Persian text normalization, keyword extraction, sentence splitting, similarity, HTML stripping, RTL fixing, Unicode homoglyph folding, script detection, NFC/NFD normalization, grapheme counting, date description, business-day counting, slugify, FNV-1a hashing, Shannon entropy, format and encoding detection, byte sizes. Pay per call in USDC on Base via x402 - no signup, no API key, no KYC. The same tools are also exposed as MCP tools at /mcp.","url":"https://irantools.johnaio281.workers.dev/api/iran/persian_normalize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GDyKBoWp9OI89iQMUwbJB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes Persian (Farsi) text by standardizing characters, fixing common encoding issues, and applying Iranian typography conventions","exampleAgentPrompt":"Can you normalize this Persian text for me so it has consistent characters and encoding: 'می‌خواهم به ايران بروم'?","exampleUseCases":[{"title":"Normalize scraped Iranian news text","prompt":"I've scraped some Persian news articles and the text has mixed Arabic and Persian characters all jumbled together — can you normalize this text so it's consistently Persian: 'اين خبر مهم است و بايد خواند'?"},{"title":"Prepare Farsi content for search indexing","prompt":"Before I index these Persian product descriptions into my search engine, I need them normalized so searches work properly. Can you normalize this Farsi text: 'قيمت كالا ٢٠٠٠ تومان است'?"},{"title":"Clean Persian user input for database storage","prompt":"A user submitted this Persian comment but it looks like it has inconsistent characters and encoding issues — please normalize it before I store it: 'دوستان عزيز، سلام و خوش آمديد به سايت ما'"}],"resultDescription":"Returns a JSON object containing the normalized Persian text with standardized Unicode characters, corrected Arabic-to-Persian character substitutions (e.g., ي→ی, ك→ک), fixed zero-width non-joiners, normalized Persian numerals, and cleaned-up punctuation and whitespace.","failureModes":["Empty or missing 'text' field returns a 400 validation error","Non-string input type causes schema validation failure","Extremely long text strings may time out or be rejected","Payment failure via x402 protocol returns 402 Payment Required before processing"],"whenToPreferThis":"Choose this endpoint when you need to standardize Persian/Farsi text that may contain mixed Arabic and Persian Unicode code points, inconsistent character encodings, or typography issues before NLP processing, search indexing, or database storage. It is especially useful for text scraped from Iranian websites where character inconsistencies are common. Prefer this over generic Unicode normalization (NFC/NFD) when the text is specifically Persian and requires Iranian typography conventions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:11.788Z","isFirstParty":false,"canonicalSlug":"irantools-persian-text-normalizer-2a796985"}