Extract hedging and certainty cues (may, probably, clearly, approximately) from text with offsets

$0.005 USDC per call · Agent infrastructure · POST /api/v1/hedge-extract · Id hedge-extract

Finds hedge and booster cues in an agent's or source's text using a fixed English lexicon (modals, epistemic verbs, adverbs and adjectives, approximators, shield phrases, certainty boosters) plus caller-supplied phrases, and returns each cue with its category, the sentence it sits in, and offsets in UTF-16, code points, UTF-8 bytes and graphemes. Rule-based and English only: a cue is a word match, not a reading of meaning ('may' can be permission); ambiguous cues carry a note. No cue found returns unknown, which is not evidence of certainty. Does not rewrite or score confidence.

What you get

Lets an agent notice that a source said 'may' before reporting 'does'. 100,000 characters per $0.005 call.

Call it

Send the JSON body below to https://agents.writerslogic.com/api/v1/hedge-extract. 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/hedge-extract \
  -H 'content-type: application/json' \
  -d '{"text":"The patch may reduce latency by roughly 20%. It clearly fixes the crash."}'

Input

FieldTypeRequiredDescription
textstring; length 1..100000yesText to scan.
extraCuesarray<object>; max 50 itemsnoCaller cues added to the lexicon.

Example request body

{
  "text": "The patch may reduce latency by roughly 20%. It clearly fixes the crash."
}

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.
cuesarray<object>; max 500 itemsno
sentencesarray<object>; max 500 itemsnoOnly sentences that contain a cue.
truncatedbooleanno
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 context-evidence-kit package.

Machine-readable