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:g:mail at: 2-May-2007 14:24

On 5/2/07, Ladislav Mecir wrote:
> To recap, the ultimate goal is to count V C pairs/groups, where V > equals an arbitrary number of vowels, and C equals an arbitrary number > of consonants, i.e., > > simple-VC-rule: [some vowel some consonant (m: m + 1)] > >> the above rule does not count pairs, rule [(m: 0) some [vowel consonant >> (m: m + 1)]] does.
Thanks, you are right. Prior to the "sometimes y" complication, I had been relying on the following rule to build out the algorithm: [any consonant any [some vowel some consonant (m: m + 1)] any vowel] This simplified rule was successful for generating the m value for words-- based on my test data. I misquoted this rule in my email. Thanks for the clarification. Ed