# WritersLogic NegEx Negation Scope Analyzer

> WritersLogic NegEx Negation Scope Analyzer is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Applies NegEx-style rules to English text to detect negation cues, pseudo-negations, and scope terminators, then classifies target terms as negated, not negated, or unknown

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/negation-scope?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-negex-negation-scope-analyzer-8f46dccf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_epxA7QpLH3jdJRIwX0acU

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-negex-negation-scope-analyzer-8f46dccf -d '<json body>'
```

Example prompt: Analyze this sentence for negation using a scope window of 5 words and tell me whether the terms 'fever', 'cough', and 'rash' are negated, affirmed, or unknown: 'The patient denies fever and cough but not only rash.'

## When to prefer this

Choose this endpoint when you need fast, rule-based negation detection in English text without requiring a full NLP parser or ML model. Ideal for clinical NLP pipelines screening for denied symptoms, legal text analysis for disclaimed terms, or any structured text where you need character-level offset precision across multiple encoding formats. Prefer this over ML-based approaches when determinism, auditability, and low latency matter more than handling complex linguistic phenomena like double negation or sarcasm.

## Known failure modes

- Text exceeds 50,000 characters — returns validation error
- Target term list exceeds 50 items — returns validation error
- Individual target term exceeds 100 characters — returns validation error
- Window value outside 1–20 range — returns validation error
- Non-English text — rules may produce unreliable or empty results since termset is English-only
- Double negation or sarcasm — not interpreted, may produce incorrect classification
- Empty text string — returns validation error

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

Returns a list of detected negation cues with their scope windows and character offsets in UTF-16, code points, UTF-8 bytes, and graphemes. For each provided target term, reports per occurrence whether it falls within a negation scope (negated), outside any scope (not negated), or near a pseudo-negation (unknown). Does not perform parsing, semantic reasoning, or truth judgment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 50000,
   "minLength": 1,
   "description": "Text to analyze."
  },
  "window": {
   "type": "integer",
   "maximum": 20,
   "minimum": 1,
   "description": "Words a cue covers (NegEx uses 5). Default 5."
  },
  "targets": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 100
   },
   "maxItems": 50,
   "description": "Terms to classify (literal, case-insensitive, whole words)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-negex-negation-scope-analyzer-8f46dccf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
