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

Function R2

pattern/vector/stemmer.py:77–82  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

75 return ""
76
77def 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
84def find_vowel(w):
85 """ Returns the index of the first vowel in the word.

Callers 3

step_4Function · 0.85
step_5aFunction · 0.85
step_5bFunction · 0.85

Calls 1

R1Function · 0.85

Tested by

no test coverage detected