Bulgarian Language · Public Preview · API v2

BgLang

Public Bulgarian text analysis editor, morphological engine & versioned HTTP API v2 (/bglang)

Opens a live Bulgarian text analysis editor directly at /bglang with documentation at /bglang/docs and a versioned API at /bglang/api/v2.

Public Text Editor (/bglang) Stable HTTP API (/bglang/api/v2) Lemmatization & Inflections Stress & Word Families Context & Syntactic Roles
map.bg/bglang · Text Analysis Editor — 'Нова книга стои на масата.' IN ACTION

Morphological, accentual, and syntactic breakdown returned by the public editor:

Нова
adjective · fem. sg. · lemma: нов · stress: но́ва · role: modifier
ЛЕМА: НОВ
книга
noun · fem. sg. indef. · lemma: книга · stress: кни́га · role: subject
ПОДЛОГ
стои
verb · imperf., pres., 3p sg. · lemma: стоя · stress: стои́ · role: predicate
СКАЗУЕМО
на масата
preposition + noun fem. sg. def. · lemma: маса · stress: ма́сата
ОБСТОЯТЕЛСТВО
KEY CAPABILITIES

What BgLang Delivers

MORPHOLOGY

Full Morphology, Lemmas & Paradigms

Exact lemma lookup, fast prefix autocomplete, and complete grammatical paradigm generation without external cloud dependencies.

STRESS

Accurate Stress Across All Forms

Places and validates stress marks across inflected and derived Bulgarian words using a verified accentual graph.

DERIVATION

Word Families & Morpheme Breakdown

Maps derivational families, prefixes, roots, and suffixes — ideal for smart search indexing, education, and linguistic tools.

EDITOR & API V2

Public Editor (/bglang/demo), Docs (/bglang/docs) & /bglang/api/v2

Opening /bglang launches the live text editor directly, /bglang/demo-lab exposes all 14 operations interactively, and /bglang/api/v2/* remains on a stable versioned path across updates.

PUBLIC APPLICATION & STABLE API

Stable Versioned HTTP API (/bglang/api/v2) & Quick Example

All 14 linguistic operations accept a strict UTF-8 JSON object with a text field and return a deterministic ApiEnvelope carrying component versions, the loaded package SHA-256, and explicit coverage flags.

Public Preview · HTTP API v2
POST /bglang/api/v2/analyze-text cURL · UTF-8 JSON
curl -sS -X POST "https://map.bg/bglang/api/v2/analyze-text" \
  -H "Content-Type: application/json; charset=utf-8" \
  -d '{"text":"Нова книга стои на масата. Аз чета."}'
HTTP 200 · ApiEnvelope /bglang/api/v2
{
  "apiVersion": "2",
  "evidenceFormat": "shared-analyses-v1",
  "package": {
    "packageId": "bglang-neutral:9e9a4f441f679542",
    "manifestSha256": "9db1df176daea9b703ebbf42022c7b1b871f2daecaa5d9178e0b788408f2e853"
  },
  "limits": { "effective": 32, "hostMaximum": 32, "scope": "per-word-analysis" },
  "coverage": { "hostTruncated": false, "possibleTruncation": false },
  "data": { "tokens": [ /* UTF-16 spans, analysisRef, lexical, context, syntax */ ] },
  "wordAnalyses": [ /* споделени уникални анализи за отговора */ ]
}
VERSION & PROVENANCE

Verified Package & Metadata

GET /bglang/api/v2/ returns the active release version, package ID, and exact manifestSha256.

RATE & INPUT LIMITS

Explicit Public Host Limits

Up to 30 POST requests/min per IP (HTTP 429 with Retry-After), 128 KiB max request body, 16,384 UTF-16 chars for text (256 for single words), and a 10 s deadline.

STRICT ERROR FORMAT

Predictable Error Contract

Unknown JSON fields are rejected upfront (400 invalid-json). Protocol errors return a compact { "code", "message" } JSON with status 400, 413, 415, 429, 503, or 504.

ZERO TEXT RETENTION

Privacy by Default

Request body logging is off and analyzed texts are never cached on disk; /health/live and /health/ready operate independently of the worker queue.

HOW IT WORKS IN PRACTICE

Practical Highlights

  • Public endpoints: editor /bglang, documentation /bglang/docs, lab /bglang/demo-lab, and metadata /bglang/api/v2/.
  • At /bglang/api/v2/, versions.host identifies the BgLang release serving the editor and package.manifestSha256 identifies its dictionary.
  • Request logging is disabled by default; submitted user text is processed in memory and is never retained on disk.