Skip to content

Commit

Permalink
Fix nltk#1581
Browse files Browse the repository at this point in the history
  • Loading branch information
ExplodingCabbage committed Jan 7, 2017
1 parent daa4cdb commit 503f8c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nltk/stem/porter.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ def _ends_double_consonant(self, word):
Returns True if word ends with a double consonant
"""
return (
len(word) >= 2 and
word[-1] == word[-2] and
self._is_consonant(word, len(word)-1)
)
Expand Down

0 comments on commit 503f8c8

Please sign in to comment.