Skip to content

Commit

Permalink
frozenset instead of set for vowels
Browse files Browse the repository at this point in the history
  • Loading branch information
ExplodingCabbage committed Jan 2, 2013
1 parent aba6682 commit cb53025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nltk/stem/porter.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def __init__(self):
for val in irregular_forms[key]:
self.pool[val] = key

self.vowels = set(['a', 'e', 'i', 'o', 'u'])
self.vowels = frozenset(['a', 'e', 'i', 'o', 'u'])

def _cons(self, word, i):
"""cons(i) is TRUE <=> b[i] is a consonant."""
Expand Down

0 comments on commit cb53025

Please sign in to comment.