diff options
| author | Christine Dodrill <me@christine.website> | 2018-10-27 08:47:38 -0700 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2018-10-27 08:47:38 -0700 |
| commit | a1ad328ec646e56b69b50a322be3de4f182c5f02 (patch) | |
| tree | 4290707e9c72a9c6c18fe7c52f3c0b40fe02f24b | |
| parent | 273b48a8b409126e14f8beb23cee4255d1f08a2c (diff) | |
| download | x-a1ad328ec646e56b69b50a322be3de4f182c5f02.tar.xz x-a1ad328ec646e56b69b50a322be3de4f182c5f02.zip | |
start tokipona.yaml
| -rw-r--r-- | tokipona/README.md | 4 | ||||
| -rw-r--r-- | tokipona/doc.go | 6 | ||||
| -rw-r--r-- | tokipona/legal.go | 11 | ||||
| -rw-r--r-- | tokipona/tokipona.go | 22 | ||||
| -rw-r--r-- | tokipona/tokipona.yaml | 323 |
5 files changed, 366 insertions, 0 deletions
diff --git a/tokipona/README.md b/tokipona/README.md new file mode 100644 index 0000000..bf7ae42 --- /dev/null +++ b/tokipona/README.md @@ -0,0 +1,4 @@ +# tokipona + +An attempt to put toki pona sentences into a grammatical structure close to how I +conceptualize the langauge internally. diff --git a/tokipona/doc.go b/tokipona/doc.go new file mode 100644 index 0000000..5038499 --- /dev/null +++ b/tokipona/doc.go @@ -0,0 +1,6 @@ +// Package tokipona is a simple package to walk tokiponatokens sentences and +// decompose them into their component subject, verb and object. +// +// Sorry, most of the type and member names are going to be in Toki Pona so I +// don't have to code switch between English and Toki Pona so much. +package tokipona diff --git a/tokipona/legal.go b/tokipona/legal.go new file mode 100644 index 0000000..ce81d29 --- /dev/null +++ b/tokipona/legal.go @@ -0,0 +1,11 @@ +package tokipona + +// pu li wile e ni. + +import "go4.org/legal" + +const tokiPonaLicense = `This creative work by Christine Dodrill is based on the official Toki Pona book and website: http://tokipona.org` + +func init() { + legal.RegisterLicense(tokiPonaLicense) +} diff --git a/tokipona/tokipona.go b/tokipona/tokipona.go new file mode 100644 index 0000000..7d72fdb --- /dev/null +++ b/tokipona/tokipona.go @@ -0,0 +1,22 @@ +package tokipona + +// Toki li wan toki. +// +// Toki is a sentence. +type Toki struct { + Subject []Nimi + Verb []Nimi + Object []Nimi +} + +// Nimi is a single word in Toki Pona. +type Nimi struct { + Nimi string `json:"nimi"` + + Particle string `json:"particle"` + Nouns []string `json:"nouns"` + Adjectives []string `json:"adjectives"` + PreVerbs []string `json:"preverbs"` + Verbs []string `json:"verbs"` + Prepositions []string `json:"prepositions"` +} diff --git a/tokipona/tokipona.yaml b/tokipona/tokipona.yaml new file mode 100644 index 0000000..0c78d81 --- /dev/null +++ b/tokipona/tokipona.yaml @@ -0,0 +1,323 @@ +# This is a synthesis for a dictionary in toki pona. The following roles are +# supposed to be interepreted as the following: +# +# xultbangu: # metalanguage +# adjective: +# - describes a trait or quality of a noun +# - x is $ENTRY +# - passive +# noun: +# - explains a thing's identity +# - singular +# number: +# - a quantity +# particle: +# - explains the grammatical role in the sentence +# preposition: +# - expresses spatial or temporal relationships between words +# preverb: +# - gives additional context to a verb +# verb: +# - explains an action, occurance or existence +# - $SUBJECT $VERB $OBJECT +# - plural + +# taken from pu and https://en.wikibooks.org/wiki/Toki_Pona/WordTpEn + +a: + particle: + - emphasis + - emotion + - confirmation + +akesi: + noun: + - non-cute animal + - reptile + - amphibian + +ala: + adjective: + - negated + +alasa: + verb: + - hunts + - forages + +ale: + adjective: + - all + - abundant + - countless + - infinite + - bountiful + - every + - plentiful + + noun: + - abundance + - everything + - life + - universe + + number: + - 100 + +anpa: + adjective: + - bowing down + - downward + - humble + - lowly + - dependent + +ante: + adjective: + - different + - altered + - changed + - other + +anu: + particle: + - or + +awen: + adjective: + - enduring + - kept + - protected + - safe + - waiting + - staying + + preverb: + - continuing to x + +e: + particle: + - marks direct object + +en: + particle: + - combines multiple subjects into one subject (semanticalyl similar but not identical to and in English) + +esun: + noun: + - market + - shop + - fair + - bazarr + - buisiness transaction + +ijo: + noun: + - thing + - phenomenon + - object + - matter + +ike: + adjective: + - bad + - negative + - non-essential + - irrelevant + +ilo: + noun: + - tool + - implement + - machine + - device + +insa: + noun: + - center + - content + - inside + - between + - internal organ + - stomach + +jaki: + adjective: + - disgusting + - obscene + - sickly + - toxic + - unclean + - unsanitary + +jelo: + adjective: + - the color yellow + - similar to the color yellow + +jo: + verb: + - has + - contains + - carries + - holds + +kala: + noun: + - fish + - marine animal + - sea creature + +kalama: + verb: + - produces sound + - recite + - utter aloud + +kama: + adjective: + - arriving + - coming + - in the future + - summoned + + preverb: + - becoming x + - managing to x + - succeeding in x + +kasi: + noun: + - plant + - vegetation + - herb + - leaf + +ken: + adjective: + - possible + + preverb: + - able to x + - allowed to x + - can x + - may x + +kepeken: + preposition: + - to use + - with + - by means + +kili: + noun: + - fruit + - vegetable + - mushroom + +kiwen: + noun: + - hard object + - metal + - rock + - stone + +ko: + noun: + - clay + - clinging form + - dough + - semi-solid + - paste + - powder + +kon: + noun: + - air + - breath + - essence + - spirit + - hidden reality + - unseen agent + +kule: + adjective: + - colorful + - pigmented + + noun: + - color + - paint + + verb: + - color + - paint + +kulupu: + noun: + - community + - company + - group + - nation + - society + - tribe + +kute: + noun: + - ear + + verb: + - hear + - listen + - pay attention to + - obey + +la: + particle: + - separates context phrase and main sentence + +lape: + adjective: + - sleeping + - resting + + noun: + - sleep + - rest + + verb: + - sleeps + - rests + +laso: + adjective: + - blue + - green + +lawa: + noun: + - head + - mind + + adjective: + - + + verb: + - controls + - directs + - guides + - leads + - owns + - plans + - regulates + - rules + +len: + noun: + - cloth + - clothing + - fabric + - textile + - cover + - layer of privacy + |
