Grammalecte  Check-in [b0efed0687]

Overview
Comment:[graphspell][py][bug] wrong variable name
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | graphspell
Files: files | file ages | folders
SHA3-256: b0efed068721a4c56425570ce65b5efe80cda7b4e1dc71e81c0dac4f0b8d9f1e
User & Date: olr on 2018-04-20 10:50:34
Other Links: manifest | tags
Context
2018-04-20
19:00
[fr] pt: sans vergogne check-in: 4735aa2358 user: olr tags: fr, trunk
10:50
[graphspell][py][bug] wrong variable name check-in: b0efed0687 user: olr tags: graphspell, trunk
06:32
[graphspell] token valid if begins with a digit or if contains a <·> check-in: 08e1343285 user: olr tags: graphspell, trunk
Changes

Modified graphspell/ibdawg.py from [61d7128b52] to [dcb23698b6].

   228    228           sToken = cp.spellingNormalization(sToken)
   229    229           if self.isValid(sToken):
   230    230               return True
   231    231           if "-" in sToken:
   232    232               if sToken.count("-") > 4:
   233    233                   return True
   234    234               return all(self.isValid(sWord)  for sWord in sToken.split("-"))
   235         -        if "·" in sWord:
          235  +        if "·" in sToken:
   236    236               return True
   237    237           return False
   238    238   
   239    239       def isValid (self, sWord):
   240    240           "checks if <sWord> is valid (different casing tested if the first letter is a capital)"
   241    241           if not sWord:
   242    242               return None