Index: graphspell/spellchecker.py ================================================================== --- graphspell/spellchecker.py +++ graphspell/spellchecker.py @@ -148,11 +148,11 @@ """count word occurrences. can be used to cumulate count from several texts.""" if not self.oTokenizer: self._loadTokenizer() for dToken in self.oTokenizer.genTokens(sText): - if dToken['sType'] == "WORD": + if dToken['sType'].startswith("WORD"): if bOnlyUnknownWords: if not self.isValidToken(dToken['sValue']): dWord[dToken['sValue']] = dWord.get(dToken['sValue'], 0) + 1 else: if not bByLemma: