184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
|
let aGrammErr = gc_engine.parse(sParagraph, sCountry, bDebug, bContext);
postMessage(createResponse("parse", aGrammErr, dInfo, false));
}
postMessage(createResponse("parse", null, dInfo, true));
}
function parseAndSpellcheck (sText, sCountry, bDebug, bContext, dInfo={}) {
let n = 0;
for (let sParagraph of text.getParagraph(sText)) {
let aGrammErr = gc_engine.parse(sParagraph, sCountry, bDebug, bContext);
let aSpellErr = oTokenizer.getSpellingErrors(sParagraph, oDict);
postMessage(createResponse("parseAndSpellcheck", {sParagraph: sParagraph, sParaNum: n.toString(), aGrammErr: aGrammErr, aSpellErr: aSpellErr}, dInfo, false));
n += 1;
}
postMessage(createResponse("parseAndSpellcheck", null, dInfo, true));
}
function parseAndSpellcheck1 (sParagraph, sCountry, bDebug, bContext, dInfo={}) {
let aGrammErr = gc_engine.parse(sParagraph, sCountry, bDebug, bContext);
let aSpellErr = oTokenizer.getSpellingErrors(sParagraph, oDict);
|
|
|
|
|
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
|
let aGrammErr = gc_engine.parse(sParagraph, sCountry, bDebug, bContext);
postMessage(createResponse("parse", aGrammErr, dInfo, false));
}
postMessage(createResponse("parse", null, dInfo, true));
}
function parseAndSpellcheck (sText, sCountry, bDebug, bContext, dInfo={}) {
let i = 0;
for (let sParagraph of text.getParagraph(sText)) {
let aGrammErr = gc_engine.parse(sParagraph, sCountry, bDebug, bContext);
let aSpellErr = oTokenizer.getSpellingErrors(sParagraph, oDict);
postMessage(createResponse("parseAndSpellcheck", {sParagraph: sParagraph, iParaNum: i, aGrammErr: aGrammErr, aSpellErr: aSpellErr}, dInfo, false));
i += 1;
}
postMessage(createResponse("parseAndSpellcheck", null, dInfo, true));
}
function parseAndSpellcheck1 (sParagraph, sCountry, bDebug, bContext, dInfo={}) {
let aGrammErr = gc_engine.parse(sParagraph, sCountry, bDebug, bContext);
let aSpellErr = oTokenizer.getSpellingErrors(sParagraph, oDict);
|