2020-01-26 20:06:42 +00:00
|
|
|
{
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
2021-10-15 01:26:53 +00:00
|
|
|
"definitions": {
|
|
|
|
"frequency": {
|
|
|
|
"oneOf": [
|
|
|
|
{
|
|
|
|
"type": ["string", "number"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"value"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"value": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"displayValue": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2020-01-26 20:06:42 +00:00
|
|
|
"type": "array",
|
2021-05-30 20:22:25 +00:00
|
|
|
"description": "Custom metadata for terms.",
|
2022-05-16 23:56:02 +00:00
|
|
|
"items": {
|
2020-01-26 20:06:42 +00:00
|
|
|
"type": "array",
|
2021-05-30 20:22:25 +00:00
|
|
|
"description": "Metadata about a single term.",
|
2020-01-26 20:06:42 +00:00
|
|
|
"minItems": 3,
|
2022-05-16 23:56:02 +00:00
|
|
|
"additionalItems": false,
|
2020-01-26 20:06:42 +00:00
|
|
|
"items": [
|
|
|
|
{
|
|
|
|
"type": "string",
|
2021-05-30 20:22:25 +00:00
|
|
|
"description": "The text for the term."
|
2020-01-26 20:06:42 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "string",
|
2020-02-23 19:03:37 +00:00
|
|
|
"enum": ["freq", "pitch"],
|
|
|
|
"description": "Type of data. \"freq\" corresponds to frequency information; \"pitch\" corresponds to pitch information."
|
2020-01-26 20:06:42 +00:00
|
|
|
},
|
|
|
|
{
|
2021-05-30 20:22:25 +00:00
|
|
|
"description": "Data for the term."
|
2020-01-26 20:06:42 +00:00
|
|
|
}
|
2020-02-23 19:03:37 +00:00
|
|
|
],
|
|
|
|
"oneOf": [
|
|
|
|
{
|
|
|
|
"items": [
|
|
|
|
{},
|
2022-10-17 02:08:08 +00:00
|
|
|
{"const": "freq"},
|
2020-02-23 19:03:37 +00:00
|
|
|
{
|
2020-04-12 03:20:36 +00:00
|
|
|
"oneOf": [
|
|
|
|
{
|
2021-10-15 01:26:53 +00:00
|
|
|
"$ref": "#/definitions/frequency",
|
2021-05-30 20:22:25 +00:00
|
|
|
"description": "Frequency information for the term."
|
2020-04-12 03:20:36 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": ["object"],
|
|
|
|
"required": [
|
|
|
|
"reading",
|
|
|
|
"frequency"
|
|
|
|
],
|
|
|
|
"additionalProperties": false,
|
|
|
|
"properties": {
|
|
|
|
"reading": {
|
|
|
|
"type": "string",
|
2021-05-30 20:22:25 +00:00
|
|
|
"description": "Reading for the term."
|
2020-04-12 03:20:36 +00:00
|
|
|
},
|
|
|
|
"frequency": {
|
2021-10-15 01:26:53 +00:00
|
|
|
"$ref": "#/definitions/frequency",
|
2021-05-30 20:22:25 +00:00
|
|
|
"description": "Frequency information for the term."
|
2020-04-12 03:20:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2020-02-23 19:03:37 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"items": [
|
|
|
|
{},
|
2022-10-17 02:08:08 +00:00
|
|
|
{"const": "pitch"},
|
2020-02-23 19:03:37 +00:00
|
|
|
{
|
|
|
|
"type": ["object"],
|
2021-05-30 20:22:25 +00:00
|
|
|
"description": "Pitch accent information for the term.",
|
2020-02-23 19:03:37 +00:00
|
|
|
"required": [
|
|
|
|
"reading",
|
|
|
|
"pitches"
|
|
|
|
],
|
|
|
|
"additionalProperties": false,
|
|
|
|
"properties": {
|
|
|
|
"reading": {
|
|
|
|
"type": "string",
|
2021-05-30 20:22:25 +00:00
|
|
|
"description": "Reading for the term."
|
2020-02-23 19:03:37 +00:00
|
|
|
},
|
|
|
|
"pitches": {
|
|
|
|
"type": "array",
|
|
|
|
"description": "List of different pitch accent information for the term and reading combination.",
|
2022-05-16 23:56:02 +00:00
|
|
|
"items": {
|
2020-02-23 19:03:37 +00:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"position"
|
|
|
|
],
|
|
|
|
"additionalProperties": false,
|
|
|
|
"properties": {
|
|
|
|
"position": {
|
|
|
|
"type": "integer",
|
|
|
|
"description": "Mora position of the pitch accent downstep. A value of 0 indicates that the word does not have a downstep (heiban).",
|
|
|
|
"minimum": 0
|
|
|
|
},
|
2021-07-16 02:39:33 +00:00
|
|
|
"nasal": {
|
|
|
|
"oneOf": [
|
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"description": "Position of a mora with nasal sound.",
|
|
|
|
"minimum": 0
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "array",
|
|
|
|
"description": "Positions of morae with nasal sound.",
|
|
|
|
"items": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"devoice": {
|
|
|
|
"oneOf": [
|
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"description": "Position of a mora with devoiced sound.",
|
|
|
|
"minimum": 0
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "array",
|
|
|
|
"description": "Positions of morae with devoiced sound.",
|
|
|
|
"items": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2020-02-23 19:03:37 +00:00
|
|
|
"tags": {
|
|
|
|
"type": "array",
|
|
|
|
"description": "List of tags for this pitch accent.",
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "Tag for this pitch accent. This typically corresponds to a certain type of part of speech."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2020-01-26 20:06:42 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|