@@ -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
@@ -397,8 +397,8 @@ def _step1b(self, word):
397
397
398
398
rule_2_or_3_succeeded = False
399
399
for rule in [
400
- ('ed' , '' , self ._vowelinstem ), # (*v*) ED ->
401
- ('ing' , '' , self ._vowelinstem ), # (*v*) ING ->
400
+ ('ed' , '' , self ._contains_vowel ), # (*v*) ED ->
401
+ ('ing' , '' , self ._contains_vowel ), # (*v*) ING ->
402
402
]:
403
403
try :
404
404
intermediate_stem = self ._replace_suffix_if (word , * rule )
@@ -446,7 +446,7 @@ def _step1c(self, word):
446
446
'enjoy'. Step 1c is perhaps done too soon; but with this modification that
447
447
no longer really matters.
448
448
449
- Also, the removal of the vowelinstem (z) condition means that 'spy', 'fly',
449
+ Also, the removal of the contains_vowel (z) condition means that 'spy', 'fly',
450
450
'try' ... stem to 'spi', 'fli', 'tri' and conflate with 'spied', 'tried',
451
451
'flies' ...
452
452
"""
0 commit comments