284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
|
function getSpellSuggestions (sWord, dInfo) {
if (!oDict) {
postMessage(createResponse("getSpellSuggestions", "# Error. Dictionary not loaded.", dInfo, true));
return;
}
let aSugg = oDict.suggest(sWord);
console.log(aSugg);
postMessage(createResponse("getSpellSuggestions", {sWord: sWord, aSugg: aSugg}, dInfo, true));
}
// Lexicographer
function getListOfTokens (sText, dInfo={}) {
|
<
|
284
285
286
287
288
289
290
291
292
293
294
295
296
297
|
function getSpellSuggestions (sWord, dInfo) {
if (!oDict) {
postMessage(createResponse("getSpellSuggestions", "# Error. Dictionary not loaded.", dInfo, true));
return;
}
let aSugg = oDict.suggest(sWord);
postMessage(createResponse("getSpellSuggestions", {sWord: sWord, aSugg: aSugg}, dInfo, true));
}
// Lexicographer
function getListOfTokens (sText, dInfo={}) {
|