Syllable counts per line, caller dictionary first, labelled English heuristic second

$0.005 USDC per call · Business, finance and compliance · POST /api/v1/syllable-count · Id syllable-count

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

FieldTypeRequiredDescription
linesarray<string; length 0..500>; max 50 itemsyes
dictionaryarray<object>; max 500 itemsnoCaller counts; they override the rules.
patternarray<integer; 0..100>; max 50 itemsnoSame 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.

FieldTypeRequiredDescription
statusstring; one of "pass", "fail", "unknown", "unsupported"nopass: 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.
linesarray<object>no
witnessesarray<object>no
versionsobjectnoEvery semantic dependency of this answer (engine, tables and their as-of dates, tokenizer, calendar, rounding profile).
limitsarray<string>no
deterministicbooleannoAlways 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