{"uid":"cap_8MeWXbORR5AfNSXLDPdlf","slug":"irantools-unicode-homoglyph-fold-1a83b619","name":"IranTools Unicode Homoglyph Fold","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/homoglyph_fold?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.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_8FqcCIR4P9ONptqulaotr","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":"Folds Unicode homoglyphs in a text string into their canonical equivalents, normalizing visually similar characters that may differ in code point","exampleAgentPrompt":"Can you fold all the homoglyphs in this Persian text into their canonical Unicode equivalents: 'ﮐﺘﺎب ﻋﻠﻢ ﺩﺍﻧﺶ'? I want to make sure visually similar characters are unified before I compare strings.","exampleUseCases":[{"title":"Deduplicating user search queries","prompt":"I'm getting duplicate search hits because users are typing the same Persian word with different-looking but equivalent Unicode characters — can you fold the homoglyphs in 'كتاب' and 'کتاب' so I can compare them as the same string?"},{"title":"Preventing homoglyph spoofing in usernames","prompt":"Someone registered a username that looks identical to an existing one but uses lookalike Unicode characters — can you run homoglyph folding on the string 'аdmin' to see if it maps to a canonical form I should block?"},{"title":"Normalizing RTL text before indexing","prompt":"Before I index this Arabic-script content in my search engine, I need to fold any homoglyphs so documents with visually identical words aren't treated as different — please canonicalize this text: 'دانشگاه تهران'"}],"resultDescription":"Returns an object containing the homoglyph-folded version of the input text, where visually similar Unicode characters have been replaced with their canonical equivalents, enabling reliable string comparison and deduplication","failureModes":["Missing 'text' field returns a validation error","Empty string input may return the input unchanged","Extremely long strings may hit payload size limits","Non-UTF-8 encoded input may cause unexpected behavior","Payment failure via x402 if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need to normalize Unicode text that may contain visually indistinguishable but code-point-distinct characters — especially in Persian, Arabic, or mixed-script contexts — before string matching, indexing, deduplication, or security checks. Prefer it over simple NFC/NFD normalization when the concern is lookalike characters across scripts rather than just canonical decomposition.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:33.372Z","isFirstParty":false,"canonicalSlug":"irantools-unicode-homoglyph-fold-1a83b619"}