@chaffjs/lang-en 0.27.0 → 0.28.0

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 (66) hide show
  1. package/lexicons/address-label.yaml +15 -0
  2. package/lexicons/battery-label.yaml +50 -0
  3. package/lexicons/battery-unit.yaml +18 -0
  4. package/lexicons/capacity-exception.yaml +28 -0
  5. package/lexicons/capacity-label.yaml +10 -0
  6. package/lexicons/contact-label.yaml +11 -0
  7. package/lexicons/count-frame.yaml +9 -0
  8. package/lexicons/count-hedge.yaml +11 -1
  9. package/lexicons/date-now-word.yaml +7 -0
  10. package/lexicons/dated-pair-label.yaml +14 -0
  11. package/lexicons/event-aside.yaml +15 -0
  12. package/lexicons/event-date-label.yaml +12 -0
  13. package/lexicons/event-deadline-word.yaml +11 -0
  14. package/lexicons/event-registration-word.yaml +18 -0
  15. package/lexicons/headcount-label.yaml +21 -0
  16. package/lexicons/headcount-unit.yaml +22 -0
  17. package/lexicons/item-amount.yaml +34 -0
  18. package/lexicons/item-at-hand.yaml +15 -0
  19. package/lexicons/item-list-heading.yaml +21 -0
  20. package/lexicons/item-use.yaml +74 -0
  21. package/lexicons/layout-code.yaml +13 -0
  22. package/lexicons/layout-label.yaml +14 -0
  23. package/lexicons/layout-room.yaml +16 -0
  24. package/lexicons/measure-per-mark.yaml +8 -0
  25. package/lexicons/measure-value-lead.yaml +8 -0
  26. package/lexicons/model-code-label.yaml +17 -0
  27. package/lexicons/period-after-term.yaml +25 -0
  28. package/lexicons/period-deadline.yaml +10 -2
  29. package/lexicons/phone-label.yaml +1 -0
  30. package/lexicons/place-word.yaml +7 -1
  31. package/lexicons/quantity-bound-label.yaml +13 -0
  32. package/lexicons/quantity-change-word.yaml +47 -0
  33. package/lexicons/quantity-range-word.yaml +6 -0
  34. package/lexicons/range-band-heading.yaml +16 -0
  35. package/lexicons/range-band-unit.yaml +34 -0
  36. package/lexicons/range-band-word.yaml +49 -0
  37. package/lexicons/rent-label.yaml +14 -0
  38. package/lexicons/rent-multiple-label.yaml +11 -0
  39. package/lexicons/rent-multiple-word.yaml +44 -0
  40. package/lexicons/retention-bound.yaml +25 -0
  41. package/lexicons/retention-length-mark.yaml +7 -0
  42. package/lexicons/retention-length-modifier.yaml +6 -0
  43. package/lexicons/retention-object-mark.yaml +5 -0
  44. package/lexicons/retention-unit.yaml +5 -0
  45. package/lexicons/retention-verb.yaml +12 -0
  46. package/lexicons/scaled-unit-form.yaml +59 -0
  47. package/lexicons/servings-column.yaml +26 -0
  48. package/lexicons/stamp-order-label.yaml +25 -0
  49. package/lexicons/step-time-not-own.yaml +36 -0
  50. package/lexicons/step-time-total.yaml +9 -0
  51. package/lexicons/total-label-qualifier.yaml +33 -0
  52. package/lexicons/unit-area.yaml +48 -0
  53. package/lexicons/unit-context.yaml +36 -0
  54. package/lexicons/unit-equivalent-hedge.yaml +11 -0
  55. package/lexicons/unit-item-link.yaml +5 -0
  56. package/lexicons/unit-length.yaml +3 -0
  57. package/lexicons/unit-pressure.yaml +12 -0
  58. package/lexicons/unit-temperature.yaml +20 -0
  59. package/lexicons/unit-volume.yaml +33 -0
  60. package/lexicons/unit-zero.yaml +12 -0
  61. package/lexicons/unscaled-amount.yaml +12 -0
  62. package/lexicons/use-count-word.yaml +49 -0
  63. package/lexicons/use-interval-word.yaml +21 -0
  64. package/lexicons/walk-rate.yaml +23 -0
  65. package/lexicons/walk-word.yaml +20 -0
  66. package/package.json +1 -1
@@ -24,3 +24,36 @@ entries:
24
24
  weight: 1
25
25
  - pattern: "gallon"
26
26
  weight: 3.785411784
