morphology: words

From Lojban
Jump to navigation Jump to search

A word can be a lojban-word or a non-lojban-word.

A lojban-word can be a cmevla, a cmavo or a brivla.

If the string begins with a cmevla, extract it, else if it begins with a cmavo, extract it, else if it begins with a brivla, extract it, else it begins with a non-lojban-word, and so extract it.