Overview
| Comment: | [graphspell][js][bug] fix wrong method |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | graphspell |
| Files: | files | file ages | folders |
| SHA3-256: |
fbecdf6a897aac6aaca94c7dd41d8c65 |
| User & Date: | olr on 2019-05-14 15:19:15 |
| Other Links: | manifest | tags |
Context
|
2019-05-14
| ||
| 15:19 | [graphspell] tokenizer: update for HOUR tokens check-in: 63672ef096 user: olr tags: trunk, graphspell | |
| 15:19 | [graphspell][js][bug] fix wrong method check-in: fbecdf6a89 user: olr tags: trunk, graphspell | |
| 13:27 | [core][fr][misc] change immunity tag (% -> !) check-in: d167d2a710 user: olr tags: trunk, fr, core, misc | |
Changes
Modified graphspell-js/spellchecker.js from [79840617ea] to [2c21818f72].
| ︙ | ︙ | |||
248 249 250 251 252 253 254 |
}
* suggest (sWord, nSuggLimit=10) {
// generator: returns 1, 2 or 3 lists of suggestions
if (this.oDefaultSugg) {
if (this.oDefaultSugg.hasOwnProperty(sWord)) {
yield this.oDefaultSugg[sWord].split("|");
| | | 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 |
}
* suggest (sWord, nSuggLimit=10) {
// generator: returns 1, 2 or 3 lists of suggestions
if (this.oDefaultSugg) {
if (this.oDefaultSugg.hasOwnProperty(sWord)) {
yield this.oDefaultSugg[sWord].split("|");
} else if (sWord.gl_isTitle() && this.oDefaultSugg.hasOwnProperty(sWord.toLowerCase())) {
let lRes = this.oDefaultSugg[sWord.toLowerCase()].split("|");
yield lRes.map((sSugg) => { return sSugg.slice(0,1).toUpperCase() + sSugg.slice(1); });
} else {
yield this.oMainDic.suggest(sWord, nSuggLimit, true);
}
} else {
yield this.oMainDic.suggest(sWord, nSuggLimit, true);
|
| ︙ | ︙ |