Grammalecte  Check-in [dc3667a28c]

Overview
Comment:[graphspell][py] spellchecker: wrong function name
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | graphspell | multid
Files: files | file ages | folders
SHA3-256: dc3667a28c91f4801d82220c357b29db5270e3028e451e1616e1382619230c4e
User & Date: olr on 2018-02-17 09:52:26
Other Links: branch diff | manifest | tags
Context
2018-02-17
09:54
[lo] comment loading personal dic check-in: 3879f4a96d user: olr tags: lo, multid
09:52
[graphspell][py] spellchecker: wrong function name check-in: dc3667a28c user: olr tags: graphspell, multid
2018-02-16
17:48
[build][fr] extended and personal dictionaries in config.ini check-in: 9ec0c79d20 user: olr tags: fr, build, multid
Changes

Modified graphspell/spellchecker.py from [04e7e71b65] to [9a77ab3107].

89
90
91
92
93
94
95
96

97
98

99
100
101
102
103
104
105
89
90
91
92
93
94
95

96
97

98
99
100
101
102
103
104
105







-
+

-
+







            return True
        return False

    def getMorph (self, sWord):
        "retrieves morphologies list, different casing allowed"
        lResult = self.oMainDic.getMorph(sWord)
        if self.oExtendedDic:
            lResult.extends(self.oExtendedDic.getMorph(sWord))
            lResult.extend(self.oExtendedDic.getMorph(sWord))
        if self.oPersonalDic:
            lResult.extends(self.oPersonalDic.getMorph(sWord))
            lResult.extend(self.oPersonalDic.getMorph(sWord))
        return lResult

    def suggest (self, sWord, nSuggLimit=10):
        "generator: returns 1, 2 or 3 lists of suggestions"
        yield self.oMainDic.suggest(sWord, nSuggLimit)
        if self.oExtendedDic:
            yield self.oExtendedDic.suggest(sWord, nSuggLimit)