{"uid":"cap_epxA7QpLH3jdJRIwX0acU","slug":"writerslogic-negex-negation-scope-analyzer-8f46dccf","name":"WritersLogic NegEx Negation Scope Analyzer","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/negation-scope?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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)."}}},"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_D0ssPSV5j8T13MzRgDwY9","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":"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","exampleAgentPrompt":"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.'","exampleUseCases":[{"title":"Clinical symptom negation screening","prompt":"Check this clinical note for negation and classify whether 'chest pain', 'shortness of breath', and 'edema' are negated or affirmed: 'Patient denies chest pain. No shortness of breath noted, but not only mild edema was observed.'"},{"title":"Legal document denial detection","prompt":"Scan this contract clause for negation cues and tell me if the terms 'liability', 'warranty', and 'obligation' are negated: 'The seller does not accept liability and disclaims any warranty, but not only the obligation to disclose.'"},{"title":"Sentiment negation in product reviews","prompt":"Using a negation window of 7 words, analyze this review text and classify whether 'reliable', 'fast', and 'durable' are negated: 'The device is not reliable nor particularly fast, but not only durability is a concern here.'"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T12:37:02.110Z","isFirstParty":false,"canonicalSlug":"writerslogic-negex-negation-scope-analyzer-8f46dccf"}