# Unicode Text Normalizer with Script Classification & Homoglyph Detection

> Unicode Text Normalizer with Script Classification & Homoglyph Detection is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Normalizes Unicode text to NFC/NFD/NFKC/NFKD forms and classifies each codepoint by script, detecting homoglyphs, invisible characters, RTL markers, and BOMs

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/text-normalize
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-e1d1e6e3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_n6tpoPjfXL0V1S7Shr3w3

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-deployer-x402-deployer-workers-dev-e1d1e6e3 -d '<json body>'
```

Example prompt: Can you normalize this text to NFKC form and check it for homoglyphs or invisible characters: 'pаypal.com' — I suspect that 'а' might be a Cyrillic character pretending to be Latin?

## When to prefer this

Choose this endpoint when you need pure client-side Unicode normalization combined with script-level security analysis — especially for detecting homoglyph spoofing, mixed-script attacks, or invisible/directional character injection in usernames, URLs, or untrusted text input. Prefer this over generic text sanitizers when per-codepoint script classification is needed alongside normalization.

## Known failure modes

- Invalid or missing normalization form parameter returns an error
- Malformed request body returns 400
- Empty input text may return empty result or validation error
- Extremely long strings may time out or be truncated

## How this service works

Text normalize. Unicode NFC / NFD / NFKC / NFKD normalization plus per-codepoint script classification (Latin / Cyrillic / Greek / Hebrew / Arabic / CJK / etc.), homoglyph detection (the Cyrillic 'а' that looks like Latin 'a'), and invisible / RTL / BOM detection. Same backend as unicode-normalize. Pure JS — no upstream API.

## Output

Returns the normalized text in the requested Unicode form (NFC/NFD/NFKC/NFKD), per-codepoint script labels (Latin, Cyrillic, Greek, Hebrew, Arabic, CJK, etc.), flags for detected homoglyphs (e.g. Cyrillic 'а' vs Latin 'a'), and presence of invisible characters, RTL override markers, and byte order marks.

## Example request

```json
{
 "input": {
  "body": {
   "form": "NFC",
   "text": "Hello world"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-e1d1e6e3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
