ipa-core 1.3.5 → 1.3.7

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.
@@ -16,6 +16,18 @@ function getDefinitions(phoneme) {
16
16
  steps.push(dictionary[p.features.voicing]);
17
17
  }
18
18
 
19
+ if (p.features?.height && dictionary[p.features.height]) {
20
+ steps.push(dictionary[p.features.height]);
21
+ }
22
+
23
+ if (p.features?.backness && dictionary[p.features.backness]) {
24
+ steps.push(dictionary[p.features.backness]);
25
+ }
26
+
27
+ if (p.features?.rounding) {
28
+ steps.push(dictionary[p.features.rounding] || p.features.rounding);
29
+ }
30
+
19
31
  if (p.airstream && dictionary[p.airstream]) {
20
32
  steps.push(dictionary[p.airstream]);
21
33
  }
package/index.js CHANGED
@@ -4,7 +4,7 @@ const modifiers = require("./modifiers.js"); // diacritics, tones, suprasegmenta
4
4
  const rules = require("./rules.js"); // modifier compatibility rules
5
5
  const parser = require("./parser.js"); // parser (parsePhoneme, parseUnit, parseConfig)
6
6
  const dictionary = require("./dictionary.js"); //instructional definitions
7
- const getDefinitions = require("./get-definitions.js"); //compiles and formats instructions
7
+ const { getDefinitions } = require("./get-definitions.js"); //compiles and formats instructions
8
8
 
9
9
  // Export the layers so users can access them if needed
10
10
  const { parsePhoneme, parseUnit, parseConfig } = parser;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ipa-core",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "description": "Language-agnostic IPA core with features",
5
5
  "repository": "github:Cody253/ipa-core",
6
6
  "homepage": "https://github.com/Cody253/ipa-core#readme",