30. Lojban in Mova
Mova holds Lojban grammars, word lists and text excerpts. Its processing tools have no Lojban language identifier, word breaker or parser. The library defines much of the structure a Lojban analysis would need, from word forms to predicate places. The missing annotation and parser baseline leave the accuracy of such an analysis unmeasured.
The jbo package and the available library materials
jbo is the code for Lojban in the manual and language package. The research library holds the Logical Language Group’s baseline word lists, the YACC and EBNF versions of its 1997 machine grammar, and the ilmentufa PEG grammar camxes.peg. The YACC and EBNF versions share production numbers, with differences in subrule notation. The PEG grammar provides its own text and morphology rules. Mova’s code currently uses none of these materials for Lojban processing. (The Logical Language Group 1997, EBNF notation and YACC parsing steps; Hagiwara, Ilmen and lagleki 2014, Grammar and Morphology)
| Baseline list | Information it provides |
|---|---|
| gismu | Predicate roots, definitions of their numbered places, and assigned combining forms where listed |
| cmavo | Structure words, their grammatical classes (selma'o), and notes on their use |
| rafsi | Combining forms and the source words with which they are associated |
| lujvo | Attested entries for compound predicates, with source elements and, where supplied, correspondences between compound places and source-predicate places |
The word lists are Lojban definition materials. The held root-list header describes that release as a draft baseline. The lists serve different lookups. For instance, the cmavo list gives bau the gloss “in language” and classes it as a modal tag. The rafsi list also gives bau as a combining form of bangu, “language.” The same string therefore has different entries depending on whether it stands as a structure word or forms part of a compound. (The Logical Language Group 1994, cmavo, gismu and rafsi lists)
The available corpus excerpts supply usage in context. Some begin or end within a construction. An excerpt ending just after a quotation delimiter, for example, establishes what the text contains up to that boundary. It leaves the extent and contents of the quotation unknown.
Language identification and the missing Lojban language code
tools/langseg assigns a language at sentence and span level. Its Latin-script support distinguishes English and French using a Latin table, language lexicons and a character 4-gram model. Lojban uses Latin script, so membership in that script gives the identifier no basis for distinguishing Lojban from other Latin-script text. tools/langseg lacks both a Lojban lexicon and a Lojban Lang code.
The package code jbo identifies the language in this manual. Runtime recognition requires a corresponding code and lexical data in the language identifier. The supported route for adding a Latin-script language is to add a Lang code and a lexicon derived from an open Universal Dependencies (UD) training split. The library’s Lojban word lists are available as reference material, and there is no Lojban UD training split in Mova.
Language identification and word breaking concern different boundaries. A language span specifies which language a stretch of text belongs to. Word breaking specifies which parts of that stretch form words. The Lojban YACC baseline describes word recognition in terms of phonemes, stress and pauses, and gives delimited foreign material its own treatment. A Latin-script span label supplies none of that analysis. (The Logical Language Group 1997, YACC steps 1–2)
Multilingual parser output for a language without a model
tools/mova-parse uses the level-1 language assignment to select a level-2 model for each span. Level 2 requires the model file for the assigned language. There is no model for jbo. When a span has a language assignment for which the model is missing, the output reports the missing model in the # parse comment and leaves the affected token annotations as follows.
| Output field | Value with no model | Information absent |
|---|---|---|
LEMMA | _ | Lemma |
UPOS | _ | Universal part of speech |
XPOS | _ | Language-specific part of speech |
FEATS | _ | Morphological features |
HEAD | _ | Dependency head |
DEPREL | _ | Dependency relation |
MISC | Parse=None | Records that the token has no parse |
This output convention concerns a span’s assigned language. In ordinary Lojban input, the earlier identification gap also applies. The current identifier does not recognize a Latin-script span as jbo. An assignment to a supported language would select that language’s model. Any rows produced by that route would still lack a Lojban analysis. In particular, the presence of token rows in multilingual output does not establish that Lojban word boundaries have been found.
Word breaking and formal parsing gaps
A Lojban word breaker needs to account for the following forms. The PEG grammar recognizes gismu, lujvo and fu'ivla as alternatives under BRIVLA, and has separate entries for CMAVO and CMEVLA. The rafsi list supplies evidence about the internal structure of compounds. A compound containing a listed combining form still has an outer word boundary of its own. (Hagiwara, Ilmen and lagleki 2014, Morphology; The Logical Language Group 1994, rafsi and lujvo lists)
| Form class | Description |
|---|---|
| gismu | Predicate root |
| cmavo | Structure word classified by grammatical function |
| lujvo | Compound predicate word |
| fu'ivla | Borrowed predicate word |
| cmevla | Name-form word |
The YACC baseline divides analysis into passes. It first resolves the word stream and then filters it, giving quotation recognition precedence where the filters compete. The order is significant for three quotation markers. After zoi, the next Lojban word serves as the delimiter, and the closing occurrence must follow a pause. The intervening material is handled as one grammatical token. After zo, a single following Lojban word is treated as quoted material in place of its usual grammatical class. When lo'u opens a word quotation, the search for le'u skips occurrences already absorbed by those earlier filters. The baseline separately specifies erasure, end-of-text handling and token absorption before the final syntactic parse. (The Logical Language Group 1997, YACC steps 1–5)
The distinction is visible in a corpus fragment from wiki:runbau.
| Form | Gloss | Translation |
|---|---|---|
zo runbau | QUOTE.ONE runbau | “the word runbau” |
Here the quotation construction supplies an argument even though the quoted word, in an ordinary predicate position, could supply a predicate. The EBNF lists single-word quotation among the alternatives that can form a sumti. It also distinguishes this construction from lu followed by grammatical text and closed by li'u. The EBNF marks li'u as elidable where omission introduces no grammatical ambiguity. (The Logical Language Group 1997, EBNF notation and rule 97)
The YACC baseline uses preparatory recognition of certain token sequences before applying its LALR(1) parser. Order matters when a sequence that could receive a lexer label also occurs inside a longer sequence. The PEG grammar exposes morphology and text structure in its own rules. For example, its opening text production admits the CMEVLA alternative, while its morphology production distinguishes CMEVLA from BRIVLA. These are available specifications. Mova has no Lojban word breaker, and neither grammar runs in Mova. (The Logical Language Group 1997, YACC step 5; Hagiwara, Ilmen and lagleki 2014, Grammar and Morphology)
The UD annotation gap and the unmeasured treebank baseline
The formal grammars describe the constituent structure of Lojban. For example, the EBNF gives a sentence an optional initial sequence of terms and a required bridi tail. When the initial terms are present, an optional cu can follow them. One branch of the tail contains a selbri followed by the tail-terms construction, which may contain no terms. The other branch is a forethought connected sentence. These productions identify grammatical units and their order. A UD annotation also needs decisions about token boundaries, lexical and morphological labels, dependency heads and dependency relations. Mova has no mapping from Lojban parse trees to UD. (The Logical Language Group 1997, EBNF rules 40, 53–54 and 71)
The relative clause below is an excerpt from wiki:solri. It modifies the preceding expression for other planets.
| Form | Gloss | Translation |
|---|---|---|
poi ke'a du la merkuris. | REL.RESTR REL.PRO be-identical NAME Mercury | “that is Mercury” |
The baseline places poi in the NOI relative-clause construction, in which the marker introduces a subsentence and the closing ku'o is elidable if the result is unambiguous. A UD mapping would also need a head for the clause, a relation to the expression it modifies, and analyses of the marker and the relative pro-argument. The example has a corpus identifier and a readable grammatical analysis. It has no supplied gold UD tree. (The Logical Language Group 1997, EBNF notation and rules 121–122)
Mova holds no annotated Lojban corpus or Lojban treebank. The package calls for the same train-to-development baseline for each language. Unlabeled attachment score (UAS) measures agreement with reference heads. Labeled attachment score (LAS) requires agreement on the head and the relation label. Lojban has neither measurement in Mova. The missing scores represent an unevaluated baseline.
Dependencies, frames and pragmatics
A dependency tree records syntactic relations. A predicate frame also needs the meanings of a predicate’s places. The root list gives bangu a language or dialect in its first place, its user in its second, and the content expressed in its third. The compound list shows why a frame inventory also needs lexical information about compounds. In banta'a, “speak a language,” the language is the compound’s second place, corresponding to the fourth place of tavla and the first place of bangu. The correspondence is part of the compound entry. (The Logical Language Group 1994, gismu and lujvo lists)
Grammar also affects the link between a surface argument and a predicate place. The EBNF permits place tags in terms and SE conversion within a predicate unit. A frame analysis would need to account for those constructions when assigning expressed arguments to lexical places. The dependency analysis supplies syntactic structure for that task, and the word lists supply the lexical place definitions. (The Logical Language Group 1997, EBNF rules 83 and 152)
Pragmatic interpretation draws on other distinctions. The cmavo inventory identifies .a'o, “hope,” as an attitudinal and ba'a, “I anticipate,” as an evidential. The YACC baseline allows members of UI to be absorbed into a preceding token for subsequent grammatical processing and handles text-initial indicators separately. A pragmatic analysis would still need access to the indicator and its position. Mova has no mapping from Lojban parse trees to frames or pragmatics. Its frame, pragmatics and world components currently read English trees. (The Logical Language Group 1994, cmavo list; The Logical Language Group 1997, YACC step 4 and EBNF rule 0)
Grammar claims and the Squid implementation queue
Squid reads the grammar manual and records each grammatical point as a claim. Rules, closed lists and statistics that can be formalized wait in its implementation queue. Queue membership records a candidate for implementation. Current support depends on the rule being present in Mova’s code.
Several kinds of claim bear directly on the first Lojban processing work. Word-form rules give a tokenizer its boundary conditions. Quotation rules specify when an ordinary word takes a special grammatical role or a body of text is treated as a unit. The selma'o inventory provides categories that a tagger can use as evidence. Sentence and phrase productions identify structures for which a UD treebank would need head and relation conventions. A lexical category such as NOI identifies a grammar class. Its annotation requires an explicit UD decision. (The Logical Language Group 1994, cmavo list; The Logical Language Group 1997, YACC steps 1–2 and EBNF rules 40 and 122; Hagiwara, Ilmen and lagleki 2014, Morphology)
The formal specifications, lexical entries and corpus excerpts can support those decisions. The resulting baseline requires a treebank with training and development splits and a model trained and evaluated on them. No Lojban grammar rule described here is implemented in Mova.
How Mova handles Lojban today
tools/langseg provides level-1 language assignments for sentences and spans. It distinguishes English and French in Latin script through a Latin table, language lexicons and a character 4-gram model. It also handles Hebrew-script varieties and scholarly transliterations of Hebrew and Aramaic. Its Lojban lexicon and language code are absent, so it cannot distinguish Lojban spans within Latin-script text. The route for another Latin-script language uses a Lang code and a lexicon from an open UD training split, built with langseg latin-lexicon.
At level 2, tools/mova-parse parses each span with the model for its assigned language. There is no jbo model. When a model is missing, the parser records that in the # parse comment, puts _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, and records Parse=None in MISC. Mova has no Lojban word breaker for gismu, cmavo, lujvo, fu'ivla or cmevla. It does not tokenize, tag, lemmatize or parse text as Lojban.
The research library holds the 1997 YACC and EBNF baseline grammar, ilmentufa’s camxes.peg, and the official gismu, cmavo, rafsi and lujvo lists. Mova’s code uses none of them for Lojban. It has no Lojban treebank or mapping from Lojban parse trees to UD, frames or pragmatics. The frame, pragmatics and world components read English trees. They have no Lojban trees to read.
The en crate provides Mova’s own trainable parser. After en xpos-fill, en train trains a tree parser and tagger on the language’s UD training split. en parse-eval measures UAS and LAS on the development split. English and French have models. The language package calls for the same baseline for Lojban, which has no annotated corpus or measured treebank baseline.
Squid records the manual’s grammatical points as claims and queues the formalizable ones for implementation. The word-breaker and tagger rules and the requirements for a UD treebank baseline are the first points needed. The Lojban claims in the queue have no implementation in Mova today.
Sources for this chapter
- The Logical Language Group 1994. Lojban baseline word lists: gismu, cmavo, rafsi and lujvo (1994–2002) — Public domain: LLG declaration (public_domain.txt in the same directory): Lojban language definition materials, placed irrevocably in the public domain (signed Robert LeChevalier, President, LLG)
- The Logical Language Group 1997. Lojban Machine Grammar, 3rd Baseline (YACC and EBNF versions, 10 January 1997) — Public domain: explicitly dedicated to the public domain by its author, the Logical Language Group Inc. (headers of bnf.300 and grammar.300; LLG declaration PD.txt)
- Masato Hagiwara; Ilmen; lagleki 2014. la ilmentufa: camxes.peg, the standard PEG grammar of Lojban — MIT License (LICENSE of github.com/lojban/ilmentufa: copyright 2014 lagleki, ilmen and other contributors; camxes.js.peg copyright 2013, 2014 Masato Hagiwara, MIT; camxes.peg header: MIT)
This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/jbo/30-lojban-in-mova/