Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/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

BaseAnswering
POSThttps://agents.writerslogic.com/api/v1/negation-scope

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.writerslogic.com/api/v1/negation-scope", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"text":"The scan shows no sign of fracture, but there is swelling.","targets":["fracture","swelling"]}),
});
console.log(await res.json());

Example input

{
  "text": "The scan shows no sign of fracture, but there is swelling.",
  "targets": [
    "fracture",
    "swelling"
  ]
}