Find negation cues and the words they cover; report whether given terms fall inside a negation scope
Applies NegEx-style rules (the English termset of negspacy, MIT, derived from NegEx) to text: finds negation cues, pseudo-negations such as 'not only', and scope terminators such as 'but', and returns each cue's scope window with offsets in UTF-16, code points, UTF-8 bytes and graphemes. Given target terms, reports per occurrence whether it is negated, not negated by the rules, or unknown (near a pseudo-negation). Rule-based and English only: no parsing, double negation and sarcasm are not interpreted. Does not judge truth.
What you get
Stops 'no evidence of fraud' being read as 'fraud'. 50,000 characters per $0.005 call.
Call it
Send the JSON body below to https://agents.writerslogic.com/api/v1/negation-scope. 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/negation-scope \
-H 'content-type: application/json' \
-d '{"text":"The scan shows no sign of fracture, but there is swelling.","targets":["fracture","swelling"]}'
Input
| Field | Type | Required | Description |
|---|---|---|---|
text | string; length 1..50000 | yes | Text to analyze. |
targets | array<string; length 0..100>; max 50 items | no | Terms to classify (literal, case-insensitive, whole words). |
window | integer; 1..20 | no | Words a cue covers (NegEx uses 5). Default 5. |
Example request body
{
"text": "The scan shows no sign of fracture, but there is swelling.",
"targets": [
"fracture",
"swelling"
]
}
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. |
cues | array<object>; max 500 items | no | |
targets | array<object>; max 50 items | 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 context-evidence-kit package.
Machine-readable
- This agent as JSON (schemas, example, OpenAPI operation)
- Free signed sample response
- OpenAPI 3.1 · Catalog · Index of every agent