informal description of the PEG morphology algorithm: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
*[[Morphology: consonants]] | *[[Morphology: consonants]] | ||
*[[Morphology: special characters]] | *[[Morphology: special characters]] | ||
*[[informal description of the PEG morphology algorithm/condensed|Another informal description of the morphology, less tied to the PEG rules]] |
Revision as of 23:25, 9 May 2015
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.
- Extract all pauses, if there are any.
- Extract a word and then any following pauses, if there are any.
- Repeat 2 until there is nothing left.
See also Morphology: Rules of formation