27
+ # Kitchen measures carry two factors: the US measure (tablespoon 14.8 mL, teaspoon 4.9 mL, cup 240 mL, the US legal cup) and the metric one (15, 5 and 250 mL); either may match.
28
+ - pattern: "tablespoons"
29
+ weight: 0.0147868
30
+ - pattern: "tablespoons"
31
+ weight: 0.015
32
+ - pattern: "tablespoon"
33
+ weight: 0.0147868
34
+ - pattern: "tablespoon"
35
+ weight: 0.015
36
+ - pattern: "tbsp"
37
+ weight: 0.0147868
38
+ - pattern: "tbsp"
39
+ weight: 0.015
40
+ - pattern: "teaspoons"
41
+ weight: 0.00492892
42
+ - pattern: "teaspoons"
43
+ weight: 0.005
44
+ - pattern: "teaspoon"
45
+ weight: 0.00492892
46
+ - pattern: "teaspoon"
47
+ weight: 0.005
48
+ - pattern: "tsp"
49
+ weight: 0.00492892
50
+ - pattern: "tsp"
51
+ weight: 0.005
52
+ - pattern: "cups"
53
+ weight: 0.24
54
+ - pattern: "cups"
55
+ weight: 0.25
56
+ - pattern: "cup"
57
+ weight: 0.24
58
+ - pattern: "cup"
59
+ weight: 0.25
@@ -0,0 +1,12 @@
1
+ # Units whose zero is not the base unit's zero (unit-mismatch). weight is what this unit reads when the base unit reads 0 (0 °C is 32 °F). A value converts to the base unit as (value − weight) × factor.
2
+ id: unit-zero
3
+ language: en
4
+ entries:
5
+ - pattern: "°F"
6
+ weight: 32
7
+ - pattern: "℉"
8
+ weight: 32
9
+ - pattern: "degrees Fahrenheit"
10
+ weight: 32
11
+ - pattern: "degrees F"
12
+ weight: 32
@@ -0,0 +1,12 @@
1
+ # Amounts left to the cook, which need not grow with the number of servings (scaled-quantity-mismatch). A row with a cell that
2
+ # holds one of these is not compared.
3
+ id: unscaled-amount
4
+ language: en
5
+ entries:
6
+ - pattern: "to taste"
7
+ - pattern: "as needed"
8
+ - pattern: "as required"
9
+ - pattern: "a pinch"
10
+ - pattern: "a dash"
11
+ - pattern: "optional"
12
+ - pattern: "to serve"
@@ -0,0 +1,49 @@
1
+ # Counts of uses in a period ("3 times a day") and the words that make a number a limit (product-exceeds-maximum,
2
+ # interval-count-mismatch). Group period is a period, weight its length in hours, written after the count. counter is
3
+ # what a count of uses is written in. alone is a number word that counts without a counter ("twice a day"), weight its
4
+ # value. limit makes a number a maximum: before, anywhere earlier in the same sentence ("the maximum daily dose is 4
5
+ # tablets"); after, right behind it ("4 tablets or less"). limit-negated is a limit only with a negation earlier in the
6
+ # sentence ("do not take more than"; "you may need more than" is not one).
7
+ id: use-count-word
8
+ language: en
9
+ entries:
10
+ - { pattern: "a day", group: period, weight: 24, position: after }
11
+ - { pattern: "per day", group: period, weight: 24, position: after }
12
+ - { pattern: "each day", group: period, weight: 24, position: after }
13
+ - { pattern: "every day", group: period, weight: 24, position: after }
14
+ - { pattern: "daily", group: period, weight: 24, position: after }
15
+ - { pattern: "in 24 hours", group: period, weight: 24, position: after }
16
+ - { pattern: "in any 24 hours", group: period, weight: 24, position: after }
17
+ - { pattern: "per 24 hours", group: period, weight: 24, position: after }
18
+ - { pattern: "in a 24-hour period", group: period, weight: 24, position: after }
19
+ - { pattern: "in any 24-hour period", group: period, weight: 24, position: after }
20
+ - { pattern: "a week", group: period, weight: 168, position: after }
21
+ - { pattern: "per week", group: period, weight: 168, position: after }
22
+ - { pattern: "weekly", group: period, weight: 168, position: after }
23
+ - { pattern: "times", group: counter }
24
+ - { pattern: "doses", group: counter }
25
+ - { pattern: "uses", group: counter }
26
+ - { pattern: "servings", group: counter }
27
+ - { pattern: "feedings", group: counter }
28
+ - { pattern: "applications", group: counter }
29
+ - { pattern: "once", group: alone, weight: 1 }
30
+ - { pattern: "twice", group: alone, weight: 2 }
31
+ - { pattern: "thrice", group: alone, weight: 3 }
32
+ - { pattern: "maximum", group: limit, position: before }
33
+ - { pattern: "max", group: limit, position: before }
34
+ - { pattern: "no more than", group: limit, position: before }
35
+ - { pattern: "not more than", group: limit, position: before }
36
+ - { pattern: "more than", group: limit-negated, position: before }
37
+ - { pattern: "up to", group: limit, position: before }
38
+ - { pattern: "at most", group: limit, position: before }
39
+ - { pattern: "exceed", group: limit, position: before }
40
+ - { pattern: "limit", group: limit, position: before }
41
+ - { pattern: "or less", group: limit, position: after }
42
+ - { pattern: "or fewer", group: limit, position: after }
43
+ - { pattern: "at most", group: limit, position: after }
44
+ - { pattern: "not", group: negation }
45
+ - { pattern: "never", group: negation }
46
+ - { pattern: "don't", group: negation }
47
+ - { pattern: "do not", group: negation }
48
+ - { pattern: "must not", group: negation }
49
+ - { pattern: "should not", group: negation }
@@ -0,0 +1,21 @@
1
+ # The minimum interval between uses and the count column of a table (interval-count-mismatch). minimum makes a length
2
+ # a lower bound, written right before it ("at least 4 hours"). cue makes that length an interval between uses, in the
3
+ # same sentence ("between", "apart"). column is the heading of a table column of uses in a period, weight the period's
4
+ # length in hours.
5
+ id: use-interval-word
6
+ language: en
7
+ entries:
8
+ - { pattern: "at least", group: minimum, position: before }
9
+ - { pattern: "no less than", group: minimum, position: before }
10
+ - { pattern: "not less than", group: minimum, position: before }
11
+ - { pattern: "a minimum of", group: minimum, position: before }
12
+ - { pattern: "between", group: cue }
13
+ - { pattern: "apart", group: cue }
14
+ - { pattern: "interval", group: cue }
15
+ - { pattern: "gap", group: cue }
16
+ - { pattern: "Times a day", group: column, weight: 24 }
17
+ - { pattern: "Times per day", group: column, weight: 24 }
18
+ - { pattern: "Doses a day", group: column, weight: 24 }
19
+ - { pattern: "Doses per day", group: column, weight: 24 }
20
+ - { pattern: "Uses a day", group: column, weight: 24 }
21
+ - { pattern: "Uses per day", group: column, weight: 24 }
@@ -0,0 +1,23 @@
1
+ # Walking speed (walk-time-distance-mismatch). English has no default speed: minutes are compared with a distance only when
2
+ # the document states its own rate. group per: the words that make a length a speed ("80 m per minute", "5 km/h"); position is
3
+ # the side of the length, weight the seconds of that time. group round-up: words on the rate's line saying part minutes are
4
+ # rounded up; without one, rounding either way is accepted. group not-round-up: words that say it is not rounded up
5
+ # ("not rounded up", "to the nearest minute"), which win over a round-up word.
6
+ id: walk-rate
7
+ language: en
8
+ entries:
9
+ - { pattern: "per minute", position: after, group: per, weight: 60 }
10
+ - { pattern: "a minute", position: after, group: per, weight: 60 }
11
+ - { pattern: "/min", position: after, group: per, weight: 60 }
12
+ - { pattern: "/minute", position: after, group: per, weight: 60 }
13
+ - { pattern: "per hour", position: after, group: per, weight: 3600 }
14
+ - { pattern: "an hour", position: after, group: per, weight: 3600 }
15
+ - { pattern: "/h", position: after, group: per, weight: 3600 }
16
+ - { pattern: "/hr", position: after, group: per, weight: 3600 }
17
+ - { pattern: "rounded up", group: round-up }
18
+ - { pattern: "round up", group: round-up }
19
+ - { pattern: "rounding up", group: round-up }
20
+ - { pattern: "not rounded up", group: not-round-up }
21
+ - { pattern: "not round up", group: not-round-up }
22
+ - { pattern: "rounded down", group: not-round-up }
23
+ - { pattern: "to the nearest", group: not-round-up }
@@ -0,0 +1,20 @@
1
+ # Words that make a number of minutes a walking time (walk-time-distance-mismatch). group walk: the word after the minutes
2
+ # ("a 5-minute walk", "5 minutes on foot"). group bound: a word that makes the minutes a limit ("within a 10-minute walk"),
3
+ # never compared; position is the side of the minutes. group range: a word joining two numbers into a range ("8 to 10
4
+ # minutes"), never compared. group filler: a word skipped between "about" or "within" and the number.
5
+ id: walk-word
6
+ language: en
7
+ entries:
8
+ - { pattern: "walk", position: after, group: walk }
9
+ - { pattern: "walking", position: after, group: walk }
10
+ - { pattern: "on foot", position: after, group: walk }
11
+ - { pattern: "by foot", position: after, group: walk }
12
+ - { pattern: "within", position: before, group: bound }
13
+ - { pattern: "under", position: before, group: bound }
14
+ - { pattern: "less than", position: before, group: bound }
15
+ - { pattern: "up to", position: before, group: bound }
16
+ - { pattern: "or less", position: after, group: bound }
17
+ - { pattern: "to", group: range }
18
+ - { pattern: "or", group: range }
19
+ - { pattern: "a", group: filler }
20
+ - { pattern: "an", group: filler }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chaffjs/lang-en",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "description": "English language adapter for chaff",
5
5
  "license": "MIT",
6
6
  "author": "isamu",