@@ -229,8 +229,8 @@ def _measure(self, stem):
229
229
# docstring above, which is in turn equivalent to `m`
230
230
return cv_sequence .count ('vc' )
231
231
232
- def _vowelinstem (self , stem ):
233
- """vowelinstem (stem) is TRUE <=> stem contains a vowel"""
232
+ def _contains_vowel (self , stem ):
233
+ """_contains_vowel (stem) is TRUE <=> stem contains a vowel"""
234
234
for i in range (len (stem )):
235
235
if not self ._cons (stem , i ):
236
236
return True
@@ -401,8 +401,8 @@ def _step1b(self, word):
401
401
402
402
rule_2_or_3_succeeded = False
403
403
for rule in [
404
- ('ed' , '' , self ._vowelinstem ), # (*v*) ED ->
405
- ('ing' , '' , self ._vowelinstem ), # (*v*) ING ->
404
+ ('ed' , '' , self ._contains_vowel ), # (*v*) ED ->
405
+ ('ing' , '' , self ._contains_vowel ), # (*v*) ING ->
406
406
]:
407
407
try :
408
408
intermediate_stem = self ._replace_suffix_if (word , * rule )
@@ -450,7 +450,7 @@ def _step1c(self, word):
450
450
'enjoy'. Step 1c is perhaps done too soon; but with this modification that
451
451
no longer really matters.
452
452
453
- Also, the removal of the vowelinstem (z) condition means that 'spy', 'fly',
453
+ Also, the removal of the contains_vowel (z) condition means that 'spy', 'fly',
454
454
'try' ... stem to 'spi', 'fli', 'tri' and conflate with 'spied', 'tried',
455
455
'flies' ...
456
456
"""
0 commit comments