Skip to content

Commit

Permalink
Merge branch 'feature/split' of https://github.com/lipu-linku/sona in…
Browse files Browse the repository at this point in the history
…to feature/split
  • Loading branch information
TheOnlyTails committed Dec 1, 2023
2 parents 07ac2ea + 5808979 commit b8b4ae4
Showing 1 changed file with 264 additions and 0 deletions.
264 changes: 264 additions & 0 deletions schemas/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,264 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"Book": {
"type": "string",
"enum": [
"pu",
"ku suli",
"ku lili",
"none"
]
},
"CoinedEra": {
"type": "string",
"enum": [
"pre-pu",
"post-pu",
"post-ku"
]
},
"UsageCategory": {
"type": "string",
"enum": [
"core",
"widespread",
"common",
"uncommon",
"rare",
"obscure"
]
},
"YearMonth": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}$"
},
"integer": {
"type": "integer"
},
"Word": {
"type": "object",
"properties": {
"author_verbatim": {
"type": "string",
"description": "The author's original definition, taken verbatim in their words"
},
"author_verbatim_source": {
"type": "string",
"description": "Where the author's original definition is located (usually Discord)"
},
"book": {
"$ref": "#/definitions/Book",
"description": "Which official Toki Pona book was this word featured in, if any."
},
"coined_era": {
"$ref": "#/definitions/CoinedEra",
"description": "When this word was coined (relative to the publication dates of the official Toki Pona books)"
},
"coined_year": {
"type": "string",
"description": "The year when this word was coined (if known)"
},
"creator": {
"type": "string",
"description": "The person who created this word (if known)"
},
"ku_data": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/integer",
"minimum": 0,
"maximum": 100
},
"description": "The usage data of the word as described in ku (the official Toki Pona dictionary)"
},
"see_also": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of related words"
},
"sitelen_emosi": {
"type": "string",
"description": "The sitelen emosi representation of this word, a script for writing Toki Pona using emoji"
},
"sitelen_pona": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of sitelen Lasina representations of this word, to be converted into sitelen pona glyphs"
},
"sitelen_sitelen": {
"type": "string",
"description": "A URL pointing to an image of this word's sitelen sitelen hieroglyphic block",
"format": "uri"
},
"source_language": {
"type": "string",
"description": "The language this word originated from"
},
"ucsur": {
"type": "string",
"description": "The word's UCSUR codepoint",
"pattern": "^U\\+[\\da-fA-F]{4,6}$"
},
"usage_category": {
"$ref": "#/definitions/UsageCategory",
"description": "The word's usage category, according to a survey performed by the Linku Project"
},
"word": {
"type": "string",
"description": "The word's actual text, in case of a word with multiple definitions (like \"we\")"
},
"audio": {
"type": "object",
"properties": {
"jan_lakuse": {
"type": "string",
"description": "jan Lakuse's pronounciation of the word, made for jan Sonja's Memrise course: https://archive.org/details/toki-pona-audio-by-jan-lakuse",
"format": "uri"
},
"kala_asi": {
"type": "string",
"description": "kala Asi's pronounciation of the word, made for the Linku Project",
"format": "uri"
}
},
"additionalProperties": false,
"description": "Audio files of the words pronounced out loud"
},
"luka_pona": {
"type": "object",
"properties": {
"mp4": {
"type": "string",
"description": "The video clip in MP4 format",
"format": "uri"
},
"gif": {
"type": "string",
"description": "The video clip as a GIF",
"format": "uri"
}
},
"required": [
"mp4",
"gif"
],
"additionalProperties": false,
"description": "Video clips of the word being signed in Luka Pona, a Toki Pona sign language"
},
"pu_verbatim": {
"type": "object",
"properties": {
"en": {
"type": "string",
"description": "The original definition in the English version of pu"
},
"fr": {
"type": "string",
"description": "The original definition in the French version of pu"
},
"de": {
"type": "string",
"description": "The original definition in the German version of pu"
},
"eo": {
"type": "string",
"description": "The original definition in the Esperanto version of pu"
}
},
"required": [
"en",
"fr",
"de",
"eo"
],
"additionalProperties": false
},
"recognition": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/integer"
},
"propertyNames": {
"pattern": "^\\d{4}-\\d{2}$"
},
"description": "The percentage of people in the Toki Pona community who recognize this word, according to surveys performed by the Linku Project"
}
},
"required": [
"book",
"coined_era",
"see_also",
"sitelen_pona",
"usage_category",
"word",
"recognition"
],
"additionalProperties": false,
"description": "General info on a Toki Pona word",
"title": "sona word file"
},
"Translation": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"commentary": {
"type": "string",
"description": "Extra information regarding the word"
},
"def": {
"type": "string",
"description": "The definition of the word"
},
"sitelen_pona_etymology": {
"type": "string",
"description": "The etymology of the word's sitelen pona glyph"
},
"etymology": {
"type": "array",
"items": {
"type": "object",
"properties": {
"word": {
"type": "string",
"description": "The \"word\" field transliterated in Latin characters"
},
"language": {
"type": "string",
"description": "The definition of the word in its origin language"
},
"definition": {
"type": "string",
"description": "The word's origin language"
},
"alt": {
"type": "string",
"description": "The word written out in its original script"
}
},
"required": [
"language"
],
"additionalProperties": false
},
"description": "Information about the word's origin through other languages"
}
},
"required": [
"commentary",
"def",
"sitelen_pona_etymology",
"etymology"
],
"additionalProperties": false
},
"description": "Localized metadata for a Toki Pona word",
"title": "sona Translation file"
}
}
}

0 comments on commit b8b4ae4

Please sign in to comment.