[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lojban] lujvo deconstruction



On Fri, Oct 29, 2010 at 10:08 AM, Luke Bergen <lukeabergen@gmail.com> wrote:
When I first started learning lojban I wrote up a quick'n dirty script to make looking up words faster and easier.  gismu and cmavo were easy, but I could never figure out lujvo.  So I'm taking another stab at it.  I currently have something that works in the general cases of {bajdri}, {ba'udri}, and {bagypau}.  But currently I'm not sure how to deal with 4 letter rafsi and non "y" buffer letters.

To deal with the non "y" buffer letters I thought I could just say:

strip all "y" from the word
get first three non "'" chars
if the first letter is "r", "l", "m", or "n" and the second letter is a consonant, then chop off the first letter and grab another letter from the right
(so if I was parsing "bacru zei bevri" = "ba'urbei" I would (after handling ba'u in the first iteration) end up with "rbe" and due to the above step, I'd strip off the "r" and grab the next letter thus ending with "bei" which is the right result).

But this produces strange results because there ARE cases where buffer letters are followed by consonants (morsi for instance).

Is there a way to un-ambiguously and algorithmically break a lujvo down into its component gismu?

The website Jvozba is a front end to a program that can both form and deconstruct lujvo and has not in my experience made any mistakes in such a task. In forming lujvo, it actually provides multiple suggestions as well as their scores. http://jwodder.freeshell.org/lojban/jvozba.cgi
 
I beleive that this page is the source code for jvozba: http://jwodder.freeshell.org/lojban/jvozba.cgi?sehicta=1
 
You'll obviously want to talk to the author about this, as he would be the most able to help in this regard.

--
mu'o mi'e .aionys.

.i.a'o.e'e ko cmima le bende pe lo pilno be denpa bu .i doi.luk. mi patfu do zo'o
(Come to the Dot Side! Luke, I am your father. :D )

--
You received this message because you are subscribed to the Google Groups "lojban" group.
To post to this group, send email to lojban@googlegroups.com.
To unsubscribe from this group, send email to lojban+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lojban?hl=en.