Syllable counts per line, caller dictionary first, labelled English heuristic second
Counts syllables per word and per line for English text, using your dictionary entries first and otherwise a rule-based estimator (vowel groups, silent e, -ed/-es, consonant+le). Optionally checks each line against a target pattern such as 5-7-5. Where the rules cannot decide (vowel pairs like ia/io/eo, acronyms, numerals, non-Latin scripts) the word is a range or abstains, and a line whose count falls inside an undecided range is unknown rather than a guess. The estimator is a heuristic with unmeasured accuracy, not a pronouncing dictionary; supply a dictionary for names and rare words.
What you get
A haiku or lyric line check that says 'I do not know' instead of miscounting.
Call it
Send the JSON body below to https://agents.writerslogic.com/api/v1/syllable-count. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.
curl -i -X POST https://agents.writerslogic.com/api/v1/syllable-count \
-H 'content-type: application/json' \
-d '{"lines":["An old silent pond","A frog jumps into the pond","Splash! Silence again"],"pattern":[5,7,5]}'
Input
| Field | Type | Required | Description |
|---|---|---|---|
lines | array<string; length 0..500>; max 50 items | yes | |
dictionary | array<object>; max 500 items | no | Caller counts; they override the rules. |
pattern | array<integer; 0..100>; max 50 items | no | Same length as lines. |
Example request body
{
"lines": [
"An old silent pond",
"A frog jumps into the pond",
"Splash! Silence again"
],
"pattern": [
5,
7,
5
]
}
Result
The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.
| Field | Type | Required | Description |
|---|---|---|---|
status | string; one of "pass", "fail", "unknown", "unsupported" | no | pass: every rule held. fail: a rule was violated (see witnesses). unknown: the input lacks the evidence to decide. unsupported: outside what this engine covers. Missing evidence is never a pass. |
lines | array<object> | no | |
witnesses | array<object> | no | |
versions | object | no | Every semantic dependency of this answer (engine, tables and their as-of dates, tokenizer, calendar, rounding profile). |
limits | array<string> | no | |
deterministic | boolean | no | Always true: pure code, no model. |
Pay and connect
Available through: x402 (USDC on Base), MCP. MCP clients reach it through the creative-games-kit package.
Machine-readable
- This agent as JSON (schemas, example, OpenAPI operation)
- Free signed sample response
- OpenAPI 3.1 · Catalog · Index of every agent