informal description of the PEG morphology algorithm: Difference between revisions

From Lojban
Jump to navigation Jump to search
m (Gleki moved page jbocre: Informal description of the PEG morphology algorithm to Informal description of the PEG morphology algorithm without leaving a redirect: Text replace - "jbocre: ([A-Z])" to "$1")
m (Text replace - "jbocre: ([L-Z])" to "$1")
Line 6: Line 6:
We examine the string from the left, and words are extracted one by one from the left.
We examine the string from the left, and words are extracted one by one from the left.


1- Extract all [[jbocre: Morphology: special characters auses]], if there are any.  
1- Extract all [[Morphology: special characters auses]], if there are any.  


2- Extract a [[jbocre: Morphology: words ord]] and then any following [[jbocre: Morphology: special characters auses]], if there are any.
2- Extract a [[Morphology: words ord]] and then any following [[Morphology: special characters auses]], if there are any.


3- Repeat 2 until there is nothing left.
3- Repeat 2 until there is nothing left.
Line 14: Line 14:
--------------------------
--------------------------


See also [[jbocre: Morphology: Rules of formation]]
See also [[Morphology: Rules of formation]]


--------------------------
--------------------------


[[jbocre: Morphology: words]]
[[Morphology: words]]


[[jbocre: Morphology: cmene]]
[[Morphology: cmene]]


[[jbocre: Morphology: cmavo]]
[[Morphology: cmavo]]


[[jbocre: Morphology: brivla]]
[[Morphology: brivla]]


[[jbocre: Morphology: fu'ivla]]
[[Morphology: fu'ivla]]


[[jbocre: Morphology: extended rafsi]]
[[Morphology: extended rafsi]]


[[jbocre: Morphology: gismu]]
[[Morphology: gismu]]


[[jbocre: Morphology: rafsi]]
[[Morphology: rafsi]]


[[jbocre: Morphology: syllables]]
[[Morphology: syllables]]


[[jbocre: Morphology: vowels]]
[[Morphology: vowels]]


[[jbocre: Morphology: consonants]]
[[Morphology: consonants]]


[[jbocre: Morphology: special characters]]
[[Morphology: special characters]]

Revision as of 14:53, 23 March 2014

This is a description of the formal PEG morphology algorithm. If there are or appear to be discrepancies between this description and the formal grammar, the formal grammar wins.

Given any string of characters, this algorithm will split it uniquely into words, including possibly some non-lojban words.

We examine the string from the left, and words are extracted one by one from the left.

1- Extract all Morphology: special characters auses, if there are any.

2- Extract a Morphology: words ord and then any following Morphology: special characters auses, if there are any.

3- Repeat 2 until there is nothing left.


See also Morphology: Rules of formation


Morphology: words

Morphology: cmene

Morphology: cmavo

Morphology: brivla

Morphology: fu'ivla

Morphology: extended rafsi

Morphology: gismu

Morphology: rafsi

Morphology: syllables

Morphology: vowels

Morphology: consonants

Morphology: special characters