MCPcopy Index your code
hub / github.com/clips/pattern / R1

Function R1

pattern/vector/stemmer.py:68–75  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

66
67RE_R1 = re.compile(r"[aeiouy][^aeiouy]")
68def 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
77def R2(w):
78 """ R2 is the region after the first non-vowel following a vowel in R1,

Callers 5

R2Function · 0.85
step_1bFunction · 0.85
step_2Function · 0.85
step_3Function · 0.85
step_5aFunction · 0.85

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected