Overview
Comment: | [graphspell] token valid if begins with a digit or if contains a <·> |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | graphspell |
Files: | files | file ages | folders |
SHA3-256: |
08e1343285a4f58413452087054c8ce3 |
User & Date: | olr on 2018-04-20 06:32:06 |
Other Links: | manifest | tags |
Context
2018-04-20
| ||
10:50 | [graphspell][py][bug] wrong variable name check-in: b0efed0687 user: olr tags: trunk, graphspell | |
06:32 | [graphspell] token valid if begins with a digit or if contains a <·> check-in: 08e1343285 user: olr tags: trunk, graphspell | |
2018-04-19
| ||
11:01 | [fr][bug] indentation -> espaces check-in: cee7f78a8e user: olr tags: trunk, fr | |
Changes
Modified graphspell-js/ibdawg.js from [1da88bd86f] to [81f8cf0a21].
︙ | |||
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 | + + + - - - + + + | } if (sToken.includes("-")) { if (sToken.gl_count("-") > 4) { return true; } return sToken.split("-").every(sWord => this.isValid(sWord)); } if (sToken.includes("·")) { return true; } return false; } isValid (sWord) { // checks if sWord is valid (different casing tested if the first letter is a capital) if (!sWord) { return null; } if (sWord.includes("’")) { // ugly hack sWord = sWord.replace("’", "'"); } if (this.lookup(sWord)) { return true; } |
︙ |
Modified graphspell/ibdawg.py from [81e3b2e579] to [61d7128b52].
︙ | |||
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 | 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 | + + - - + + | sToken = cp.spellingNormalization(sToken) if self.isValid(sToken): return True if "-" in sToken: if sToken.count("-") > 4: return True return all(self.isValid(sWord) for sWord in sToken.split("-")) if "·" in sWord: 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 self.lookup(sWord): return True |
︙ |