A word is called short if it consists of a short syllable preceded by zero or more consonants.
(w)
| 53 | return False |
| 54 | |
| 55 | def is_short(w): |
| 56 | """ A word is called short if it consists of a short syllable preceded by zero or more consonants. |
| 57 | """ |
| 58 | return is_short_syllable(w[-3:]) and len([ch for ch in w[:-3] if ch in VOWELS]) == 0 |
| 59 | |
| 60 | # A point made at least twice in the literature is that words beginning with gener- |
| 61 | # are overstemmed by the Porter stemmer: |
no test coverage detected
searching dependent graphs…