[REBOL] Re: [REBOL parse] Parsing AEIOU and sometimes Y
From: edoconnor::gmail::com at: 1-May-2007 20:57
This is shaping up pretty well. This is the path I was headed down
before I assumed there must be a better way.
A key piece of the algorithm requires counting the number ("measure")
of vowel-consonant pair-sets according to the following pattern:
[C] VC (m)... [V]
Then the value of m is then used to apply suffix swapping rules. So...
setting aside the "sometimes y" issue, the above can be expressed in
rule: [any consonant [some vowel some consonant (m: m + 1)] any vowel]
Once we introduce the "sometimes y" requirement, this simple rule
becomes messy quickly. At the end of the day, I need to add up the
[some vowel some consonant] rule under with that added "sometimes y"
complexity. Thanks to your pointers, I think I'll be able to continue
pursuing it in this direction, hopefully keeping the mess under
On 5/1/07, Gregg Irwin wrote: