History: Fractal Lojban Sentences

Preview of version: 7

Recursive Grammar and Fractals


One of the nifty properties of the Lojban grammar is that it is fully recursive. That is: any grammatically correct piece of Lojban text can be embedded within another piece of Lojban text. Combined with the fact that Lojban can be parsed (and therefore synthesized) by machines, the possibility exists of creating Lojban sentences with a self-similar, or fractal, structure.

The following is a simple example of one such fractal sentence.

la nelci bebna


la nelci bebna is a simple fractal Lojban sentence with the following grammar:

<sentence> --> mi nelci tu'a lonu do tavla fi lodu'u <sentence> kei kei mu'i lodu'u losi'o <sentence> kei bebna kei


It means, roughly, "I like your talking about the fact that (this sentence) because of the fact that the idea of (this sentence) is foolish."

Prolog code for la necli bebna

The following Prolog code uses defenite clause grammar (DCG) clauses to generate iterations of the la nelci bebna fractal. (Note: this code has been character-mangled in order to appear correctly in this wiki page. If you cut and paste these clauses into your Prolog interpreter, you'll need to change all the double-quotes (") to double apostrophes(' followed by ') first.)

buha(0) --> ['bu''a'].

buha(N) --> {integer(N), N > 0, M is N-1},
[mi,nelci,'tu"a',lonu,do,tavla,fi,'lodu"u'], buha(M), [kei,kei],
['mu"i','lodu"u','losi''o'], buha(M), [kei,bebna,kei].

Example Iterations


The zero'th iteration of la nelci bebna is the terminal sentence bu'a.

The first iteration is: mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei.

The second: mi nelci tu'a lonu do tavla fi lodu'u mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei kei kei mu'i lodu'u losi'o mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei kei bebna kei.

And so on. Since each "sent" has two branches, the number of bu'as in the Nth expansion is 2**N.

Here's la nelci bebna after five expansions (containing just 32 bu'as):

mi nelci tu'a lonu do tavla fi lodu'u mi nelci tu'a lonu do tavla fi lodu'u mi nelci tu'a lonu do tavla fi lodu'u mi nelci tu'a lonu do tavla fi lodu'u mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei kei kei mu'i lodu'u losi'o mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei kei bebna kei kei kei mu'i lodu'u losi'o mi nelci tu'a lonu do tavla fi lodu'u mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei kei kei mu'i lodu'u losi'o mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei kei bebna kei kei bebna kei kei kei mu'i lodu'u losi'o mi nelci tu'a lonu do tavla fi lodu'u mi nelci tu'a lonu do tavla fi lodu'u mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei kei kei mu'i lodu'u losi'o mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei kei bebna kei kei kei mu'i lodu'u losi'o mi nelci tu'a lonu do tavla fi lodu'u mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei kei kei mu'i lodu'u losi'o mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei kei bebna kei kei bebna kei kei bebna kei kei kei mu'i lodu'u losi'o mi nelci tu'a lonu do tavla fi lodu'u mi nelci tu'a lonu do tavla fi lodu'u mi nelci tu'a lonu do tavla fi lodu'u mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei kei kei mu'i lodu'u losi'o mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei kei bebna kei kei kei mu'i lodu'u losi'o mi nelci tu'a lonu do tavla fi lodu'u mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei kei kei mu'i lodu'u losi'o mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei kei bebna kei kei bebna kei kei kei mu'i lodu'u losi'o mi nelci tu'a lonu do tavla fi lodu'u mi nelci tu'a lonu do tavla fi lodu'u mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei kei kei mu'i lodu'u losi'o mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei kei bebna kei kei kei mu'i lodu'u losi'o mi nelci tu'a lonu do tavla fi lodu'u mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei kei kei mu'i lodu'u losi'o mi nelci tu'a lonu do tavla fi lodu'u bu'a kei kei mu'i lodu'u losi'o bu'a kei bebna kei kei bebna kei kei bebna kei kei bebna kei kei bebna kei

Many More Possibilities!


Of course, la necli bebna is a simple and (as the name implies) rather silly sentence. Much more meaningful, even profound, fractal sentences could be constructed in a similar fashion. In fact, one could imagine fractal sentences becoming a new art form-maybe fractal poems will be written-unique among the literature of other languages, because of the recursive and unambiguous nature of Lojban's grammar. The possibilities are literally endless endless endless endless endless endless endless endless endless endless endless!

History

Advanced
Information Version
Wed 31 of Dec, 2008 19:25 GMT brablonau from 207.22.49.29 removed strikeout (wiki syntax change?) 15
Wed 31 of Dec, 2008 19:25 GMT brablonau from 207.22.49.29 removed strikeout (wiki syntax change?) 14
Sun 25 of Jun, 2006 18:42 GMT brablonau from 65.175.225.210 preformatted text for Prolog clauses 13
Sat 03 of Jun, 2006 17:51 GMT brablonau from 65.175.225.210 fixed terminators, fractal now parses 12
Tue 30 of May, 2006 17:05 GMT brablonau from 65.175.225.210 typo s/defenite/definite/ 11
Tue 30 of May, 2006 17:05 GMT brablonau from 65.175.225.210 10
Fri 26 of May, 2006 18:35 GMT brablonau from 65.175.225.210 9
Fri 26 of May, 2006 18:33 GMT brablonau from 65.175.225.210 8
Fri 26 of May, 2006 18:10 GMT brablonau from 65.175.225.210 7
Fri 26 of May, 2006 18:02 GMT brablonau from 65.175.225.210 6
Fri 26 of May, 2006 18:00 GMT brablonau from 65.175.225.210 fractals don't have terminals... .uasai 5
Fri 26 of May, 2006 17:41 GMT brablonau from 65.175.225.210 4
Fri 26 of May, 2006 17:37 GMT brablonau from 65.175.225.210 lo -> la .uasai 3
Fri 26 of May, 2006 15:24 GMT brablonau from 65.175.225.210 Fixed code rendering... ugh. 2
Fri 26 of May, 2006 14:42 GMT brablonau from 65.175.225.210 1
Show PHP error messages