# WritersLogic CSV Dialect Detector

> WritersLogic CSV Dialect Detector 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).

Detects CSV dialect properties (delimiter, quote character, line terminator, BOM, header row, preamble) from raw CSV text per RFC 4180, returning scored candidates and header repair suggestions

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/csv-dialect?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-csv-dialect-detector-687363a5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ed-HZ6ukcFsykJmn9cbqz

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-csv-dialect-detector-687363a5 -d '<json body>'
```

Example prompt: Can you detect the dialect of this CSV text for me — figure out the delimiter, quote character, line ending, whether there's a BOM, and if there's a header row or any preamble lines before it?

## When to prefer this

Use this endpoint when an agent needs to programmatically parse a CSV file of unknown origin and must first determine its dialect before processing. It is especially valuable when dealing with international exports (semicolon-delimited), TSV files, pipe-delimited files, or files with preamble rows above the header. Prefer this over generic CSV parsers when you need RFC 4180-compliant detection that handles quoted delimiters and embedded CRLFs correctly. It does not fix data rows — for type coercion or spreadsheet hazards, pair with csv-roundtrip afterwards.

## Known failure modes

- Returns 'unknown' dialect when two candidates score equally well — no guessing is performed
- Returns 'unknown' for single-column files where delimiter detection is ambiguous
- Input text truncated to 50000 characters for detection sampling (structure checks cover full 200000-char input)
- Does not coerce types or repair data rows — only dialect and header metadata is returned
- Empty or whitespace-only input may yield no candidates

## How this service works

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

## Output

Returns all candidate dialects with confidence scores, the detected delimiter, quote character, line terminator, BOM presence, header row offset (preamble lines count), whether a header exists, each ragged row paired with its physical line number, and header repair suggestions (empty, duplicate, or BOM-polluted names with deterministic replacements). Reports 'unknown' when two dialects score equally or the file appears to be single-column.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 200000,
   "description": "CSV text, up to 200000 characters. Detection samples the first 50000; structure checks cover all of it."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-csv-dialect-detector-687363a5/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)
