Grammalecte  Diff

Differences From Artifact [0f1b5456be]:

To Artifact [15b71c861b]:


245
246
247
248
249
250
251
252
253


254
255
256
257
258
259
260
245
246
247
248
249
250
251


252
253
254
255
256
257
258
259
260







-
-
+
+







            return True
        return False

    def isValid (self, sWord):
        "checks if <sWord> is valid (different casing tested if the first letter is a capital)"
        if not sWord:
            return None
        if "" in sWord: # ugly hack
            sWord = sWord.replace("", "'")
        if "'" in sWord: # ugly hack
            sWord = sWord.replace("'", "")
        if self.lookup(sWord):
            return True
        if sWord[0:1].isupper():
            if len(sWord) > 1:
                if sWord.istitle():
                    return self.lookup(sWord.lower())
                if sWord.isupper():