Skip to content
Fourohtwo

Normalize Persian (Farsi) text

farsi-tools.johnaio281.workers.dev/api/fa/normalize

Normalize Persian (Farsi) text: convert Arabic letter variants (ي, ك) to their Persian forms, unify ZWNJ and spacing, and map Arabic-Indic digits to Persian digits. Use it before indexing, searching or comparing Persian text so that lookalike spellings match. Returns the normalized string.

BaseAnswering
GEThttps://farsi-tools.johnaio281.workers.dev/api/fa/normalize

Uptime100% of 4 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://farsi-tools.johnaio281.workers.dev/api/fa/normalize?text=%D8%AF%D9%86%D9%8A%D8%A7+%D9%83%D9%88%DA%86%D9%83+%D9%A1%D9%A2%D9%A3");
console.log(await res.json());

Example input

{
  "text": "دنيا كوچك ١٢٣"
}