@willwade/aac-processors 0.2.18 → 0.2.19
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.
|
@@ -12,22 +12,12 @@ export class MorphologyEngine {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
static fromGrid3Verbs(verbForms) {
|
|
15
|
-
const engine = new MorphologyEngine(
|
|
16
|
-
locale: verbForms.locale,
|
|
17
|
-
version: 1,
|
|
18
|
-
irregular: {},
|
|
19
|
-
regular: {},
|
|
20
|
-
});
|
|
15
|
+
const engine = new MorphologyEngine(verbForms.locale.replace('_', '-'));
|
|
21
16
|
engine.grid3Verbs = verbForms.verbs;
|
|
22
17
|
return engine;
|
|
23
18
|
}
|
|
24
19
|
static fromTDSnapLexicon(lexiconData) {
|
|
25
|
-
const engine = new MorphologyEngine(
|
|
26
|
-
locale: lexiconData.locale,
|
|
27
|
-
version: 1,
|
|
28
|
-
irregular: {},
|
|
29
|
-
regular: {},
|
|
30
|
-
});
|
|
20
|
+
const engine = new MorphologyEngine(lexiconData.locale.replace('_', '-'));
|
|
31
21
|
engine.tdsnapLexicon = lexiconData;
|
|
32
22
|
return engine;
|
|
33
23
|
}
|
|
@@ -15,22 +15,12 @@ class MorphologyEngine {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
static fromGrid3Verbs(verbForms) {
|
|
18
|
-
const engine = new MorphologyEngine(
|
|
19
|
-
locale: verbForms.locale,
|
|
20
|
-
version: 1,
|
|
21
|
-
irregular: {},
|
|
22
|
-
regular: {},
|
|
23
|
-
});
|
|
18
|
+
const engine = new MorphologyEngine(verbForms.locale.replace('_', '-'));
|
|
24
19
|
engine.grid3Verbs = verbForms.verbs;
|
|
25
20
|
return engine;
|
|
26
21
|
}
|
|
27
22
|
static fromTDSnapLexicon(lexiconData) {
|
|
28
|
-
const engine = new MorphologyEngine(
|
|
29
|
-
locale: lexiconData.locale,
|
|
30
|
-
version: 1,
|
|
31
|
-
irregular: {},
|
|
32
|
-
regular: {},
|
|
33
|
-
});
|
|
23
|
+
const engine = new MorphologyEngine(lexiconData.locale.replace('_', '-'));
|
|
34
24
|
engine.tdsnapLexicon = lexiconData;
|
|
35
25
|
return engine;
|
|
36
26
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willwade/aac-processors",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.19",
|
|
4
4
|
"description": "A comprehensive TypeScript library for processing AAC (Augmentative and Alternative Communication) file formats with translation support",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"browser": "dist/browser/index.browser.js",
|