tokipona

package
Version: v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2020 License: CC0-1.0 Imports: 6 Imported by: 0

README

tokipona

An attempt to put toki pona sentences into a grammatical structure close to how I conceptualize the langauge internally.

Documentation

Overview

Package tokipona contains utilities, helpers and relexers for Toki Pona.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Relex

func Relex(inp string) string

Relex does a very literal translation of Toki Pona to English. See http://tokipona.net/tp/Relex.aspx for the idea.

Types

type Word

type Word struct {
	Name     string   `json:"name"`
	Gloss    string   `json:"gloss"`
	Grammar  []string `json:"grammar"`
	Category string   `json:"category,omitempty"`
	Type     string   `json:"type,omitempty"`
}

Word is a single word in the Toki Pona dictionary.

func LoadWords

func LoadWords() ([]Word, error)

LoadWords loads the embedded Toki Pona dictionary.

Directories

Path Synopsis
Code generated by go-bindata.
Code generated by go-bindata.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto