228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
|
yield this.oCommunityDic.suggest(sWord, nSuggLimit);
}
if (this.bPersonalDic) {
yield this.oPersonalDic.suggest(sWord, nSuggLimit);
}
}
* select (sPattern="") {
// generator: returns all entries which morphology fits <sPattern>
yield* this.oMainDic.select(sPattern)
if (this.bExtendedDic) {
yield* this.oExtendedDic.select(sPattern);
}
if (this.bCommunityDic) {
yield* this.oCommunityDic.select(sPattern);
}
if (this.bPersonalDic) {
yield* this.oPersonalDic.select(sPattern);
}
}
}
if (typeof(exports) !== 'undefined') {
exports.SpellChecker = SpellChecker;
}
|
|
|
|
|
|
|
|
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
|
yield this.oCommunityDic.suggest(sWord, nSuggLimit);
}
if (this.bPersonalDic) {
yield this.oPersonalDic.suggest(sWord, nSuggLimit);
}
}
* select (sFlexPattern="", sTagsPattern="") {
// generator: returns all entries which flexion fits <sFlexPattern> and morphology fits <sTagsPattern>
yield* this.oMainDic.select(sFlexPattern, sTagsPattern)
if (this.bExtendedDic) {
yield* this.oExtendedDic.select(sFlexPattern, sTagsPattern);
}
if (this.bCommunityDic) {
yield* this.oCommunityDic.select(sFlexPattern, sTagsPattern);
}
if (this.bPersonalDic) {
yield* this.oPersonalDic.select(sFlexPattern, sTagsPattern);
}
}
}
if (typeof(exports) !== 'undefined') {
exports.SpellChecker = SpellChecker;
}
|