# WritersLogic Locale-Aware Number & Money String Parser

> WritersLogic Locale-Aware Number & Money String Parser is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Parses up to 100 locale-aware number or money strings into canonical decimal representations, handling ambiguous separators, currency symbols, and non-ASCII digit systems.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/locale-number?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-locale-aware-number-money-string-parser-05138c42
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RR96yHibsAu51zTsrY3_f

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 writerslogic-locale-aware-number-money-string-parser-05138c42 -d '<json body>'
```

Example prompt: Parse these price strings from our German supplier's invoice into clean decimal numbers — they're formatted like '1.234,56' and '(500,00)' — use locale de-DE and treat the currency as EUR.

## When to prefer this

Choose this endpoint when you need to reliably parse number or money strings from real-world documents, emails, or tables that use locale-specific formatting (European comma-as-decimal, Swiss apostrophe, Indian lakh grouping, accounting parentheses, non-ASCII digits). It is preferable to a generic regex or LLM guess because it uses CLDR authoritative separator rules per locale and explicitly surfaces ambiguity rather than silently guessing — critical for financial correctness. Use it over a currency-conversion API when you only need normalization of the numeric value, not FX conversion.

## Known failure modes

- Locale tag does not match a known CLDR locale — parsing falls back to ambiguous mode
- Currency code contradicts the symbol in the string — item fails with contradiction error
- Input string exceeds 64 characters — rejected with validation error
- Batch exceeds 100 items — rejected with schema error
- String contains a digit system not supported — may return unknown or error
- Non-BCP-47 locale pattern — rejected by schema regex

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

For each input string, the agent receives a canonical decimal string (e.g. '1234.56') when unambiguous, or an 'unknown' status with the full list of valid numeric readings when the string is ambiguous without a locale. Currency symbol ambiguity (e.g. $ or ¥ shared by multiple currencies) is flagged unless resolved by the caller-supplied currency code. No rounding or currency conversion is applied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "text"
    ],
    "properties": {
     "text": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1
     },
     "locale": {
      "type": "string",
      "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8}){0,3}$",
      "maxLength": 35,
      "description": "BCP 47 tag whose CLDR separators apply, e.g. de-DE, en-IN, de-CH."
     },
     "currency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "Expected currency; resolves an ambiguous symbol and fails a contradicting one."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 100,
   "minItems": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-locale-aware-number-money-string-parser-05138c42/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
