{"uid":"cap_EvDCO2er38mhl1BsGV8RC","slug":"irantools-persian-text-similarity-45f56c4e","name":"IranTools Persian Text Similarity","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_similarity?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["a","b"],"properties":{"a":{"type":"string"},"b":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ClqaENSnyAvlZ-2HhwN7K","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes semantic or string similarity between two Persian/Farsi text strings","exampleAgentPrompt":"How similar are these two Persian sentences — 'سلام، حال شما چطور است؟' and 'حال شما خوب است؟' — give me a similarity score.","exampleUseCases":[{"title":"Deduplicating Persian product listings","prompt":"I have two Farsi product descriptions and I want to know how similar they are so I can decide if they're duplicates — compare 'گوشی موبایل سامسونگ گلکسی A53' and 'سامسونگ گلکسی A53 موبایل'."},{"title":"Persian FAQ matching","prompt":"Check how similar this user's question in Farsi is to our FAQ entry — compare 'چگونه رمز عبور خود را تغییر دهم؟' with 'تغییر رمز عبور چگونه انجام می‌شود؟' so I know if it's a match."},{"title":"Persian plagiarism detection","prompt":"Compare these two Persian paragraphs for similarity and tell me how close they are — 'ایران کشوری با تاریخ و فرهنگ غنی است' versus 'ایران دارای فرهنگ و تاریخ بسیار غنی می‌باشد'."}],"resultDescription":"Returns a JSON object containing a similarity score (likely a float between 0 and 1) indicating how similar the two input Persian strings are, where higher values indicate greater similarity.","failureModes":["Missing required field 'a' or 'b' returns a validation error","Empty strings may return a default or zero similarity score","Non-Persian (non-Farsi) input may still be processed but results may be less meaningful","Payment failure (insufficient USDC balance) returns HTTP 402","Extremely long strings may cause latency or be rejected"],"whenToPreferThis":"Choose this endpoint when you need to compare two Persian/Farsi text strings for similarity, especially within an Iranian-language context where Persian-aware normalization and script handling are important. Prefer this over generic string distance libraries when the text may contain Persian-specific characters, diacritics, or Unicode homoglyphs that need proper normalization before comparison.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:37.545Z","isFirstParty":false,"canonicalSlug":"irantools-persian-text-similarity-45f56c4e"}