rita 3.0.19 → 3.0.21

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.js CHANGED
@@ -42438,19 +42438,19 @@ var RiTa2 = class _RiTa {
42438
42438
  return new RiGrammar(...arguments);
42439
42439
  }
42440
42440
  static addTransform(name, definition) {
42441
- return RiScript.addTransform(...arguments);
42441
+ return _RiTa.riscript.addTransform(...arguments);
42442
42442
  }
42443
42443
  static removeTransform(name) {
42444
- return RiScript.removeTransform(...arguments);
42444
+ return _RiTa.riscript.removeTransform(...arguments);
42445
42445
  }
42446
42446
  static getTransforms() {
42447
- return RiScript.getTransforms();
42447
+ return _RiTa.riscript.getTransforms();
42448
42448
  }
42449
42449
  static articlize(word) {
42450
42450
  return RiScript.articlize(...arguments);
42451
42451
  }
42452
42452
  static evaluate(script, context, opts) {
42453
- return RiScript.evaluate(...arguments);
42453
+ return _RiTa.riscript.evaluate(...arguments);
42454
42454
  }
42455
42455
  static markov(n, opts) {
42456
42456
  return new markov_default(...arguments);
@@ -42622,7 +42622,7 @@ RiTa2.conjugator = new conjugator_default(RiTa2);
42622
42622
  RiTa2.SILENT = false;
42623
42623
  RiTa2.SILENCE_LTS = false;
42624
42624
  RiTa2.PHONES = ["aa", "ae", "ah", "ao", "aw", "ay", "b", "ch", "d", "dh", "eh", "er", "ey", "f", "g", "hh", "ih", "iy", "jh", "k", "l", "m", "n", "ng", "ow", "oy", "p", "r", "s", "sh", "t", "th", "uh", "uw", "v", "w", "y", "z", "zh"];
42625
- RiTa2.VERSION = "3.0.19";
42625
+ RiTa2.VERSION = "3.0.21";
42626
42626
  RiTa2.HAS_LEXICON = typeof __NOLEX__ === "undefined";
42627
42627
  RiTa2.FIRST = 1;
42628
42628
  RiTa2.SECOND = 2;
@@ -42652,6 +42652,7 @@ var ONLY_PUNCT = /^[\p{P}|\+|-|<|>|\^|\$|\ufffd|`]*$/u;
42652
42652
  var IS_LETTER = /^[a-z\u00C0-\u00ff]+$/;
42653
42653
  RiTa2.RiScript = RiScript;
42654
42654
  RiScript.RiTa = RiTa2;
42655
+ RiTa2.riscript = new RiScript({ RiTa: RiTa2 });
42655
42656
  export {
42656
42657
  RiTa2 as RiTa
42657
42658
  };