{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://sprachmittler.local/evaluation/corpus.schema.json", "title": "Sprachmittler evaluation corpus manifest", "type": "object", "required": ["version", "segments"], "additionalProperties": false, "properties": { "version": { "const": 1 }, "description": { "type": "string" }, "segments": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/segment" } } }, "$defs": { "segment": { "type": "object", "required": ["id", "source", "sourceLanguage", "targetLanguage", "category", "reference", "referenceKind"], "additionalProperties": false, "properties": { "id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]{1,63}$", "description": "Unique, stable identifier" }, "source": { "type": "string", "minLength": 1, "description": "Path to the source text, relative to the manifest" }, "sourceLanguage": { "type": "string", "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$" }, "targetLanguage": { "type": "string", "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$" }, "category": { "enum": ["en-de-prose", "de-en-prose", "technical", "legal", "ui", "markdown", "json", "placeholders", "numbers", "idioms", "long", "cjk", "rtl"] }, "reference": { "type": "string", "minLength": 1, "description": "Path to the reference translation, relative to the manifest" }, "referenceKind": { "enum": ["human", "public"] }, "notes": { "type": "string" } } } } }