---
+++
@@ -62,7 +62,7 @@
s.word_count.append({})
for word_no, word in enumerate(line.words):
- if not isinstance(word, CommonWord):
+ if not word.isCommon():
if not word in s.word_count[word_no]:
s.word_count[word_no][word] = 1
else:
@@ -70,7 +70,7 @@
def remove_line(s, line):
for word_no, word in enumerate(line.words):
- if not isinstance(word, CommonWord):
+ if not word.isCommon():
s.word_count[word_no][word] -= 1
def get_max(s):
Generated with KisssPM