R2 is the region after the first non-vowel following a vowel in R1, or the end of the word if there is no such non-vowel.
(w)
| 75 | return "" |
| 76 | |
| 77 | def R2(w): |
| 78 | """ R2 is the region after the first non-vowel following a vowel in R1, |
| 79 | or the end of the word if there is no such non-vowel. |
| 80 | """ |
| 81 | if w.startswith(tuple(overstemmed)): return R1(R1(R1(w))) |
| 82 | return R1(R1(w)) |
| 83 | |
| 84 | def find_vowel(w): |
| 85 | """ Returns the index of the first vowel in the word. |