Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: [REBOL parse] Parsing AEIOU and sometimes Y

From: edoconnor::gmail::com at: 1-May-2007 20:57

Hi Greg-- 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 'parse as: 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 control. Thanks, Ed On 5/1/07, Gregg Irwin wrote: