Toki Pona最小和构造语言的基本概念和工具:语言描述和主要问题;词汇分析;文本合成和语法突出显示; Wordnet同义词集
Basic concepts and tools for the Toki Pona minimal and constructed language: description of the language and main issues; analysis of the vocabulary; text synthesis and syntax highlighting; Wordnet synsets
摘要:
最小构造语言(conlang)对于实验很有用,对于制作工具也很方便。Toki Pona(TP)conlang在词汇表(只有14个字母和124个词元)和(大约)10条语法规则方面都是最小的。这种语言是有用的,因为它是一种使用过的、在某种程度上已经建立的最小的conlang,至少有数百名流利的使用者。本文公开了TP的当前概念和资源,并提供了Python(和Vim)脚本例程,用于分析语言,合成文本,语法突出显示方案以及实现初步的TP Wordnet。重点是对基本词汇的分析,如语料库分析所发现的那样。合成基于句子模板,通过跟踪使用的单词与上下文相关,并通过使用固定数量的音素(例如诗歌)和句子,单词和字母(例如段落)来呈现更大的文本。高亮显示反映了官方词典中给出的形态语法类,不同的解决方案在成熟的Vim文本编辑器中描述和实现。尝试TP Wordnet可在三种模式的关系之间的同义词集和词词元。总之,这篇文章在分析、综合和语法突出TP语言方面具有潜在的新颖概念化、工具和结果。
英文摘要:
A minimal constructed language (conlang) is useful for experiments and comfortable for making tools. The Toki Pona (TP) conlang is minimal both in the vocabulary (with only 14 letters and 124 lemmas) and in the (about) 10 syntax rules. The language is useful for being a used and somewhat established minimal conlang with at least hundreds of fluent speakers. This article exposes current concepts and resources for TP, and makes available Python (and Vim) scripted routines for the analysis of the language, synthesis of texts, syntax highlighting schemes, and the achievement of a preliminary TP Wordnet. Focus is on the analysis of the basic vocabulary, as corpus analyses were found. The synthesis is based on sentence templates, relates to context by keeping track of used words, and renders larger texts by using a fixed number of phonemes (e.g. for poems) and number of sentences, words and letters (e.g. for paragraphs). Syntax highlighting reflects morphosyntactic classes given in the official dictionary and different solutions are described and implemented in the well-established Vim text editor. The tentative TP Wordnet is made available in three patterns of relations between synsets and word lemmas. In summary, this text holds potentially novel conceptualizations about, and tools and results in analyzing, synthesizing and syntax highlighting the TP language.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。