{"uid":"cap_FNPlkpi-HqOdvW4Rbh6fp","slug":"writerslogic-syllable-counter-pattern-checker-160747ba","name":"WritersLogic Syllable Counter & Pattern Checker","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/syllable-count?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Bzt9VLVt5VV4JDRRc9rSQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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'.","exampleUseCases":[{"title":"Haiku syllable validation","prompt":"Check if my haiku follows the 5-7-5 pattern — the lines are: 'Over the wintry forest', 'Winds howl in rage', 'With no leaves to blow'."},{"title":"Poetry meter analysis","prompt":"Count the syllables per word and per line for these three lines of my poem: 'Shall I compare thee to a summer day', 'Thou art more lovely and more temperate', 'Rough winds do shake the darling buds of May'. I want to know the syllable count for each line."},{"title":"Limerick structure check with custom names","prompt":"Count syllables in each line of my limerick and check the 8-8-5-5-8 pattern. Lines are: 'There once was a man named Beauchamp', 'Who travelled from Paris to Farnham', 'He stumbled one day', 'Got lost on the way', 'And ended back home in Beauchamp'. Also, please treat Beauchamp as 2 syllables and Farnham as 2 syllables."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T18:44:23.346Z","isFirstParty":false,"canonicalSlug":"writerslogic-syllable-counter-pattern-checker-160747ba"}