Differences From Artifact [bda24bb426]:
- File graphspell-js/ibdawg.js — part of check-in [009a55b028] at 2018-04-18 10:06:50 on branch trunk — [graphspell][js] coding style: spaces cleaning (user: olr, size: 24246) [annotate] [blame] [check-ins using]
To Artifact [1da88bd86f]:
- File graphspell-js/ibdawg.js — part of check-in [fd910bc078] at 2018-04-18 12:39:29 on branch trunk — [graphspell] better multicasing handling (user: olr, size: 23933) [annotate] [blame] [check-ins using]
︙ | |||
308 309 310 311 312 313 314 | 308 309 310 311 312 313 314 315 316 317 318 319 320 321 | - - - - - - | [sPfx, sWord, sSfx] = char_player.cut(sWord); let nMaxSwitch = Math.max(Math.floor(sWord.length / 3), 1); let nMaxDel = Math.floor(sWord.length / 5); let nMaxHardRepl = Math.max(Math.floor((sWord.length - 5) / 4), 1); let nMaxJump = Math.max(Math.floor(sWord.length / 4), 1); let oSuggResult = new SuggResult(sWord); this._suggest(oSuggResult, sWord, nMaxSwitch, nMaxDel, nMaxHardRepl, nMaxJump); |
︙ |