tpmkms_4wp 9.3.0-beta.5 → 9.3.0-beta.50

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.
Files changed (54) hide show
  1. package/common/animals.instance.json +0 -65
  2. package/common/asking.js +16 -2
  3. package/common/colors.instance.json +28 -70
  4. package/common/comparable.instance.json +0 -15
  5. package/common/concept.test.json +279 -193
  6. package/common/crew.instance.json +0 -166
  7. package/common/dateTimeSelectors.instance.json +114 -0
  8. package/common/dateTimeSelectors.js +169 -0
  9. package/common/dateTimeSelectors.test.json +79656 -0
  10. package/common/dates.instance.json +175 -472
  11. package/common/dates.js +43 -1
  12. package/common/dates.test.json +8983 -487
  13. package/common/dialogues.js +5 -43
  14. package/common/dimension.instance.json +0 -5
  15. package/common/edible.instance.json +56 -160
  16. package/common/emotions.instance.json +0 -5
  17. package/common/evaluate.js +1 -1
  18. package/common/events.js +1 -1
  19. package/common/fastfood.instance.json +528 -819
  20. package/common/fastfood.test.json +16291 -6597
  21. package/common/formulas.instance.json +0 -5
  22. package/common/helpers/dateTimeSelectors.js +183 -0
  23. package/common/helpers/dialogues.js +3 -7
  24. package/common/helpers.js +24 -7
  25. package/common/kirk.instance.json +0 -5
  26. package/common/length.instance.json +0 -75
  27. package/common/math.instance.json +0 -5
  28. package/common/menus.instance.json +0 -35
  29. package/common/numbers.js +1 -1
  30. package/common/numbers.test.json +89 -23
  31. package/common/ordering.instance.json +0 -10
  32. package/common/people.instance.json +0 -40
  33. package/common/percentages.js +1 -1
  34. package/common/pipboy.instance.json +56 -85
  35. package/common/pipboy.test.json +4377 -3386
  36. package/common/pokemon.instance.json +0 -65
  37. package/common/pressure.instance.json +0 -20
  38. package/common/properties.instance.json +0 -5
  39. package/common/reminders.instance.json +196 -10
  40. package/common/reminders.js +273 -79
  41. package/common/reminders.test.json +66486 -23
  42. package/common/reports.instance.json +2 -12
  43. package/common/scorekeeper.test.json +3565 -7550
  44. package/common/spock.instance.json +0 -5
  45. package/common/temperature.instance.json +0 -20
  46. package/common/time.js +63 -30
  47. package/common/time.test.json +4124 -124
  48. package/common/ui.instance.json +0 -5
  49. package/common/ui.js +3 -1
  50. package/common/weight.instance.json +0 -60
  51. package/common/wp.instance.json +56 -70
  52. package/common/wp.test.json +8057 -3867
  53. package/main.js +2 -0
  54. package/package.json +8 -4
package/common/dates.js CHANGED
@@ -37,9 +37,12 @@ const template = {
37
37
  "([era_dates|])",
38
38
  "([date_dates|])",
39
39
  "([dateEra_dates] (date_dates/*) (era_dates/*))",
40
+ "([monthDay_dates] (month_dates/*) (dayNumber_dates/*))",
40
41
  "([monthYear_dates] (month_dates/*) (yearNumber_dates/*))",
41
42
  "([monthDayYear_dates] (month_dates/*) (dayNumber_dates/*) (yearNumber_dates/*))",
42
43
  "([monthDayYearWithSlashes_dates] (monthNumber_dates/*) (dateSeparator_dates/*) (dayNumber_dates/*) (dateSeparator_dates/*) (yearNumber_dates/*))",
44
+ "([onDate_dates|on] ([onDateValue_dates|]))",
45
+ "([afterDate_dates|after] ([afterDateValue_dates|]))",
43
46
  ],
