@kulupu-linku/sona 2.0.2 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/{index-1jX6YIBj.d.ts → index-7uKIarVW.d.mts} +6 -8
  2. package/dist/{client-BSyS8F5a.d.ts → lib/v1/client.d.mts} +55 -57
  3. package/dist/{client-BitJ28pJ.js → lib/v1/client.mjs} +1 -3
  4. package/dist/lib/v1/{client.test.d.ts → client.test.d.mts} +2 -3
  5. package/dist/lib/v1/client.test.mjs +2 -0
  6. package/dist/lib/v1/{index.d.ts → index.d.mts} +1 -1
  7. package/dist/{v1-DkHVwPCI.js → lib/v1/index.mjs} +2 -4
  8. package/dist/lib/v1/{types.d.ts → types.d.mts} +1 -1
  9. package/dist/lib/v1/types.mjs +1 -0
  10. package/dist/lib/v1/{utils.d.ts → utils.d.mts} +1 -1
  11. package/dist/{utils-QiKwNnnL.js → lib/v1/utils.mjs} +1 -3
  12. package/dist/{client-CUMo53JZ.d.ts → lib/v2/client.d.mts} +55 -57
  13. package/dist/{client-DNWH1gFt.js → lib/v2/client.mjs} +1 -3
  14. package/dist/lib/v2/{client.test.d.ts → client.test.d.mts} +2 -3
  15. package/dist/lib/v2/client.test.mjs +2 -0
  16. package/dist/lib/v2/{index.d.ts → index.d.mts} +1 -1
  17. package/dist/{v2-CDtbJFxV.js → lib/v2/index.mjs} +3 -5
  18. package/dist/lib/v2/{types.d.ts → types.d.mts} +1 -1
  19. package/dist/lib/v2/types.mjs +1 -0
  20. package/dist/lib/v2/{utils.d.ts → utils.d.mts} +1 -1
  21. package/dist/{utils-Z1o5sWsW.js → lib/v2/utils.mjs} +1 -3
  22. package/dist/server/index.d.mts +2 -0
  23. package/dist/server/{index.js → index.mjs} +4 -12
  24. package/dist/server/{utils.d.ts → utils.d.mts} +5 -5
  25. package/dist/{utils-DkAaVBMs.js → server/utils.mjs} +2 -4
  26. package/dist/server/v1/{index.d.ts → index.d.mts} +4 -4
  27. package/dist/server/v1/index.mjs +2 -0
  28. package/dist/server/v2/{index.d.ts → index.d.mts} +4 -4
  29. package/dist/server/v2/index.mjs +2 -0
  30. package/dist/server/{versioning.d.ts → versioning.d.mts} +6 -6
  31. package/dist/server/versioning.mjs +2 -0
  32. package/dist/{v1-obRCoWWK.js → v1-Da4_o5R1.mjs} +9 -15
  33. package/generated/v1/commentary_translation.json +1 -1
  34. package/generated/v1/definition_translation.json +1 -1
  35. package/generated/v1/etymology_translation.json +2 -4
  36. package/generated/v1/fingerspelling.json +5 -20
  37. package/generated/v1/fingerspelling_sign.json +4 -16
  38. package/generated/v1/font.json +1 -1
  39. package/generated/v1/fonts.json +1 -1
  40. package/generated/v1/icon_translation.json +1 -1
  41. package/generated/v1/languages.json +4 -14
  42. package/generated/v1/parameters_translation.json +1 -1
  43. package/generated/v1/sign.json +3 -8
  44. package/generated/v1/signs.json +4 -12
  45. package/generated/v1/sitelen_pona_translation.json +1 -1
  46. package/generated/v1/word.json +6 -29
  47. package/generated/v2/fingerspelling.json +124 -64
  48. package/generated/v2/fingerspellings.json +178 -115
  49. package/generated/v2/font.json +109 -64
  50. package/generated/v2/fonts.json +160 -112
  51. package/generated/v2/glyph.json +72 -46
  52. package/generated/v2/glyphs.json +171 -142
  53. package/generated/v2/language.json +34 -16
  54. package/generated/v2/languages.json +75 -56
  55. package/generated/v2/sign.json +149 -77
  56. package/generated/v2/signs.json +212 -137
  57. package/generated/v2/word.json +298 -155
  58. package/generated/v2/words.json +416 -270
  59. package/package.json +56 -44
  60. package/dist/.assetsignore +0 -0
  61. package/dist/lib/v1/client.d.ts +0 -3
  62. package/dist/lib/v1/client.js +0 -3
  63. package/dist/lib/v1/client.test.js +0 -3
  64. package/dist/lib/v1/index.js +0 -4
  65. package/dist/lib/v1/types.js +0 -1
  66. package/dist/lib/v1/utils.js +0 -3
  67. package/dist/lib/v2/client.d.ts +0 -3
  68. package/dist/lib/v2/client.js +0 -3
  69. package/dist/lib/v2/client.test.js +0 -3
  70. package/dist/lib/v2/index.js +0 -4
  71. package/dist/lib/v2/types.js +0 -1
  72. package/dist/lib/v2/utils.js +0 -3
  73. package/dist/server/index.d.ts +0 -2
  74. package/dist/server/utils.js +0 -3
  75. package/dist/server/v1/index.js +0 -8
  76. package/dist/server/v2/index.js +0 -8
  77. package/dist/server/versioning.js +0 -8
  78. /package/dist/{index-DObG_APy.d.ts → index-N8h8E1s6.d.mts} +0 -0
  79. /package/dist/{index-DsVEVr6r.d.ts → index-nmyNJa57.d.mts} +0 -0
@@ -1,313 +1,459 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "description": "A raw data object containing dictionary info about Toki Pona words",
4
3
  "type": "object",
5
4
  "propertyNames": {
6
5
  "$ref": "#/$defs/__schema0"
7
6
  },
8
7
  "additionalProperties": {
9
- "type": "object",
10
- "properties": {
11
- "id": {
12
- "description": "A unique identifier for the word. May have an integer to distinguish words with the same spelling but distinct coinings.",
13
- "$ref": "#/$defs/__schema0"
14
- },
15
- "word": {
16
- "description": "The latin alphabet representation of the word.",
17
- "type": "string",
18
- "minLength": 1
19
- },
20
- "author_verbatim": {
21
- "description": "The author's original definition, taken verbatim in their words",
22
- "type": "string"
23
- },
24
- "author_source": {
25
- "description": "The source or origin of this glyph, often a URL.",
26
- "type": "string"
8
+ "$ref": "#/$defs/__schema1"
9
+ },
10
+ "description": "A raw data object containing dictionary info about Toki Pona words",
11
+ "$defs": {
12
+ "__schema0": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "description": "A unique identifier for an object in Linku. Generally named after the object."
16
+ },
17
+ "__schema1": {
18
+ "type": "object",
19
+ "properties": {
20
+ "id": {
21
+ "$ref": "#/$defs/__schema2"
22
+ },
23
+ "word": {
24
+ "$ref": "#/$defs/__schema3"
25
+ },
26
+ "author_verbatim": {
27
+ "$ref": "#/$defs/__schema4"
28
+ },
29
+ "author_source": {
30
+ "$ref": "#/$defs/__schema6"
31
+ },
32
+ "book": {
33
+ "$ref": "#/$defs/__schema8"
34
+ },
35
+ "coined_era": {
36
+ "$ref": "#/$defs/__schema9"
37
+ },
38
+ "creation_date": {
39
+ "$ref": "#/$defs/__schema10"
40
+ },
41
+ "author": {
42
+ "$ref": "#/$defs/__schema11"
43
+ },
44
+ "ku_data": {
45
+ "$ref": "#/$defs/__schema13"
46
+ },
47
+ "parent_id": {
48
+ "$ref": "#/$defs/__schema16"
49
+ },
50
+ "see_also": {
51
+ "$ref": "#/$defs/__schema18"
52
+ },
53
+ "resources": {
54
+ "$ref": "#/$defs/__schema20"
55
+ },
56
+ "representations": {
57
+ "$ref": "#/$defs/__schema24"
58
+ },
59
+ "source_language": {
60
+ "$ref": "#/$defs/__schema35"
61
+ },
62
+ "usage_category": {
63
+ "$ref": "#/$defs/__schema36"
64
+ },
65
+ "deprecated": {
66
+ "$ref": "#/$defs/__schema37"
67
+ },
68
+ "audio": {
69
+ "$ref": "#/$defs/__schema38"
70
+ },
71
+ "pu_verbatim": {
72
+ "$ref": "#/$defs/__schema41"
73
+ },
74
+ "usage": {
75
+ "$ref": "#/$defs/__schema44"
76
+ },
77
+ "glyph_ids": {
78
+ "$ref": "#/$defs/__schema46"
79
+ },
80
+ "primary_glyph_id": {
81
+ "$ref": "#/$defs/__schema47"
82
+ },
83
+ "image": {
84
+ "$ref": "#/$defs/__schema49"
85
+ },
86
+ "svg": {
87
+ "$ref": "#/$defs/__schema50"
88
+ },
89
+ "translations": {
90
+ "$ref": "#/$defs/__schema51"
91
+ }
27
92
  },
28
- "book": {
29
- "description": "Which official Toki Pona book was this word featured in, if any.",
30
- "type": "string",
31
- "enum": [
32
- "pu",
33
- "ku suli",
34
- "ku lili",
35
- "none"
36
- ]
93
+ "required": [
94
+ "id",
95
+ "word",
96
+ "book",
97
+ "coined_era",
98
+ "creation_date",
99
+ "author",
100
+ "see_also",
101
+ "resources",
102
+ "representations",
103
+ "source_language",
104
+ "usage_category",
105
+ "deprecated",
106
+ "audio",
107
+ "usage",
108
+ "glyph_ids",
109
+ "translations"
110
+ ],
111
+ "additionalProperties": false,
112
+ "description": "General info on a Toki Pona word"
113
+ },
114
+ "__schema2": {
115
+ "description": "A unique identifier for the word. May have an integer to distinguish words with the same spelling but distinct coinings.",
116
+ "$ref": "#/$defs/__schema0"
117
+ },
118
+ "__schema3": {
119
+ "type": "string",
120
+ "minLength": 1,
121
+ "description": "The latin alphabet representation of the word."
122
+ },
123
+ "__schema4": {
124
+ "description": "The author's original definition, taken verbatim in their words",
125
+ "$ref": "#/$defs/__schema5"
126
+ },
127
+ "__schema5": {
128
+ "type": "string"
129
+ },
130
+ "__schema6": {
131
+ "description": "The source or origin of this glyph, often a URL.",
132
+ "$ref": "#/$defs/__schema7"
133
+ },
134
+ "__schema7": {
135
+ "type": "string",
136
+ "description": "The source or origin of this object, often a URL."
137
+ },
138
+ "__schema8": {
139
+ "type": "string",
140
+ "enum": [
141
+ "pu",
142
+ "ku suli",
143
+ "ku lili",
144
+ "none"
145
+ ],
146
+ "description": "Which official Toki Pona book was this word featured in, if any."
147
+ },
148
+ "__schema9": {
149
+ "type": "string",
150
+ "enum": [
151
+ "pre-pu",
152
+ "post-pu",
153
+ "post-ku"
154
+ ],
155
+ "description": "The period of time in which this word was coined, relative to the publication of the first two official Toki Pona books"
156
+ },
157
+ "__schema10": {
158
+ "type": "string",
159
+ "pattern": "^(?:|(?<year>20\\d{2})(?:-(?<month>0[1-9]|1[0-2])(?:-(?<day>0[1-9]|[12]\\d|3[01]))?)?|(?<startYear>20\\d{2})-(?<endYear>20\\d{2}))$",
160
+ "description": "When this word was coined, to precision known."
161
+ },
162
+ "__schema11": {
163
+ "type": "array",
164
+ "items": {
165
+ "$ref": "#/$defs/__schema12"
37
166
  },
38
- "coined_era": {
39
- "description": "The period of time in which this word was coined, relative to the publication of the first two official Toki Pona books",
167
+ "description": "The name or names of those involved in creating this word."
168
+ },
169
+ "__schema12": {
170
+ "type": "string",
171
+ "minLength": 1
172
+ },
173
+ "__schema13": {
174
+ "description": "The usage data of this word, as described in the Toki Pona Dictionary.",
175
+ "$ref": "#/$defs/__schema14"
176
+ },
177
+ "__schema14": {
178
+ "type": "object",
179
+ "propertyNames": {
40
180
  "type": "string",
41
- "enum": [
42
- "pre-pu",
43
- "post-pu",
44
- "post-ku"
45
- ]
181
+ "minLength": 1,
182
+ "description": "A possible translation of the word into English, as listed in the Toki Pona dictionary."
46
183
  },
47
- "creation_date": {
48
- "description": "When this word was coined, to precision known.",
49
- "type": "string",
50
- "pattern": "^(?:|(?<year>20\\d{2})(?:-(?<month>0[1-9]|1[0-2])(?:-(?<day>0[1-9]|[12]\\d|3[01]))?)?|(?<startYear>20\\d{2})-(?<endYear>20\\d{2}))$"
184
+ "additionalProperties": {
185
+ "description": "The percentage of Toki Pona Dictionary survey respondents who report this translation as accurate to their usage.",
186
+ "$ref": "#/$defs/__schema15"
187
+ }
188
+ },
189
+ "__schema15": {
190
+ "type": "number",
191
+ "minimum": 0,
192
+ "maximum": 100
193
+ },
194
+ "__schema16": {
195
+ "description": "The most widely used word which is considered to be an exact synonym for this word.",
196
+ "$ref": "#/$defs/__schema17"
197
+ },
198
+ "__schema17": {
199
+ "description": "The ID of an object related to this one.",
200
+ "$ref": "#/$defs/__schema0"
201
+ },
202
+ "__schema18": {
203
+ "type": "array",
204
+ "items": {
205
+ "$ref": "#/$defs/__schema0"
51
206
  },
52
- "author": {
53
- "description": "The name or names of those involved in creating this word.",
54
- "type": "array",
55
- "items": {
56
- "$ref": "#/$defs/__schema1"
57
- }
207
+ "description": "The IDs of words related to this one.",
208
+ "$ref": "#/$defs/__schema19"
209
+ },
210
+ "__schema19": {
211
+ "type": "array",
212
+ "items": {
213
+ "$ref": "#/$defs/__schema0"
58
214
  },
59
- "ku_data": {
60
- "description": "The usage data of this word, as described in the Toki Pona Dictionary.",
61
- "type": "object",
62
- "propertyNames": {
63
- "description": "A possible translation of the word into English, as listed in the Toki Pona dictionary.",
64
- "type": "string",
65
- "minLength": 1
215
+ "description": "The IDs of one or more objects related to this one."
216
+ },
217
+ "__schema20": {
218
+ "type": "object",
219
+ "properties": {
220
+ "sona_pona": {
221
+ "$ref": "#/$defs/__schema21"
66
222
  },
67
- "additionalProperties": {
68
- "description": "The percentage of Toki Pona Dictionary survey respondents who report this translation as accurate to their usage.",
69
- "$ref": "#/$defs/__schema2"
223
+ "lipamanka_semantic": {
224
+ "$ref": "#/$defs/__schema23"
70
225
  }
71
226
  },
72
- "parent_id": {
73
- "description": "The most widely used word which is considered to be an exact synonym for this word.",
74
- "$ref": "#/$defs/__schema0"
75
- },
76
- "see_also": {
77
- "description": "The IDs of words related to this one.",
78
- "$ref": "#/$defs/__schema3"
79
- },
80
- "resources": {
81
- "description": "Non-Linku resources related to the specific word, such as wiki links.",
82
- "type": "object",
83
- "properties": {
84
- "sona_pona": {
85
- "description": "A link to the word's page on sona.pona.la, a Toki Pona wiki. May redirect for words with references but no dedicated page.",
86
- "$ref": "#/$defs/__schema4"
87
- },
88
- "lipamanka_semantic": {
89
- "description": "A link to lipamanka's description of the word's semantic space.",
90
- "$ref": "#/$defs/__schema4"
91
- }
227
+ "additionalProperties": false,
228
+ "description": "Non-Linku resources related to the specific word, such as wiki links."
229
+ },
230
+ "__schema21": {
231
+ "description": "A link to the word's page on sona.pona.la, a Toki Pona wiki. May redirect for words with references but no dedicated page.",
232
+ "$ref": "#/$defs/__schema22"
233
+ },
234
+ "__schema22": {
235
+ "type": "string",
236
+ "format": "uri",
237
+ "description": "A URL pointing to some external resource."
238
+ },
239
+ "__schema23": {
240
+ "description": "A link to lipamanka's description of the word's semantic space.",
241
+ "$ref": "#/$defs/__schema22"
242
+ },
243
+ "__schema24": {
244
+ "type": "object",
245
+ "properties": {
246
+ "sitelen_emosi": {
247
+ "$ref": "#/$defs/__schema25"
92
248
  },
93
- "additionalProperties": false
94
- },
95
- "representations": {
96
- "description": "Ways of representing this word via text/computers",
97
- "type": "object",
98
- "properties": {
99
- "sitelen_emosi": {
100
- "description": "The sitelen emosi representation of this word, a script for writing Toki Pona using emoji",
101
- "type": "string",
102
- "minLength": 1,
103
- "format": "emoji",
104
- "pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"
105
- },
106
- "sitelen_jelo": {
107
- "description": "One or more example emojis for how the word can be written in sitelen jelo",
108
- "minItems": 1,
109
- "type": "array",
110
- "items": {
111
- "type": "string",
112
- "minLength": 1,
113
- "format": "emoji",
114
- "pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"
115
- }
116
- },
117
- "ligatures": {
118
- "description": "A list of sitelen Lasina representations of the word, used by ligature fonts to visually convert latin characters into sitelen pona",
119
- "type": "array",
120
- "items": {
121
- "type": "string",
122
- "minLength": 1
123
- }
124
- },
125
- "sitelen_sitelen": {
126
- "description": "A URL pointing to an image of this word's sitelen sitelen hieroglyphic block",
127
- "$ref": "#/$defs/__schema4"
128
- },
129
- "ucsur": {
130
- "description": "The UCSUR codepoint for this word.",
131
- "type": "string",
132
- "pattern": "^U\\+[\\da-fA-F]{4,6}$"
133
- }
249
+ "sitelen_jelo": {
250
+ "$ref": "#/$defs/__schema27"
134
251
  },
135
- "additionalProperties": false
136
- },
137
- "source_language": {
138
- "description": "The language this word originated from",
139
- "type": "string",
140
- "minLength": 1
141
- },
142
- "usage_category": {
143
- "description": "The word's usage category, derived from the data of the annual Linku word survey.",
144
- "type": "string",
145
- "enum": [
146
- "core",
147
- "common",
148
- "uncommon",
149
- "obscure",
150
- "sandbox"
151
- ]
152
- },
153
- "deprecated": {
154
- "description": "Whether this word is considered deprecated by its author(s).",
155
- "type": "boolean"
156
- },
157
- "audio": {
158
- "type": "array",
159
- "items": {
160
- "description": "Audio files of the words pronounced out loud",
161
- "type": "object",
162
- "properties": {
163
- "author": {
164
- "description": "The author of the audio file in `link`.",
165
- "$ref": "#/$defs/__schema1"
166
- },
167
- "link": {
168
- "description": "A link to the audio file for the word, pronounced by `author`.",
169
- "$ref": "#/$defs/__schema4"
170
- }
171
- },
172
- "required": [
173
- "author",
174
- "link"
175
- ],
176
- "additionalProperties": false
177
- }
178
- },
179
- "pu_verbatim": {
180
- "description": "The definition of the word in specific language editions of Toki Pona: The Language of Good",
181
- "type": "object",
182
- "properties": {
183
- "en": {
184
- "description": "The word's definition in the English edition of Toki Pona: The Language of Good",
185
- "$ref": "#/$defs/__schema5"
186
- },
187
- "fr": {
188
- "description": "The word's definition in the French edition of Toki Pona: The Language of Good",
189
- "$ref": "#/$defs/__schema5"
190
- },
191
- "de": {
192
- "description": "The word's definition in the German edition of Toki Pona: The Language of Good",
193
- "$ref": "#/$defs/__schema5"
194
- },
195
- "eo": {
196
- "description": "The word's definition in the Esperanto edition of Toki Pona: The Language of Good",
197
- "$ref": "#/$defs/__schema5"
198
- }
252
+ "ligatures": {
253
+ "$ref": "#/$defs/__schema30"
199
254
  },
200
- "required": [
201
- "en",
202
- "fr",
203
- "de",
204
- "eo"
205
- ],
206
- "additionalProperties": false
207
- },
208
- "usage": {
209
- "description": "The percentage of respondents to the annual Linku word survey who report to use this word, by the date of the survey.",
210
- "type": "object",
211
- "propertyNames": {
212
- "type": "string",
213
- "pattern": "^(?<year>20\\d{2})(?:-(?<month>0[1-9]|1[0-2])(?:-(?<day>0[1-9]|[12]\\d|3[01]))?)?$"
255
+ "sitelen_sitelen": {
256
+ "$ref": "#/$defs/__schema32"
214
257
  },
215
- "additionalProperties": {
216
- "$ref": "#/$defs/__schema2"
258
+ "ucsur": {
259
+ "$ref": "#/$defs/__schema33"
217
260
  }
218
261
  },
219
- "glyph_ids": {
220
- "description": "The IDs of all sitelen pona glyphs which represent the word. The usage category of each fetched glyph may be used to show or hide glyphs.",
221
- "$ref": "#/$defs/__schema3"
222
- },
223
- "primary_glyph_id": {
224
- "description": "The ID of the glyph most commonly used to represent this word in sitelen pona.",
262
+ "additionalProperties": false,
263
+ "description": "Ways of representing this word via text/computers"
264
+ },
265
+ "__schema25": {
266
+ "description": "The sitelen emosi representation of this word, a script for writing Toki Pona using emoji",
267
+ "$ref": "#/$defs/__schema26"
268
+ },
269
+ "__schema26": {
270
+ "type": "string",
271
+ "minLength": 1,
272
+ "format": "emoji",
273
+ "pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"
274
+ },
275
+ "__schema27": {
276
+ "description": "One or more example emojis for how the word can be written in sitelen jelo",
277
+ "$ref": "#/$defs/__schema28"
278
+ },
279
+ "__schema28": {
280
+ "minItems": 1,
281
+ "type": "array",
282
+ "items": {
283
+ "$ref": "#/$defs/__schema29"
284
+ }
285
+ },
286
+ "__schema29": {
287
+ "type": "string",
288
+ "minLength": 1,
289
+ "format": "emoji",
290
+ "pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"
291
+ },
292
+ "__schema30": {
293
+ "description": "A list of sitelen Lasina representations of the word, used by ligature fonts to visually convert latin characters into sitelen pona",
294
+ "$ref": "#/$defs/__schema31"
295
+ },
296
+ "__schema31": {
297
+ "type": "array",
298
+ "items": {
225
299
  "type": "string",
226
- "minLength": 3
227
- },
228
- "image": {
229
- "description": "Link to a PNG of the primary sitelen pona glyph for this word.",
230
- "$ref": "#/$defs/__schema4"
231
- },
232
- "svg": {
233
- "description": "Link to an SVG of the primary sitelen pona glyph for this word.",
234
- "$ref": "#/$defs/__schema4"
235
- },
236
- "translations": {
300
+ "minLength": 1
301
+ }
302
+ },
303
+ "__schema32": {
304
+ "description": "A URL pointing to an image of this word's sitelen sitelen hieroglyphic block",
305
+ "$ref": "#/$defs/__schema22"
306
+ },
307
+ "__schema33": {
308
+ "description": "The UCSUR codepoint for this word.",
309
+ "$ref": "#/$defs/__schema34"
310
+ },
311
+ "__schema34": {
312
+ "type": "string",
313
+ "pattern": "^U\\+[\\da-fA-F]{4,6}$"
314
+ },
315
+ "__schema35": {
316
+ "type": "string",
317
+ "minLength": 1,
318
+ "description": "The language this word originated from"
319
+ },
320
+ "__schema36": {
321
+ "type": "string",
322
+ "enum": [
323
+ "core",
324
+ "common",
325
+ "uncommon",
326
+ "obscure",
327
+ "sandbox"
328
+ ],
329
+ "description": "The word's usage category, derived from the data of the annual Linku word survey."
330
+ },
331
+ "__schema37": {
332
+ "type": "boolean",
333
+ "description": "Whether this word is considered deprecated by its author(s)."
334
+ },
335
+ "__schema38": {
336
+ "type": "array",
337
+ "items": {
237
338
  "type": "object",
238
339
  "properties": {
239
- "commentary": {
240
- "description": "Localized commentary on this word, such as history, clarifications, or trivia.",
241
- "type": "string"
340
+ "author": {
341
+ "$ref": "#/$defs/__schema39"
242
342
  },
243
- "etymology": {
244
- "description": "Localized etymology of this word.",
245
- "type": "string"
246
- },
247
- "definition": {
248
- "description": "Localized definition of this word.",
249
- "$ref": "#/$defs/__schema5"
343
+ "link": {
344
+ "$ref": "#/$defs/__schema40"
250
345
  }
251
346
  },
252
347
  "required": [
253
- "commentary",
254
- "etymology",
255
- "definition"
348
+ "author",
349
+ "link"
256
350
  ],
257
- "additionalProperties": false
351
+ "additionalProperties": false,
352
+ "description": "Audio files of the words pronounced out loud"
258
353
  }
259
354
  },
260
- "required": [
261
- "id",
262
- "word",
263
- "book",
264
- "coined_era",
265
- "creation_date",
266
- "author",
267
- "see_also",
268
- "resources",
269
- "representations",
270
- "source_language",
271
- "usage_category",
272
- "deprecated",
273
- "audio",
274
- "usage",
275
- "glyph_ids",
276
- "translations"
277
- ],
278
- "additionalProperties": false
279
- },
280
- "$defs": {
281
- "__schema0": {
282
- "description": "A unique identifier for an object in Linku. Generally named after the object.",
355
+ "__schema39": {
356
+ "description": "The author of the audio file in `link`.",
357
+ "$ref": "#/$defs/__schema12"
358
+ },
359
+ "__schema40": {
360
+ "description": "A link to the audio file for the word, pronounced by `author`.",
361
+ "$ref": "#/$defs/__schema22"
362
+ },
363
+ "__schema41": {
364
+ "description": "The definition of the word in specific language editions of Toki Pona: The Language of Good",
365
+ "$ref": "#/$defs/__schema42"
366
+ },
367
+ "__schema42": {
368
+ "type": "object",
369
+ "properties": {
370
+ "en": {
371
+ "description": "The word's definition in the English edition of Toki Pona: The Language of Good",
372
+ "$ref": "#/$defs/__schema43"
373
+ },
374
+ "fr": {
375
+ "description": "The word's definition in the French edition of Toki Pona: The Language of Good",
376
+ "$ref": "#/$defs/__schema43"
377
+ },
378
+ "de": {
379
+ "description": "The word's definition in the German edition of Toki Pona: The Language of Good",
380
+ "$ref": "#/$defs/__schema43"
381
+ },
382
+ "eo": {
383
+ "description": "The word's definition in the Esperanto edition of Toki Pona: The Language of Good",
384
+ "$ref": "#/$defs/__schema43"
385
+ }
386
+ },
387
+ "required": [
388
+ "en",
389
+ "fr",
390
+ "de",
391
+ "eo"
392
+ ],
393
+ "additionalProperties": false
394
+ },
395
+ "__schema43": {
283
396
  "type": "string",
284
- "minLength": 1
397
+ "minLength": 1,
398
+ "description": "Localized definition on the parent, such as a word or luka pona sign"
285
399
  },
286
- "__schema1": {
400
+ "__schema44": {
401
+ "type": "object",
402
+ "propertyNames": {
403
+ "$ref": "#/$defs/__schema45"
404
+ },
405
+ "additionalProperties": {
406
+ "$ref": "#/$defs/__schema15"
407
+ },
408
+ "description": "The percentage of respondents to the annual Linku word survey who report to use this word, by the date of the survey."
409
+ },
410
+ "__schema45": {
287
411
  "type": "string",
288
- "minLength": 1
412
+ "pattern": "^(?<year>20\\d{2})(?:-(?<month>0[1-9]|1[0-2])(?:-(?<day>0[1-9]|[12]\\d|3[01]))?)?$"
289
413
  },
290
- "__schema2": {
291
- "type": "number",
292
- "minimum": 0,
293
- "maximum": 100
414
+ "__schema46": {
415
+ "description": "The IDs of all sitelen pona glyphs which represent the word. The usage category of each fetched glyph may be used to show or hide glyphs.",
416
+ "$ref": "#/$defs/__schema19"
294
417
  },
295
- "__schema3": {
296
- "description": "The IDs of one or more objects related to this one.",
297
- "type": "array",
298
- "items": {
299
- "$ref": "#/$defs/__schema0"
300
- }
418
+ "__schema47": {
419
+ "description": "The ID of the glyph most commonly used to represent this word in sitelen pona.",
420
+ "$ref": "#/$defs/__schema48"
301
421
  },
302
- "__schema4": {
303
- "description": "A URL pointing to some external resource.",
422
+ "__schema48": {
304
423
  "type": "string",
305
- "format": "uri"
424
+ "minLength": 3,
425
+ "$ref": "#/$defs/__schema17"
306
426
  },
307
- "__schema5": {
308
- "description": "Localized definition on the parent, such as a word or luka pona sign",
309
- "type": "string",
310
- "minLength": 1
427
+ "__schema49": {
428
+ "description": "Link to a PNG of the primary sitelen pona glyph for this word.",
429
+ "$ref": "#/$defs/__schema22"
430
+ },
431
+ "__schema50": {
432
+ "description": "Link to an SVG of the primary sitelen pona glyph for this word.",
433
+ "$ref": "#/$defs/__schema22"
434
+ },
435
+ "__schema51": {
436
+ "type": "object",
437
+ "properties": {
438
+ "commentary": {
439
+ "type": "string",
440
+ "description": "Localized commentary on this word, such as history, clarifications, or trivia."
441
+ },
442
+ "etymology": {
443
+ "type": "string",
444
+ "description": "Localized etymology of this word."
445
+ },
446
+ "definition": {
447
+ "description": "Localized definition of this word.",
448
+ "$ref": "#/$defs/__schema43"
449
+ }
450
+ },
451
+ "required": [
452
+ "commentary",
453
+ "etymology",
454
+ "definition"
455
+ ],
456
+ "additionalProperties": false
311
457
  }
312
458
  }
313
459
  }