rita 3.1.0 → 3.1.2
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/README.md +4 -0
- package/dist/rita.cjs +6 -7
- package/dist/rita.cjs.map +1 -1
- package/dist/rita.js +6 -7
- package/dist/rita.js.map +1 -1
- package/dist/rita.min.js +71 -71
- package/dist/rita.min.js.map +1 -1
- package/package.json +1 -1
package/dist/rita.js
CHANGED
|
@@ -1444,11 +1444,10 @@ var Conjugator = class {
|
|
|
1444
1444
|
});
|
|
1445
1445
|
this.RiTa = parent;
|
|
1446
1446
|
this._reset();
|
|
1447
|
-
this.RiTa.
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
});
|
|
1447
|
+
let data = this.RiTa.lexicon.data;
|
|
1448
|
+
this.allVerbs = Object.keys(data).filter((word) => data[word][1].split(" ").includes("vb"));
|
|
1449
|
+
this.verbsEndingInE = this.allVerbs.filter((v) => v.endsWith("e"));
|
|
1450
|
+
this.verbsEndingInDouble = this.allVerbs.filter((v) => /([^])\1$/.test(v));
|
|
1452
1451
|
}
|
|
1453
1452
|
// TODO: add handling of past tense modals.
|
|
1454
1453
|
conjugate(verb, args) {
|
|
@@ -27402,7 +27401,7 @@ var Lexicon = class {
|
|
|
27402
27401
|
}
|
|
27403
27402
|
regex = opts.regex;
|
|
27404
27403
|
if (typeof regex === "string") {
|
|
27405
|
-
if (opts && opts.type
|
|
27404
|
+
if (opts && /^stress(es)?$/.test(opts.type)) {
|
|
27406
27405
|
if (/^\^?[01]+\$?$/.test(regex)) {
|
|
27407
27406
|
regex = regex.replace(/([01])(?=([01]))/g, "$1/");
|
|
27408
27407
|
}
|
|
@@ -43238,7 +43237,7 @@ markov_default.parent = RiTa;
|
|
|
43238
43237
|
stemmer_default.tokenizer = RiTa.tokenizer;
|
|
43239
43238
|
RiTa.SILENT = false;
|
|
43240
43239
|
RiTa.SILENCE_LTS = false;
|
|
43241
|
-
RiTa.VERSION = "3.1.
|
|
43240
|
+
RiTa.VERSION = "3.1.2";
|
|
43242
43241
|
RiTa.FIRST = 1;
|
|
43243
43242
|
RiTa.SECOND = 2;
|
|
43244
43243
|
RiTa.THIRD = 3;
|