@kulupu-linku/sona 0.1.7 → 0.1.8
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.
- package/dist/{chunk-T34XQGQK.js → chunk-QCIUEY5V.js} +5 -3
- package/dist/client.d.ts +152 -176
- package/dist/index.d.ts +248 -154
- package/dist/index.js +21 -17
- package/dist/utils.d.ts +2 -13
- package/dist/utils.js +3 -3
- package/generated/etymology.json +20 -0
- package/generated/font.json +6 -0
- package/generated/fonts.json +6 -0
- package/generated/representations.json +43 -0
- package/generated/resources.json +30 -0
- package/generated/sandbox.json +34 -46
- package/generated/word.json +32 -44
- package/generated/words.json +34 -46
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,13 +2,16 @@ import {
|
|
|
2
2
|
Book,
|
|
3
3
|
CoinedEra,
|
|
4
4
|
UsageCategory,
|
|
5
|
-
WritingSystem
|
|
6
|
-
|
|
7
|
-
} from "./chunk-T34XQGQK.js";
|
|
5
|
+
WritingSystem
|
|
6
|
+
} from "./chunk-QCIUEY5V.js";
|
|
8
7
|
|
|
9
8
|
// src/index.ts
|
|
10
9
|
import { z } from "zod";
|
|
10
|
+
var YearMonth = z.string().regex(/^20\d{2}-(0[1-9]|1[0-2])$/g);
|
|
11
11
|
var Word = z.object({
|
|
12
|
+
id: z.string().min(1).describe(
|
|
13
|
+
`A unique identifier for the word. Usually the word but may have an integer added in case of a word with multiple definitions (like "we")`
|
|
14
|
+
),
|
|
12
15
|
author_verbatim: z.string().describe("The author's original definition, taken verbatim in their words"),
|
|
13
16
|
author_verbatim_source: z.string().describe("Where the author's original definition is located (usually Discord)"),
|
|
14
17
|
book: Book.describe("Which official Toki Pona book was this word featured in, if any."),
|
|
@@ -26,21 +29,24 @@ var Word = z.object({
|
|
|
26
29
|
"The usage data of the word as described in ku (the official Toki Pona dictionary)"
|
|
27
30
|
),
|
|
28
31
|
see_also: z.array(z.string()).describe("A list of related words"),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
resources: z.object({
|
|
33
|
+
sona_pona: z.string().url().optional().describe(
|
|
34
|
+
"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."
|
|
35
|
+
),
|
|
36
|
+
lipamanka_semantic: z.string().url().optional().describe("A link to lipamanka's description of the word's semantic space.")
|
|
37
|
+
}).optional().describe("Non-Linku resources related to the specific word, such as wiki links."),
|
|
32
38
|
representations: z.object({
|
|
33
|
-
sitelen_emosi: z.string().emoji().
|
|
39
|
+
sitelen_emosi: z.string().emoji().optional().describe(
|
|
34
40
|
"The sitelen emosi representation of this word, a script for writing Toki Pona using emoji"
|
|
35
41
|
),
|
|
36
|
-
|
|
37
|
-
"A list of sitelen Lasina representations of
|
|
42
|
+
ligatures: z.array(z.string().min(1)).optional().describe(
|
|
43
|
+
"A list of sitelen Lasina representations of the word, used by ligature fonts to visually convert latin characters into sitelen pona"
|
|
38
44
|
),
|
|
39
|
-
sitelen_sitelen: z.string().url().
|
|
40
|
-
ucsur: z.string().regex(/^U\+[\da-fA-F]{4,6}$/g).
|
|
45
|
+
sitelen_sitelen: z.string().url().optional().describe("A URL pointing to an image of this word's sitelen sitelen hieroglyphic block"),
|
|
46
|
+
ucsur: z.string().regex(/^U\+[\da-fA-F]{4,6}$/g).optional().describe(
|
|
41
47
|
"The word's UCSUR codepoint, as defined in https://www.kreativekorp.com/ucsur/charts/sitelen.html"
|
|
42
48
|
)
|
|
43
|
-
}).describe("Ways of representing this word in the real world, via text/computers"),
|
|
49
|
+
}).optional().describe("Ways of representing this word in the real world, via text/computers"),
|
|
44
50
|
source_language: z.string().describe("The language this word originated from"),
|
|
45
51
|
usage_category: UsageCategory.describe(
|
|
46
52
|
"The word's usage category, according to a survey performed by the Linku Project"
|
|
@@ -66,10 +72,7 @@ var Word = z.object({
|
|
|
66
72
|
de: z.string().describe("The original definition in the German version of pu"),
|
|
67
73
|
eo: z.string().describe("The original definition in the Esperanto version of pu")
|
|
68
74
|
}).optional().describe("The original definition of the word in pu, the first official Toki Pona book"),
|
|
69
|
-
usage: z.record(
|
|
70
|
-
z.string().regex(/^20\d{2}-(0[1-9]|1[0-2])$/g),
|
|
71
|
-
z.number().min(0).max(100)
|
|
72
|
-
).describe(
|
|
75
|
+
usage: z.record(z.string().regex(/^20\d{2}-(0[1-9]|1[0-2])$/g), z.number().min(0).max(100)).describe(
|
|
73
76
|
"The percentage of people in the Toki Pona community who use this word, according to surveys performed by the Linku Project"
|
|
74
77
|
)
|
|
75
78
|
}).describe("General info on a Toki Pona word");
|
|
@@ -145,6 +148,7 @@ var ParametersTranslation = z.record(
|
|
|
145
148
|
).describe("Partly localized descriptions of how a sign is signed.");
|
|
146
149
|
var IconTranslation = z.record(z.string().min(1), z.string()).describe("Localized descriptions of the thing a sign represents.");
|
|
147
150
|
var Font = z.object({
|
|
151
|
+
id: z.string().min(1).describe("The font's unique ID, identifying it among other fonts"),
|
|
148
152
|
creator: z.array(z.string()).describe("a list of this font's creators"),
|
|
149
153
|
features: z.array(z.string()).describe("a list of features this font supports"),
|
|
150
154
|
filename: z.string().regex(/^(?:.+\.(ttf|otf|woff2|woff))?$/).describe("the name of the file this font is stored in at https://github.com/lipu-linku/ijo"),
|
|
@@ -176,7 +180,7 @@ var Words = z.record(
|
|
|
176
180
|
translations: z.record(
|
|
177
181
|
z.object({
|
|
178
182
|
commentary: CommentaryTranslation.valueSchema,
|
|
179
|
-
|
|
183
|
+
definition: DefinitionTranslation.valueSchema,
|
|
180
184
|
etymology: EtymologyTranslation.valueSchema,
|
|
181
185
|
sp_etymology: SitelenPonaTranslation.valueSchema
|
|
182
186
|
})
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
declare const Book: z.ZodUnion<[z.ZodLiteral<"pu">, z.ZodLiteral<"ku suli">, z.ZodLiteral<"ku lili">, z.ZodLiteral<"none">]>;
|
|
4
|
-
type Book = z.infer<typeof Book>;
|
|
5
|
-
declare const CoinedEra: z.ZodUnion<[z.ZodLiteral<"pre-pu">, z.ZodLiteral<"post-pu">, z.ZodLiteral<"post-ku">]>;
|
|
6
|
-
type CoinedEra = z.infer<typeof CoinedEra>;
|
|
7
|
-
declare const UsageCategory: z.ZodUnion<[z.ZodLiteral<"core">, z.ZodLiteral<"widespread">, z.ZodLiteral<"common">, z.ZodLiteral<"uncommon">, z.ZodLiteral<"rare">, z.ZodLiteral<"obscure">]>;
|
|
8
|
-
type UsageCategory = z.infer<typeof UsageCategory>;
|
|
9
|
-
declare const YearMonth: z.ZodType<`20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`, z.ZodTypeDef, `20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`>;
|
|
10
|
-
declare const WritingSystem: z.ZodEnum<["sitelen pona", "sitelen sitelen", "alphabet", "syllabary", "logography", "tokiponido alphabet", "tokiponido syllabary", "tokiponido logography"]>;
|
|
11
|
-
type WritingSystem = z.infer<typeof WritingSystem>;
|
|
12
|
-
|
|
13
|
-
export { Book, CoinedEra, UsageCategory, WritingSystem, YearMonth };
|
|
1
|
+
import 'zod';
|
|
2
|
+
export { Book, CoinedEra, FontLinks, LocalizedSignParameters, LocalizedWordCommentary, LocalizedWordDefinition, LocalizedWordEtymology, LocalizedWordSitelenEtymology, SignEtymology, SignVideo, SignWriting, UsageCategory, WordAudio, WordKuData, WordPuVerbatim, WordRepresentations, WordTranslation, WordTranslations, WordUsage, WritingSystem, getTranslatedData } from './index.js';
|
package/dist/utils.js
CHANGED
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
CoinedEra,
|
|
4
4
|
UsageCategory,
|
|
5
5
|
WritingSystem,
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
getTranslatedData
|
|
7
|
+
} from "./chunk-QCIUEY5V.js";
|
|
8
8
|
export {
|
|
9
9
|
Book,
|
|
10
10
|
CoinedEra,
|
|
11
11
|
UsageCategory,
|
|
12
12
|
WritingSystem,
|
|
13
|
-
|
|
13
|
+
getTranslatedData
|
|
14
14
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/etymology",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"etymology": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"word": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "One of the root words of this word, as written out in its language of origin"
|
|
10
|
+
},
|
|
11
|
+
"alt": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "A latinized representation of the \"word\" field"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"additionalProperties": false
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
20
|
+
}
|
package/generated/font.json
CHANGED
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
"font": {
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"description": "The font's unique ID, identifying it among other fonts"
|
|
11
|
+
},
|
|
7
12
|
"creator": {
|
|
8
13
|
"type": "array",
|
|
9
14
|
"items": {
|
|
@@ -91,6 +96,7 @@
|
|
|
91
96
|
}
|
|
92
97
|
},
|
|
93
98
|
"required": [
|
|
99
|
+
"id",
|
|
94
100
|
"creator",
|
|
95
101
|
"features",
|
|
96
102
|
"filename",
|
package/generated/fonts.json
CHANGED
|
@@ -6,6 +6,11 @@
|
|
|
6
6
|
"additionalProperties": {
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
|
+
"id": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "The font's unique ID, identifying it among other fonts"
|
|
13
|
+
},
|
|
9
14
|
"creator": {
|
|
10
15
|
"type": "array",
|
|
11
16
|
"items": {
|
|
@@ -93,6 +98,7 @@
|
|
|
93
98
|
}
|
|
94
99
|
},
|
|
95
100
|
"required": [
|
|
101
|
+
"id",
|
|
96
102
|
"creator",
|
|
97
103
|
"features",
|
|
98
104
|
"filename",
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/representations",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"representations": {
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"not": {}
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"sitelen_emosi": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",
|
|
15
|
+
"description": "The sitelen emosi representation of this word, a script for writing Toki Pona using emoji"
|
|
16
|
+
},
|
|
17
|
+
"ligatures": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1
|
|
22
|
+
},
|
|
23
|
+
"description": "A list of sitelen Lasina representations of the word, used by ligature fonts to visually convert latin characters into sitelen pona"
|
|
24
|
+
},
|
|
25
|
+
"sitelen_sitelen": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"format": "uri",
|
|
28
|
+
"description": "A URL pointing to an image of this word's sitelen sitelen hieroglyphic block"
|
|
29
|
+
},
|
|
30
|
+
"ucsur": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"pattern": "^U\\+[\\da-fA-F]{4,6}$",
|
|
33
|
+
"description": "The word's UCSUR codepoint, as defined in https://www.kreativekorp.com/ucsur/charts/sitelen.html"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"additionalProperties": false
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"description": "Ways of representing this word in the real world, via text/computers"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
43
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/resources",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"resources": {
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"not": {}
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"sona_pona": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"format": "uri",
|
|
15
|
+
"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."
|
|
16
|
+
},
|
|
17
|
+
"lipamanka_semantic": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"format": "uri",
|
|
20
|
+
"description": "A link to lipamanka's description of the word's semantic space."
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"additionalProperties": false
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"description": "Non-Linku resources related to the specific word, such as wiki links."
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
30
|
+
}
|
package/generated/sandbox.json
CHANGED
|
@@ -6,6 +6,11 @@
|
|
|
6
6
|
"additionalProperties": {
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
|
+
"id": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "A unique identifier for the word. Usually the word but may have an integer added in case of a word with multiple definitions (like \"we\")"
|
|
13
|
+
},
|
|
9
14
|
"author_verbatim": {
|
|
10
15
|
"type": "string",
|
|
11
16
|
"description": "The author's original definition, taken verbatim in their words"
|
|
@@ -72,67 +77,50 @@
|
|
|
72
77
|
},
|
|
73
78
|
"description": "A list of related words"
|
|
74
79
|
},
|
|
75
|
-
"
|
|
76
|
-
"type": "
|
|
77
|
-
"
|
|
78
|
-
|
|
80
|
+
"resources": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"properties": {
|
|
83
|
+
"sona_pona": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"format": "uri",
|
|
86
|
+
"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."
|
|
87
|
+
},
|
|
88
|
+
"lipamanka_semantic": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"format": "uri",
|
|
91
|
+
"description": "A link to lipamanka's description of the word's semantic space."
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"additionalProperties": false,
|
|
95
|
+
"description": "Non-Linku resources related to the specific word, such as wiki links."
|
|
79
96
|
},
|
|
80
97
|
"representations": {
|
|
81
98
|
"type": "object",
|
|
82
99
|
"properties": {
|
|
83
100
|
"sitelen_emosi": {
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
"type": "string",
|
|
87
|
-
"pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"type": "string",
|
|
91
|
-
"const": ""
|
|
92
|
-
}
|
|
93
|
-
],
|
|
101
|
+
"type": "string",
|
|
102
|
+
"pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",
|
|
94
103
|
"description": "The sitelen emosi representation of this word, a script for writing Toki Pona using emoji"
|
|
95
104
|
},
|
|
96
|
-
"
|
|
105
|
+
"ligatures": {
|
|
97
106
|
"type": "array",
|
|
98
107
|
"items": {
|
|
99
|
-
"type": "string"
|
|
108
|
+
"type": "string",
|
|
109
|
+
"minLength": 1
|
|
100
110
|
},
|
|
101
|
-
"description": "A list of sitelen Lasina representations of
|
|
111
|
+
"description": "A list of sitelen Lasina representations of the word, used by ligature fonts to visually convert latin characters into sitelen pona"
|
|
102
112
|
},
|
|
103
113
|
"sitelen_sitelen": {
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
"type": "string",
|
|
107
|
-
"format": "uri"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"type": "string",
|
|
111
|
-
"const": ""
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
+
"type": "string",
|
|
115
|
+
"format": "uri",
|
|
114
116
|
"description": "A URL pointing to an image of this word's sitelen sitelen hieroglyphic block"
|
|
115
117
|
},
|
|
116
118
|
"ucsur": {
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
"type": "string",
|
|
120
|
-
"pattern": "^U\\+[\\da-fA-F]{4,6}$"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"type": "string",
|
|
124
|
-
"const": ""
|
|
125
|
-
}
|
|
126
|
-
],
|
|
119
|
+
"type": "string",
|
|
120
|
+
"pattern": "^U\\+[\\da-fA-F]{4,6}$",
|
|
127
121
|
"description": "The word's UCSUR codepoint, as defined in https://www.kreativekorp.com/ucsur/charts/sitelen.html"
|
|
128
122
|
}
|
|
129
123
|
},
|
|
130
|
-
"required": [
|
|
131
|
-
"sitelen_emosi",
|
|
132
|
-
"sitelen_pona",
|
|
133
|
-
"sitelen_sitelen",
|
|
134
|
-
"ucsur"
|
|
135
|
-
],
|
|
136
124
|
"additionalProperties": false,
|
|
137
125
|
"description": "Ways of representing this word in the real world, via text/computers"
|
|
138
126
|
},
|
|
@@ -246,7 +234,7 @@
|
|
|
246
234
|
"commentary": {
|
|
247
235
|
"type": "string"
|
|
248
236
|
},
|
|
249
|
-
"
|
|
237
|
+
"definition": {
|
|
250
238
|
"type": "string",
|
|
251
239
|
"minLength": 1
|
|
252
240
|
},
|
|
@@ -276,7 +264,7 @@
|
|
|
276
264
|
},
|
|
277
265
|
"required": [
|
|
278
266
|
"commentary",
|
|
279
|
-
"
|
|
267
|
+
"definition",
|
|
280
268
|
"etymology",
|
|
281
269
|
"sp_etymology"
|
|
282
270
|
],
|
|
@@ -285,6 +273,7 @@
|
|
|
285
273
|
}
|
|
286
274
|
},
|
|
287
275
|
"required": [
|
|
276
|
+
"id",
|
|
288
277
|
"author_verbatim",
|
|
289
278
|
"author_verbatim_source",
|
|
290
279
|
"book",
|
|
@@ -292,7 +281,6 @@
|
|
|
292
281
|
"coined_year",
|
|
293
282
|
"creator",
|
|
294
283
|
"see_also",
|
|
295
|
-
"representations",
|
|
296
284
|
"source_language",
|
|
297
285
|
"usage_category",
|
|
298
286
|
"word",
|
package/generated/word.json
CHANGED
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
"word": {
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"description": "A unique identifier for the word. Usually the word but may have an integer added in case of a word with multiple definitions (like \"we\")"
|
|
11
|
+
},
|
|
7
12
|
"author_verbatim": {
|
|
8
13
|
"type": "string",
|
|
9
14
|
"description": "The author's original definition, taken verbatim in their words"
|
|
@@ -70,67 +75,50 @@
|
|
|
70
75
|
},
|
|
71
76
|
"description": "A list of related words"
|
|
72
77
|
},
|
|
73
|
-
"
|
|
74
|
-
"type": "
|
|
75
|
-
"
|
|
76
|
-
|
|
78
|
+
"resources": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"properties": {
|
|
81
|
+
"sona_pona": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"format": "uri",
|
|
84
|
+
"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."
|
|
85
|
+
},
|
|
86
|
+
"lipamanka_semantic": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"format": "uri",
|
|
89
|
+
"description": "A link to lipamanka's description of the word's semantic space."
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"additionalProperties": false,
|
|
93
|
+
"description": "Non-Linku resources related to the specific word, such as wiki links."
|
|
77
94
|
},
|
|
78
95
|
"representations": {
|
|
79
96
|
"type": "object",
|
|
80
97
|
"properties": {
|
|
81
98
|
"sitelen_emosi": {
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
"type": "string",
|
|
85
|
-
"pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"type": "string",
|
|
89
|
-
"const": ""
|
|
90
|
-
}
|
|
91
|
-
],
|
|
99
|
+
"type": "string",
|
|
100
|
+
"pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",
|
|
92
101
|
"description": "The sitelen emosi representation of this word, a script for writing Toki Pona using emoji"
|
|
93
102
|
},
|
|
94
|
-
"
|
|
103
|
+
"ligatures": {
|
|
95
104
|
"type": "array",
|
|
96
105
|
"items": {
|
|
97
|
-
"type": "string"
|
|
106
|
+
"type": "string",
|
|
107
|
+
"minLength": 1
|
|
98
108
|
},
|
|
99
|
-
"description": "A list of sitelen Lasina representations of
|
|
109
|
+
"description": "A list of sitelen Lasina representations of the word, used by ligature fonts to visually convert latin characters into sitelen pona"
|
|
100
110
|
},
|
|
101
111
|
"sitelen_sitelen": {
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
"type": "string",
|
|
105
|
-
"format": "uri"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"type": "string",
|
|
109
|
-
"const": ""
|
|
110
|
-
}
|
|
111
|
-
],
|
|
112
|
+
"type": "string",
|
|
113
|
+
"format": "uri",
|
|
112
114
|
"description": "A URL pointing to an image of this word's sitelen sitelen hieroglyphic block"
|
|
113
115
|
},
|
|
114
116
|
"ucsur": {
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
"type": "string",
|
|
118
|
-
"pattern": "^U\\+[\\da-fA-F]{4,6}$"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"type": "string",
|
|
122
|
-
"const": ""
|
|
123
|
-
}
|
|
124
|
-
],
|
|
117
|
+
"type": "string",
|
|
118
|
+
"pattern": "^U\\+[\\da-fA-F]{4,6}$",
|
|
125
119
|
"description": "The word's UCSUR codepoint, as defined in https://www.kreativekorp.com/ucsur/charts/sitelen.html"
|
|
126
120
|
}
|
|
127
121
|
},
|
|
128
|
-
"required": [
|
|
129
|
-
"sitelen_emosi",
|
|
130
|
-
"sitelen_pona",
|
|
131
|
-
"sitelen_sitelen",
|
|
132
|
-
"ucsur"
|
|
133
|
-
],
|
|
134
122
|
"additionalProperties": false,
|
|
135
123
|
"description": "Ways of representing this word in the real world, via text/computers"
|
|
136
124
|
},
|
|
@@ -238,6 +226,7 @@
|
|
|
238
226
|
}
|
|
239
227
|
},
|
|
240
228
|
"required": [
|
|
229
|
+
"id",
|
|
241
230
|
"author_verbatim",
|
|
242
231
|
"author_verbatim_source",
|
|
243
232
|
"book",
|
|
@@ -245,7 +234,6 @@
|
|
|
245
234
|
"coined_year",
|
|
246
235
|
"creator",
|
|
247
236
|
"see_also",
|
|
248
|
-
"representations",
|
|
249
237
|
"source_language",
|
|
250
238
|
"usage_category",
|
|
251
239
|
"word",
|
package/generated/words.json
CHANGED
|
@@ -6,6 +6,11 @@
|
|
|
6
6
|
"additionalProperties": {
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
|
+
"id": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "A unique identifier for the word. Usually the word but may have an integer added in case of a word with multiple definitions (like \"we\")"
|
|
13
|
+
},
|
|
9
14
|
"author_verbatim": {
|
|
10
15
|
"type": "string",
|
|
11
16
|
"description": "The author's original definition, taken verbatim in their words"
|
|
@@ -72,67 +77,50 @@
|
|
|
72
77
|
},
|
|
73
78
|
"description": "A list of related words"
|
|
74
79
|
},
|
|
75
|
-
"
|
|
76
|
-
"type": "
|
|
77
|
-
"
|
|
78
|
-
|
|
80
|
+
"resources": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"properties": {
|
|
83
|
+
"sona_pona": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"format": "uri",
|
|
86
|
+
"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."
|
|
87
|
+
},
|
|
88
|
+
"lipamanka_semantic": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"format": "uri",
|
|
91
|
+
"description": "A link to lipamanka's description of the word's semantic space."
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"additionalProperties": false,
|
|
95
|
+
"description": "Non-Linku resources related to the specific word, such as wiki links."
|
|
79
96
|
},
|
|
80
97
|
"representations": {
|
|
81
98
|
"type": "object",
|
|
82
99
|
"properties": {
|
|
83
100
|
"sitelen_emosi": {
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
"type": "string",
|
|
87
|
-
"pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"type": "string",
|
|
91
|
-
"const": ""
|
|
92
|
-
}
|
|
93
|
-
],
|
|
101
|
+
"type": "string",
|
|
102
|
+
"pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",
|
|
94
103
|
"description": "The sitelen emosi representation of this word, a script for writing Toki Pona using emoji"
|
|
95
104
|
},
|
|
96
|
-
"
|
|
105
|
+
"ligatures": {
|
|
97
106
|
"type": "array",
|
|
98
107
|
"items": {
|
|
99
|
-
"type": "string"
|
|
108
|
+
"type": "string",
|
|
109
|
+
"minLength": 1
|
|
100
110
|
},
|
|
101
|
-
"description": "A list of sitelen Lasina representations of
|
|
111
|
+
"description": "A list of sitelen Lasina representations of the word, used by ligature fonts to visually convert latin characters into sitelen pona"
|
|
102
112
|
},
|
|
103
113
|
"sitelen_sitelen": {
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
"type": "string",
|
|
107
|
-
"format": "uri"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"type": "string",
|
|
111
|
-
"const": ""
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
+
"type": "string",
|
|
115
|
+
"format": "uri",
|
|
114
116
|
"description": "A URL pointing to an image of this word's sitelen sitelen hieroglyphic block"
|
|
115
117
|
},
|
|
116
118
|
"ucsur": {
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
"type": "string",
|
|
120
|
-
"pattern": "^U\\+[\\da-fA-F]{4,6}$"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"type": "string",
|
|
124
|
-
"const": ""
|
|
125
|
-
}
|
|
126
|
-
],
|
|
119
|
+
"type": "string",
|
|
120
|
+
"pattern": "^U\\+[\\da-fA-F]{4,6}$",
|
|
127
121
|
"description": "The word's UCSUR codepoint, as defined in https://www.kreativekorp.com/ucsur/charts/sitelen.html"
|
|
128
122
|
}
|
|
129
123
|
},
|
|
130
|
-
"required": [
|
|
131
|
-
"sitelen_emosi",
|
|
132
|
-
"sitelen_pona",
|
|
133
|
-
"sitelen_sitelen",
|
|
134
|
-
"ucsur"
|
|
135
|
-
],
|
|
136
124
|
"additionalProperties": false,
|
|
137
125
|
"description": "Ways of representing this word in the real world, via text/computers"
|
|
138
126
|
},
|
|
@@ -246,7 +234,7 @@
|
|
|
246
234
|
"commentary": {
|
|
247
235
|
"type": "string"
|
|
248
236
|
},
|
|
249
|
-
"
|
|
237
|
+
"definition": {
|
|
250
238
|
"type": "string",
|
|
251
239
|
"minLength": 1
|
|
252
240
|
},
|
|
@@ -276,7 +264,7 @@
|
|
|
276
264
|
},
|
|
277
265
|
"required": [
|
|
278
266
|
"commentary",
|
|
279
|
-
"
|
|
267
|
+
"definition",
|
|
280
268
|
"etymology",
|
|
281
269
|
"sp_etymology"
|
|
282
270
|
],
|
|
@@ -285,6 +273,7 @@
|
|
|
285
273
|
}
|
|
286
274
|
},
|
|
287
275
|
"required": [
|
|
276
|
+
"id",
|
|
288
277
|
"author_verbatim",
|
|
289
278
|
"author_verbatim_source",
|
|
290
279
|
"book",
|
|
@@ -292,7 +281,6 @@
|
|
|
292
281
|
"coined_year",
|
|
293
282
|
"creator",
|
|
294
283
|
"see_also",
|
|
295
|
-
"representations",
|
|
296
284
|
"source_language",
|
|
297
285
|
"usage_category",
|
|
298
286
|
"word",
|