WikiDiscuss

WikiDiscuss


PEG Morphology Algorithm

posts: 14214

On Tue, Dec 21, 2004 at 06:49:01PM -0800, Jorge Llamb?as wrote:
>
> > The grammar in its current state does four separable things:
> > 1. It partitions the input stream into words.
> > 2. It validates the words, rejecting invalid vowel and consonant patterns.
> > 3. It determines the selma'o of a cmavo.
> > 4. It categorizes brivla into gismu, lujvo and fu'ivla.
> >
> > As a result, the grammar is fearsomely complex in spots.
>
> Yes. Unfortunately, this is unavoidable. Lojban morphology is an
> ugly monster, that's a fact.
>
> It was me who asked Robin to separate the morphology from the main
> syntax part of the grammar. The determination of selmaho is not
> part of what I did, and I agree it belongs in a separate module,
> but the way it is written now, you can ignore the selmaho part and
> it works with just "words" at the highest level.

I could move the selma'o determination to the main grammar, and may
very well do so, but it was easier at the time to add it to the
morphologoy.

-Robin