# WritersLogic Syllable Counter & Pattern Checker

> WritersLogic Syllable Counter & Pattern Checker 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-18).

Counts syllables per word and per line for English text, optionally validating each line against a target syllable pattern (e.g. 5-7-5 for haiku), using a rule-based estimator with optional caller-supplied dictionary overrides.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/syllable-count?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-syllable-counter-pattern-checker-160747ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FNPlkpi-HqOdvW4Rbh6fp

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-syllable-counter-pattern-checker-160747ba -d '<json body>'
```

Example prompt: Can you count the syllables in each line of my haiku and check if they follow the 5-7-5 pattern? The lines are: 'An old silent pond', 'A frog jumps into the pond', 'Splash! Silence again'.

## When to prefer this

Use this endpoint when you need programmatic syllable counting for English poetry or text with optional pattern validation (e.g. haiku 5-7-5, limerick). It is especially useful when working with unusual names or rare words that you can supply via the dictionary override. It is not a full pronouncing dictionary and handles ambiguous cases by returning ranges rather than guessing, which is preferable for accuracy-sensitive poetry tools.

## Known failure modes

- Input lines array is empty or exceeds 50 items — validation error
- Pattern array length does not match lines array length — validation error
- Non-Latin script or numeral-heavy text may produce ranges or abstentions rather than firm counts
- Proper nouns and rare words produce heuristic estimates unless supplied in the dictionary
- Line exceeds 500 character limit — validation error
- Acronyms and abbreviations may produce indeterminate ranges

## How this service works

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

## Output

Returns syllable counts per word and per line for each input line; for lines with a target pattern, indicates whether the line matches, fails, or is unknown (when the count is ambiguous). Ambiguous words (vowel pairs like ia/io, acronyms, numerals) return a range rather than a fixed count, and lines depending on them may be marked unknown rather than pass or fail.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "lines": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 500,
    "description": "One line of text."
   },
   "maxItems": 50,
   "minItems": 1
  },
  "pattern": {
   "type": "array",
   "items": {
    "type": "integer",
    "maximum": 100,
    "minimum": 0,
    "description": "Target syllables for the line at the same position."
   },
   "maxItems": 50,
   "description": "Same length as lines."
  },
  "dictionary": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "word",
     "syllables"
    ],
    "properties": {
     "word": {
      "type": "string",
      "maxLength": 60,
      "description": "Word, matched case-insensitively."
     },
     "syllables": {
      "type": "integer",
      "maximum": 20,
      "minimum": 1,
      "description": "Syllable count."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 500,
   "description": "Caller counts; they override the rules."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-syllable-counter-pattern-checker-160747ba/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)
