# NoJunk Moderate Language Identification

> NoJunk Moderate Language Identification is a paid API for AI agents from nojunk-moderate.mick8511.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

Identifies the language of one text or a batch of up to 50 texts, returning ISO 639-1 code, language name, and confidence score with script-based fallback.

## Facts

- Endpoint: POST https://nojunk-moderate.mick8511.workers.dev/language?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nojunk-moderate-language-identification-36cef565
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dB0uCe1nOtrJMSi-DaUOQ

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 nojunk-moderate-language-identification-36cef565 -d '<json body>'
```

Example prompt: Can you detect the language of this text for me: 'Bonjour, comment puis-je vous aider aujourd'hui?' — I need the ISO 639-1 code, the full language name, and how confident you are.

## When to prefer this

Choose this endpoint when you need fast, per-text language identification with ISO 639-1 output and a confidence score, especially when processing batches of up to 50 texts in a single call. The script-based fallback makes it more robust for short or ambiguous inputs than pure statistical models. It pairs well with the other NoJunk Moderate endpoints (PII detection, sentiment, safety) for multilingual content moderation pipelines.

## Known failure modes

- Empty or whitespace-only text returns an error or low-confidence result
- Texts exceeding 20,000 characters are rejected
- Batch exceeding 50 items is rejected
- Very short texts (e.g. 1–2 words) may yield low confidence scores
- Mixed-language texts may return only the dominant language
- Rare or minority languages may fall back to script-based detection with lower accuracy
- Payment failure (402) if USDC balance is insufficient

## How this service works

Text Moderation language: Language identification (ISO 639-1 code, name, confidence) for one text or a batch of up to 50, with a script-based fallback.

## Output

Returns an ISO 639-1 language code (e.g. 'fr'), the full language name (e.g. 'French'), and a confidence score (0–1) for each input text. For ambiguous or low-signal texts, a script-based fallback heuristic is applied. Batch mode returns one result object per input text in order.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 20000,
   "minLength": 1,
   "description": "One text to identify (1 to 20000 characters)"
  },
  "texts": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 20000
   },
   "maxItems": 50,
   "minItems": 1,
   "description": "Batch of 1 to 50 texts (use instead of text)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nojunk-moderate-language-identification-36cef565/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nojunk-moderate.mick8511.workers.dev](https://www.zero.xyz/host/nojunk-moderate.mick8511.workers.dev/llms.txt)
