de-compromise 0.0.9 → 0.0.10
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/builds/de-compromise.cjs
CHANGED
|
@@ -8570,7 +8570,7 @@
|
|
|
8570
8570
|
};
|
|
8571
8571
|
var inflectAdj$1 = inflectAdj;
|
|
8572
8572
|
|
|
8573
|
-
// console.log(inflectAdj('
|
|
8573
|
+
// console.log(inflectAdj('skandalös'))
|
|
8574
8574
|
|
|
8575
8575
|
const abel = /able[rns]$/;
|
|
8576
8576
|
const auer = /aure[rns]$/;
|
|
@@ -8705,6 +8705,9 @@
|
|
|
8705
8705
|
var nounToRoot = toRoot;
|
|
8706
8706
|
// console.log(toRoot('Gasen'))
|
|
8707
8707
|
|
|
8708
|
+
const allAdj = (inf) => Object.values(inflectAdj$1(inf));
|
|
8709
|
+
const allNoun = (inf) => Object.values(inflectNoun(inf));
|
|
8710
|
+
|
|
8708
8711
|
var methods = {
|
|
8709
8712
|
verb: {
|
|
8710
8713
|
all,
|
|
@@ -8712,10 +8715,10 @@
|
|
|
8712
8715
|
fromPresent, fromPast, fromSubjunctive1, fromSubjunctive2, fromImperative, fromPresentParticiple, fromPastParticiple: fromPastParticiple$1
|
|
8713
8716
|
},
|
|
8714
8717
|
adjective: {
|
|
8715
|
-
inflect: inflectAdj$1, toRoot: adjToRoot
|
|
8718
|
+
inflect: inflectAdj$1, toRoot: adjToRoot, all: allAdj
|
|
8716
8719
|
},
|
|
8717
8720
|
noun: {
|
|
8718
|
-
inflect: inflectNoun, toRoot: nounToRoot
|
|
8721
|
+
inflect: inflectNoun, toRoot: nounToRoot, all: allNoun
|
|
8719
8722
|
}
|
|
8720
8723
|
};
|
|
8721
8724
|
|
|
@@ -9891,7 +9894,7 @@
|
|
|
9891
9894
|
}
|
|
9892
9895
|
|
|
9893
9896
|
let tag = 'Adjective';
|
|
9894
|
-
if (terms.length >
|
|
9897
|
+
if (terms.length > 10 && hasNoVerb(terms)) {
|
|
9895
9898
|
tag = 'Verb';
|
|
9896
9899
|
}
|
|
9897
9900
|
setTag([term], tag, world, false, '2-fallback');
|
|
@@ -11095,7 +11098,7 @@
|
|
|
11095
11098
|
api: api$1,
|
|
11096
11099
|
};
|
|
11097
11100
|
|
|
11098
|
-
var version = '0.0.
|
|
11101
|
+
var version = '0.0.10';
|
|
11099
11102
|
|
|
11100
11103
|
nlp$1.plugin(tokenizer);
|
|
11101
11104
|
nlp$1.plugin(tagset);
|