WikiDiscuss

WikiDiscuss


PEG Morphology Algorithm

posts: 1912


> xorxes's grammar tells which kind of word a word is, but it requires the word
> to be already delimited with spaces or periods.

That was the first version. The current version already handles
stress marking with caps.

> The problem I see with implementing this in PEG is that valfendi bites off a
> piece by counting syllables after the stress, then checks whether, among
> other things, the hyphens are in the right place. Is there a way to check one

> PE against the part of a string that matched another PE?

Yes, with "&" and "!".

exp <- &exp1 exp2

will succeed only if exp2 starts with or is the start of exp1

exp <- !exp1 exp2

will succeed only if exp2 doesn't start with nor is the start of exp1

mu'o mi'e xorxes




__
Do you Yahoo!?
Send a seasonal email greeting and help others. Do good.
http://celebrity.mail.yahoo.com