Index: graphspell/spellchecker.py ================================================================== --- graphspell/spellchecker.py +++ graphspell/spellchecker.py @@ -126,15 +126,24 @@ if aRes: lWordAndMorph.append((sElem, aRes)) return lWordAndMorph def readableMorph (self, sMorph): + "returns a human readable meaning of tags of " if not self.lexicographer: return "" return self.lexicographer.readableMorph(sMorph) def setLabelsOnToken (self, dToken): + """on , + adds: + - lMorph: list of morphologies + - aLabels: list of labels (human readable meaning of tags) + for WORD tokens: + - bValidToken: True if the token is valid for the spellchecker + - lSubTokens for each parts of the split token + """ if not self.lexicographer: return if "lMorph" not in dToken: dToken["lMorph"] = self.getMorph(dToken["sValue"]) if dToken["sType"] == "WORD":