core/packs/common/schema/morphology.schema.json

30 lines
1 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "CORE Morphology Record",
"description": "A single inflected surface form for a lemma, with its full morphological feature bundle.",
"type": "object",
"required": ["record_id", "lemma_id", "surface_form", "features"],
"properties": {
"record_id": {
"type": "string",
"description": "Unique identifier in the form '<lemma_id>:<feature_summary>'."
},
"lemma_id": {
"type": "string",
"description": "Foreign key to a lemma record in the same pack."
},
"surface_form": {
"type": "string",
"description": "The fully inflected surface form in native script."
},
"features": {
"type": "object",
"description": "Key-value morphological feature bundle. Keys vary by language and part of speech."
},
"notes": {
"type": ["string", "null"],
"description": "Optional philological or parsing note. Null if not needed."
}
},
"additionalProperties": false
}