# gov.halowerk.com Sentiment Analysis

> gov.halowerk.com Sentiment Analysis is a paid API for AI agents from gov.halowerk.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Tokenizes text against an English/German unigram lexicon and returns a normalized polarity score with lexicon coverage statistics

## Facts

- Endpoint: POST https://gov.halowerk.com/v1/sentiment-analysis
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gov-halowerk-com-sentiment-analysis-ba263db7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HCA9J1PEMAoDCuEZ69-17

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 gov-halowerk-com-sentiment-analysis-ba263db7 -d '<json body>'
```

Example prompt: Score the sentiment polarity of this text using the English/German lexicon: 'The new governance proposal significantly improves transparency and community trust, though implementation costs remain a concern.' — give me the normalized polarity score and lexicon coverage.

## When to prefer this

Choose this endpoint when you need a fast, deterministic, lexicon-based polarity score for English or German text without requiring deep semantic understanding. Ideal for governance-adjacent pipelines (proposal scoring, comment screening) where reproducibility and transparency of the scoring method matter more than nuanced sentiment. Prefer alternatives when negation handling, sarcasm detection, or contextual understanding is required.

## Known failure modes

- Empty or missing text field returns validation error
- Text exceeding 50,000 characters is rejected
- Non-English and non-German text produces low or zero coverage with unreliable scores
- Heavily negated or sarcastic text produces misleading polarity due to lack of context modeling
- Payment failure or insufficient USDC balance returns 402 error

## How this service works

Tokenizes caller-supplied text and counts matches against a small declared English/German unigram lexicon. It reports coverage and a normalized polarity score; it does not understand context, sarcasm, negation, policy merit, or public opinion.

## Output

Returns a normalized polarity score (likely -1 to +1 range) and lexicon coverage metrics indicating what fraction of tokens matched the declared English/German unigram lexicon. Does not account for context, negation, sarcasm, or semantic meaning beyond direct lexicon matches.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 50000,
   "minLength": 1,
   "description": "Text to score."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gov-halowerk-com-sentiment-analysis-ba263db7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gov.halowerk.com](https://www.zero.xyz/host/gov.halowerk.com/llms.txt)
