def R2(w):
 if w.startswith(tuple(overstemmed)):
  return R1(R1(R1(w)))
 return R1(R1(w))

def R2 ( w ) : if w . startswith ( tuple ( overstemmed ) ) : return R1 ( R1 ( R1 ( w ) ) ) return R1 ( R1 ( w ) )
r2 is the region after the first non-vowel following a vowel in r1 .