Differences From Artifact [544f660d8a]:
- File graphspell-js/ibdawg.js — part of check-in [90977551b1] at 2020-09-09 08:37:02 on branch trunk — [graphspell] getSuggestions: always sort first list found, assuming that list 1 and 2 might be empty (user: olr, size: 27477) [annotate] [blame] [check-ins using]
To Artifact [80e916efdb]:
- File graphspell-js/ibdawg.js — part of check-in [4fdd6a9337] at 2020-09-10 15:30:12 on branch trunk — [core][graphspell][fx][cli] new lexicographer (user: olr, size: 27532) [annotate] [blame] [check-ins using] [more...]
| ︙ | |||
309 310 311 312 313 314 315 316 317 318 319 320 321 322 | 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 | + + + |
}
}
return Boolean(this._convBytesToInteger(this.byDic.slice(iAddr, iAddr+this.nBytesArc)) & this._finalNodeMask);
}
getMorph (sWord) {
// retrieves morphologies list, different casing allowed
if (!sWord) {
return [];
}
sWord = str_transform.spellingNormalization(sWord);
let l = this.morph(sWord);
if (sWord[0].gl_isUpperCase()) {
l.push(...this.morph(sWord.toLowerCase()));
if (sWord.gl_isUpperCase() && sWord.length > 1) {
l.push(...this.morph(sWord.gl_toCapitalize()));
}
|
| ︙ |