487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
|
return phonet.hasSimil(sWord, sPattern);
}
function suggSimil (sWord, sPattern) {
// return list of words phonetically similar to sWord and whom POS is matching sPattern
let aSugg = phonet.selectSimil(sWord, sPattern);
for (let sMorph of _dAnalyses._get(sWord, [])) {
for (let e of conj.getSimil(sWord, sMorph)) {
aSugg.add(e);
}
}
if (aSugg.size > 0) {
return Array.from(aSugg).join("|");
}
return "";
|
|
|
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
|
return phonet.hasSimil(sWord, sPattern);
}
function suggSimil (sWord, sPattern) {
// return list of words phonetically similar to sWord and whom POS is matching sPattern
let aSugg = phonet.selectSimil(sWord, sPattern);
for (let sMorph of _dAnalyses._get(sWord, [])) {
for (let e of conj.getSimil(sWord, sMorph, sPattern)) {
aSugg.add(e);
}
}
if (aSugg.size > 0) {
return Array.from(aSugg).join("|");
}
return "";
|