44
47
  associations: {
45
48
  positive: [
@@ -50,6 +53,30 @@ const template = {
50
53
  ['monday_dates', 'distributable'],
51
54
  ],
52
55
  bridges: [
56
+ {
57
+ id: 'onDateValue_dates',
58
+ children: [
59
+ 'day_dates',
60
+ 'month_dates',
61
+ ],
62
+ },
63
+ {
64
+ id: 'onDate_dates',
65
+ isA: ['preposition'],
66
+ bridge: "{ ...next(operator), date: after[0], onDate: operator, interpolate: '${onDate} ${date}' }",
67
+ },
68
+ {
69
+ id: 'afterDateValue_dates',
70
+ children: [
71
+ 'day_dates',
72
+ 'month_dates',
73
+ ],
74
+ },
75
+ {
76
+ id: 'afterDate_dates',
77
+ isA: ['preposition'],
78
+ bridge: "{ ...next(operator), date: after[0], afterDate: operator, interpolate: '${afterDate} ${date}' }",
79
+ },
53
80
  {
54
81
  id: 'era_dates',
55
82
  words: ['era'],
@@ -58,6 +85,7 @@ const template = {
58
85
  {
59
86
  id: 'date_dates',
60
87
  words: ['date', 'distributable'],
88
+ isA: ['onDateValue_dates', 'afterDateValue_dates'],
61
89
  bridge: "{ ...next(operator) }"
62
90
  },
63
91
  {
@@ -74,6 +102,7 @@ const template = {
74
102
  {
75
103
  id: 'monthDayYearWithSlashes_dates',
76
104
  isA: ['date_dates'],
105
+ before: ['preposition'],
77
106
  convolution: true,
78
107
  bridge: "{ ...next(operator), day: after[2], month: after[0], year: after[4], interpolate: '${month}/${day}/${year}' }",
79
108
  },
@@ -93,15 +122,25 @@ const template = {
93
122
  isA: ['integer'],
94
123
  bridge: "{ ...next(operator) }"
95
124
  },
125
+ {
126
+ id: 'monthDay_dates',
127
+ convolution: true,
128
+ localHierarchy: [['ordinal', 'dayNumber_dates']],
129
+ before: ['preposition'],
130
+ isA: ['date_dates'],
131
+ bridge: "{ ...next(operator), month: after[0], day: after[1], interpolate: '${month} ${day}' }"
132
+ },
96
133
  {
97
134
  id: 'monthYear_dates',
98
135
  convolution: true,
136
+ before: ['preposition'],
99
137
  isA: ['date_dates'],
100
138
  bridge: "{ ...next(operator), month: after[0], year: after[1], interpolate: '${month} ${year}' }"
101
139
  },
102
140
  {
103
141
  id: 'monthDayYear_dates',
104
142
  convolution: true,
143
+ before: ['preposition', 'monthDay_dates'],
105
144
  isA: ['date_dates'],
106
145
  localHierarchy: [
107
146
  ['ordinal', 'dayNumber_dates'],
@@ -132,8 +171,11 @@ const template = {
132
171
  (args) => {
133
172
  const as = ['jan', 'feb', 'mar', 'apr', 'jun', 'jul', 'aug', 'sept', 'oct', 'nov', 'dec']
134
173
  const ms = ['january', 'february', 'march', 'april', 'june', 'july', 'august', 'september', 'october', 'november', 'december']
174
+ // args.makeObject({...args, context: { word: as[i], value: `${ms[i]}_dates`}, types: [`${ms[i]}_dates`]})
135
175
  for (let i = 0; i < as.length; ++i) {
136
- args.makeObject({...args, context: { word: as[i], value: `${as[i]}_dates`}, types: [`${ms[i]}_dates`]})
176
+ const word = as[i]
177
+ const id = `${ms[i]}_dates`
178
+ args.addWords(id, word, { value: id, abbreviation: word })
137
179
  }
138
180
 
139
181
  /*