jbominji

jbominji is a collection of lojban related programs I have written in Common Lisp.

With the advent of a PEG grammar for lojban it became easier to create a lobjan parser.

I wrote a Common Lisp library called cl-peg to be able to read the lojban grammar and create a lojban parser.

Viewing lojban parse trees with Graphviz

Using the Graphviz software and cl-dot I wrote a web front-end for visualizing the parse trees that result from parsing lojban texts.

You can try it out here.

Currently you can choose between

You can choose to show the nodes representing the morphological breakdown of the lojban input.

By default jbominji generates png images, you can also view svg images or generate inline svg.

See examples

Glossing lojban uttered on IRC

Using cl-irc I wrote an IRC bot that listens in the #lojban chat room and generates output in #jbokumfa.

For example, if someone said "mi na morji" jbominji produces this output:

<< mi na morji >> 
.i zo mi cu cmavo la'e zoi gy. me gy.
.i zo na cu cmavo la'e zoi gy. bridi negator gy.
.i zo morji cu gismu la'e zoi gy. remember gy.
The quotes indicate which part of the text parsed successfully. Any text following the quotes did not parse.

Then it tries to provide a gloss for each gismu and cmavo (reading gismu.txt and cmavo.txt).

Example 1 (Edited parse tree for "mi na jimpe")

Example 2 (Full parse tree with morphology for "mi na jimpe")