R1 is the region after the first non-vowel following a vowel, or the end of the word if there is no such non-vowel.
(w)
| 66 | |
| 67 | RE_R1 = re.compile(r"[aeiouy][^aeiouy]") |
| 68 | def R1(w): |
| 69 | """ R1 is the region after the first non-vowel following a vowel, |
| 70 | or the end of the word if there is no such non-vowel. |
| 71 | """ |
| 72 | m = RE_R1.search(w) |
| 73 | if m: |
| 74 | return w[m.end():] |
| 75 | return "" |
| 76 | |
| 77 | def R2(w): |
| 78 | """ R2 is the region after the first non-vowel following a vowel in R1, |