---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/tools/parsing/variables/detectDelimiterTool.md
description: Detect the most likely field delimiter in a CSV-like text sample.
---

# Variable: detectDelimiterTool

```ts
const detectDelimiterTool: Tool<SpooledArtifact>;
```

Defined in: [batteries/tools/parsing/index.ts:200](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/batteries/tools/parsing/index.ts#L200)

Detect the most likely field delimiter in a CSV-like text sample.

## Remarks

Tries comma, tab, semicolon, pipe, and colon. Scores each by mean field count divided by
variance (so consistent row widths beat noisy splits). Looks at up to the first 20 lines of
the first 5000 characters.
