244
245
246
247
248
249
250
251
252
253
254
255
256
257
|
return;
}
let aGrammErr = gc_engine.parse(sText, sCountry, bDebug, bContext);
let sMsg = "";
for (let oErr of aGrammErr) {
sMsg += text.getReadableError(oErr) + "\n";
}
postMessage(createResponse("textToTest", sMsg, dInfo, true));
}
function fullTests (dInfo={}) {
if (!gc_engine || !oDict) {
postMessage(createResponse("fullTests", "# Grammar checker or dictionary not loaded.", dInfo, true));
return;
|
>
>
>
|
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
|
return;
}
let aGrammErr = gc_engine.parse(sText, sCountry, bDebug, bContext);
let sMsg = "";
for (let oErr of aGrammErr) {
sMsg += text.getReadableError(oErr) + "\n";
}
if (sMsg == "") {
sMsg = "Aucune erreur détectée.";
}
postMessage(createResponse("textToTest", sMsg, dInfo, true));
}
function fullTests (dInfo={}) {
if (!gc_engine || !oDict) {
postMessage(createResponse("fullTests", "# Grammar checker or dictionary not loaded.", dInfo, true));
return;
|