WikiDiscuss

WikiDiscuss


PEG Morphology Algorithm

posts: 1912

Robin:
> Re: PEG Morphology Algorithm
> ''This grammar classifies words by their morphological class (cmene, gismu,
> lujvo, fuhivla, cmavo, and non-lojban-word). It does not sort them into
> grammatical classes (CMENE, BRIVLA, A, BAI, BAhE, ..., ZOhU).''
>
> Why not? Mine certainly does.

Mainly to save myself a lot of typing. :-)

Also, because I want to keep separate the two things which are
conceptually different. The transition to grammatical classes
could be done as follows:

CMENE <- cmene
BRIVLA <- gismu / lujvo / fuhivla
A <- &cmavo (a / e / o / u / j i)
....
ZOhU <- &cmavo z o h u
CMAVO <- !A !BAI ... !ZOhU cmavo

(I am accepting commas anywhere, things like {b,roda}, {co,i} etc.
I'm not clear on what the official comma rules outside of cmene are.)

Of course, an actual parser can jump over some steps in order to
be more efficient, but this is intended to be conceptually clear
rather than efficient.

mu'o mi'e xorxes




__
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail