rita 3.0.28 → 3.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/rita.cjs CHANGED
@@ -42242,10 +42242,11 @@ var _RiMarkov = class _RiMarkov {
42242
42242
  }
42243
42243
  const nexts = tn.childNodes();
42244
42244
  for (let i = 0; i < nexts.length; i++) {
42245
- let atest = pre.slice(0);
42246
- atest.push(nexts[i].token, ...post);
42247
- if (this._pathTo(atest))
42248
- result.push(nexts[i].token);
42245
+ let atest = pre.slice(0), next = nexts[i];
42246
+ atest.push(next.token, ...post);
42247
+ if (this._pathTo(atest)) {
42248
+ result.push(next.token);
42249
+ }
42249
42250
  }
42250
42251
  } else {
42251
42252
  const pr = this.probabilities(pre);
@@ -43237,7 +43238,7 @@ markov_default.parent = RiTa;
43237
43238
  stemmer_default.tokenizer = RiTa.tokenizer;
43238
43239
  RiTa.SILENT = false;
43239
43240
  RiTa.SILENCE_LTS = false;
43240
- RiTa.VERSION = "3.0.28";
43241
+ RiTa.VERSION = "3.0.29";
43241
43242
  RiTa.FIRST = 1;
43242
43243
  RiTa.SECOND = 2;
43243
43244
  RiTa.THIRD = 3;