@chaffjs/lang-en 0.27.0 → 0.29.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 (236) hide show
  1. package/dist/browser/wink-modules.d.ts +4 -0
  2. package/dist/browser/wink-modules.d.ts.map +1 -1
  3. package/dist/browser/wink-modules.js +5 -2
  4. package/dist/browser/wink-modules.js.map +1 -1
  5. package/dist/currency-amounts.d.ts +14 -0
  6. package/dist/currency-amounts.d.ts.map +1 -0
  7. package/dist/currency-amounts.js +38 -0
  8. package/dist/currency-amounts.js.map +1 -0
  9. package/dist/pos.d.ts.map +1 -1
  10. package/dist/pos.js +21 -5
  11. package/dist/pos.js.map +1 -1
  12. package/dist/proper-noun.d.ts +11 -0
  13. package/dist/proper-noun.d.ts.map +1 -1
  14. package/dist/proper-noun.js +31 -0
  15. package/dist/proper-noun.js.map +1 -1
  16. package/dist/structure.d.ts.map +1 -1
  17. package/dist/structure.js +26 -14
  18. package/dist/structure.js.map +1 -1
  19. package/dist/unit-case.d.ts +4 -0
  20. package/dist/unit-case.d.ts.map +1 -0
  21. package/dist/unit-case.js +11 -0
  22. package/dist/unit-case.js.map +1 -0
  23. package/dist/wink-modules.d.ts +5 -0
  24. package/dist/wink-modules.d.ts.map +1 -1
  25. package/dist/wink-modules.js +5 -0
  26. package/dist/wink-modules.js.map +1 -1
  27. package/lexicons/address-label.yaml +15 -0
  28. package/lexicons/age-reference-label.yaml +11 -0
  29. package/lexicons/age-time-mark.yaml +8 -0
  30. package/lexicons/annual-holidays-label.yaml +19 -0
  31. package/lexicons/annual-holidays-word.yaml +28 -0
  32. package/lexicons/annual-pay-label.yaml +24 -0
  33. package/lexicons/annual-pay-word.yaml +52 -0
  34. package/lexicons/any-year-marker.yaml +21 -0
  35. package/lexicons/balance-column.yaml +27 -0
  36. package/lexicons/battery-label.yaml +50 -0
  37. package/lexicons/battery-unit.yaml +18 -0
  38. package/lexicons/benefit-limit-word.yaml +16 -0
  39. package/lexicons/birth-date-label.yaml +8 -0
  40. package/lexicons/bmi-term.yaml +12 -0
  41. package/lexicons/bmi-unit.yaml +6 -0
  42. package/lexicons/capacity-exception.yaml +28 -0
  43. package/lexicons/capacity-label.yaml +10 -0
  44. package/lexicons/change-column.yaml +28 -0
  45. package/lexicons/closing-balance-label.yaml +35 -0
  46. package/lexicons/contact-label.yaml +11 -0
  47. package/lexicons/count-frame.yaml +9 -0
  48. package/lexicons/count-hedge.yaml +11 -1
  49. package/lexicons/cumulative-table.yaml +35 -0
  50. package/lexicons/currency-column.yaml +13 -0
  51. package/lexicons/date-deadline-mark.yaml +11 -0
  52. package/lexicons/date-now-word.yaml +7 -0
  53. package/lexicons/dated-column-label.yaml +17 -0
  54. package/lexicons/dated-pair-label.yaml +224 -0
  55. package/lexicons/dated-span-label.yaml +12 -0
  56. package/lexicons/deductible-basis.yaml +26 -0
  57. package/lexicons/deductible-word.yaml +11 -0
  58. package/lexicons/discount-rate-label.yaml +35 -0
  59. package/lexicons/email-sentence-end.yaml +8 -0
  60. package/lexicons/event-aside.yaml +15 -0
  61. package/lexicons/event-bill-word.yaml +9 -0
  62. package/lexicons/event-date-label.yaml +12 -0
  63. package/lexicons/event-deadline-word.yaml +11 -0
  64. package/lexicons/event-due-word.yaml +7 -0
  65. package/lexicons/event-payment-deadline-word.yaml +12 -0
  66. package/lexicons/event-payment-word.yaml +7 -0
  67. package/lexicons/event-registration-word.yaml +18 -0
  68. package/lexicons/event-start-label.yaml +10 -0
  69. package/lexicons/event-ticket-word.yaml +8 -0
  70. package/lexicons/event-trip-word.yaml +13 -0
  71. package/lexicons/fact-age-joiner.yaml +8 -0
  72. package/lexicons/fact-age-limit.yaml +9 -0
  73. package/lexicons/fact-age-mark.yaml +13 -0
  74. package/lexicons/fact-amount-condition.yaml +15 -0
  75. package/lexicons/fact-count-column.yaml +10 -0
  76. package/lexicons/fact-count-counter.yaml +11 -0
  77. package/lexicons/fact-count-not-whole.yaml +19 -0
  78. package/lexicons/fact-count-restating.yaml +8 -0
  79. package/lexicons/fact-count-separate-rows.yaml +7 -0
  80. package/lexicons/fact-count-whole.yaml +11 -0
  81. package/lexicons/fact-document-term.yaml +39 -0
  82. package/lexicons/fact-label-qualifier.yaml +10 -0
  83. package/lexicons/fact-quantity-period.yaml +7 -0
  84. package/lexicons/fact-quantity-self.yaml +9 -0
  85. package/lexicons/fact-quantity-verb.yaml +8 -0
  86. package/lexicons/fact-rate-base.yaml +15 -0
  87. package/lexicons/fact-rate-joiner.yaml +16 -0
  88. package/lexicons/fact-rate-kind.yaml +9 -0
  89. package/lexicons/fact-rate-period.yaml +14 -0
  90. package/lexicons/fact-reading-clause.yaml +10 -0
  91. package/lexicons/fact-reading-gauge.yaml +13 -0
  92. package/lexicons/fact-reading-verb.yaml +9 -0
  93. package/lexicons/fact-term-self.yaml +12 -0
  94. package/lexicons/fact-term-start.yaml +7 -0
  95. package/lexicons/fact-term-verb.yaml +9 -0
  96. package/lexicons/gpa-label.yaml +19 -0
  97. package/lexicons/grade-point.yaml +40 -0
  98. package/lexicons/headcount-label.yaml +21 -0
  99. package/lexicons/headcount-unit.yaml +22 -0
  100. package/lexicons/heading-number-label.yaml +2 -6
  101. package/lexicons/installment-label.yaml +33 -0
  102. package/lexicons/installment-word.yaml +45 -0
  103. package/lexicons/interest-label.yaml +33 -0
  104. package/lexicons/item-amount.yaml +34 -0
  105. package/lexicons/item-at-hand.yaml +15 -0
  106. package/lexicons/item-list-heading.yaml +21 -0
  107. package/lexicons/item-name-column.yaml +10 -0
  108. package/lexicons/item-use.yaml +74 -0
  109. package/lexicons/lab-result-column.yaml +23 -0
  110. package/lexicons/label-product-word.yaml +36 -0
  111. package/lexicons/layout-code.yaml +13 -0
  112. package/lexicons/layout-label.yaml +14 -0
  113. package/lexicons/layout-room.yaml +16 -0
  114. package/lexicons/line-amount-column.yaml +4 -0
  115. package/lexicons/measure-per-mark.yaml +8 -0
  116. package/lexicons/measure-value-lead.yaml +8 -0
  117. package/lexicons/meter-event.yaml +22 -0
  118. package/lexicons/meter-reading-label.yaml +26 -0
  119. package/lexicons/meter-unit.yaml +16 -0
  120. package/lexicons/model-code-label.yaml +17 -0
  121. package/lexicons/net-amount-label.yaml +66 -0
  122. package/lexicons/net-amount-period.yaml +19 -0
  123. package/lexicons/net-gross-weight-column.yaml +23 -0
  124. package/lexicons/number-name-word.yaml +49 -0
  125. package/lexicons/order-quantity-column.yaml +33 -0
  126. package/lexicons/overnight-work-mark.yaml +13 -0
  127. package/lexicons/pack-count-column.yaml +13 -0
  128. package/lexicons/pack-price-column.yaml +12 -0
  129. package/lexicons/per-unit-mark.yaml +6 -0
  130. package/lexicons/period-after-term.yaml +25 -0
  131. package/lexicons/period-deadline.yaml +10 -2
  132. package/lexicons/period-label.yaml +7 -0
  133. package/lexicons/period-multiple-label.yaml +16 -0
  134. package/lexicons/period-multiple-word.yaml +28 -0
  135. package/lexicons/period-part-after.yaml +11 -0
  136. package/lexicons/period-part-length-verb.yaml +9 -0
  137. package/lexicons/period-part-marker.yaml +11 -0
  138. package/lexicons/period-part-range.yaml +9 -0
  139. package/lexicons/period-part-unnamed.yaml +16 -0
  140. package/lexicons/period-part-word.yaml +7 -0
  141. package/lexicons/person-label.yaml +26 -0
  142. package/lexicons/phone-label.yaml +11 -0
  143. package/lexicons/place-word.yaml +7 -1
  144. package/lexicons/points-earned-column.yaml +18 -0
  145. package/lexicons/points-rate-joiner.yaml +8 -0
  146. package/lexicons/points-unit.yaml +10 -0
  147. package/lexicons/quantity-bound-label.yaml +13 -0
  148. package/lexicons/quantity-change-word.yaml +47 -0
  149. package/lexicons/quantity-column.yaml +27 -0
  150. package/lexicons/quantity-range-word.yaml +6 -0
  151. package/lexicons/range-band-heading.yaml +16 -0
  152. package/lexicons/range-band-unit.yaml +34 -0
  153. package/lexicons/range-band-word.yaml +49 -0
  154. package/lexicons/range-label.yaml +10 -0
  155. package/lexicons/rate-unit.yaml +19 -0
  156. package/lexicons/ratio-label.yaml +14 -0
  157. package/lexicons/ratio-term.yaml +18 -0
  158. package/lexicons/reference-bound-mark.yaml +12 -0
  159. package/lexicons/reference-column-heading.yaml +10 -0
  160. package/lexicons/reference-column.yaml +18 -0
  161. package/lexicons/reference-flag.yaml +20 -0
  162. package/lexicons/reference-label.yaml +151 -0
  163. package/lexicons/reference-unit-column.yaml +8 -0
  164. package/lexicons/reference-unit.yaml +81 -0
  165. package/lexicons/rent-label.yaml +14 -0
  166. package/lexicons/rent-multiple-label.yaml +11 -0
  167. package/lexicons/rent-multiple-word.yaml +44 -0
  168. package/lexicons/reporting-comparison.yaml +29 -0
  169. package/lexicons/reporting-current.yaml +14 -0
  170. package/lexicons/reporting-forecast.yaml +25 -0
  171. package/lexicons/reporting-period-frame.yaml +27 -0
  172. package/lexicons/reporting-period-line.yaml +11 -0
  173. package/lexicons/reporting-results-word.yaml +9 -0
  174. package/lexicons/reporting-year-frame.yaml +10 -0
  175. package/lexicons/request-offer.yaml +12 -0
  176. package/lexicons/retention-bound.yaml +25 -0
  177. package/lexicons/retention-length-mark.yaml +7 -0
  178. package/lexicons/retention-length-modifier.yaml +6 -0
  179. package/lexicons/retention-object-mark.yaml +5 -0
  180. package/lexicons/retention-unit.yaml +5 -0
  181. package/lexicons/retention-verb.yaml +12 -0
  182. package/lexicons/revision-column.yaml +17 -0
  183. package/lexicons/revision-direction.yaml +29 -0
  184. package/lexicons/scaled-unit-form.yaml +59 -0
  185. package/lexicons/serial-label.yaml +13 -0
  186. package/lexicons/service-charge-label.yaml +6 -0
  187. package/lexicons/servings-column.yaml +26 -0
  188. package/lexicons/share-amount-label.yaml +20 -0
  189. package/lexicons/share-column-rate-header.yaml +21 -0
  190. package/lexicons/shift-column.yaml +23 -0
  191. package/lexicons/stamp-order-label.yaml +25 -0
  192. package/lexicons/step-time-not-own.yaml +36 -0
  193. package/lexicons/step-time-total.yaml +9 -0
  194. package/lexicons/summed-counter.yaml +45 -0
  195. package/lexicons/table-scale-unit.yaml +17 -0
  196. package/lexicons/table-unit-caption.yaml +7 -0
  197. package/lexicons/tax-price-column.yaml +28 -0
  198. package/lexicons/tier-label.yaml +31 -0
  199. package/lexicons/tier-unit.yaml +9 -0
  200. package/lexicons/timed-pair-label.yaml +54 -0
  201. package/lexicons/total-label-qualifier.yaml +40 -0
  202. package/lexicons/total-label.yaml +4 -2
  203. package/lexicons/total-noun-listed.yaml +9 -0
  204. package/lexicons/total-noun-qualifier.yaml +10 -0
  205. package/lexicons/total-noun-unsummed.yaml +9 -0
  206. package/lexicons/total-period-qualifier.yaml +17 -0
  207. package/lexicons/transcript-column.yaml +23 -0
  208. package/lexicons/unit-area.yaml +58 -0
  209. package/lexicons/unit-concentration.yaml +71 -0
  210. package/lexicons/unit-context.yaml +36 -0
  211. package/lexicons/unit-equivalent-hedge.yaml +11 -0
  212. package/lexicons/unit-item-link.yaml +5 -0
  213. package/lexicons/unit-length.yaml +3 -0
  214. package/lexicons/unit-pressure.yaml +12 -0
  215. package/lexicons/unit-price-column.yaml +33 -0
  216. package/lexicons/unit-temperature.yaml +20 -0
  217. package/lexicons/unit-volume.yaml +37 -0
  218. package/lexicons/unit-zero.yaml +12 -0
  219. package/lexicons/unscaled-amount.yaml +12 -0
  220. package/lexicons/use-amount-word.yaml +11 -0
  221. package/lexicons/use-count-word.yaml +49 -0
  222. package/lexicons/use-interval-word.yaml +21 -0
  223. package/lexicons/variance-column.yaml +22 -0
  224. package/lexicons/walk-rate.yaml +23 -0
  225. package/lexicons/walk-word.yaml +20 -0
  226. package/lexicons/weekly-days-off.yaml +23 -0
  227. package/lexicons/year-span-joiner.yaml +12 -0
  228. package/package.json +1 -1
  229. package/src/browser/wink-modules.ts +6 -2
  230. package/src/browser/wink.d.ts +11 -1
  231. package/src/currency-amounts.ts +51 -0
  232. package/src/pos.ts +27 -5
  233. package/src/proper-noun.ts +45 -0
  234. package/src/structure.ts +33 -15
  235. package/src/unit-case.ts +14 -0
  236. package/src/wink-modules.ts +6 -0
@@ -1,4 +1,4 @@
1
- # Words that end a place name (Union Station, 11th Street, Colorado Convention Center). name-variant reads a name ending in one
1
+ # Words that end a place name (Union Station, 11th Street, Colorado Convention Center), a building's name among them (Westgate House). name-variant reads a name ending in one
2
2
  # of them as a place and reports one place written two ways (11th Street and 11th St., King's Cross and Kings Cross).
3
3
  # group: one word written short or long, or spelt two ways (Street and St., Center and Centre). Matched as written, so each
4
4
  # capitalisation the word takes after a name is listed.
@@ -27,3 +27,9 @@ entries:
27
27
  - { pattern: Bridge, group: bridge }
28
28
  - { pattern: Plaza, group: plaza }
29
29
  - { pattern: Tower, group: tower }
30
+ - { pattern: House, group: house }
31
+ - { pattern: Building, group: building }
32
+ - { pattern: Residences, group: residences }
33
+ - { pattern: Residence, group: residence }
34
+ - { pattern: Apartments, group: apartments }
35
+ - { pattern: Court, group: court }
@@ -0,0 +1,18 @@
1
+ # Headings of a points statement's amount spent (base), earning rate (rate) and points earned (earned) columns: amount
2
+ # spent × rate is compared with the points earned (line-amount-mismatch). A rate cell written as 3% is that percentage; a
3
+ # bare number is read only under a heading whose weight says what it is per (Points per $1: 1).
4
+ id: points-earned-column
5
+ language: en
6
+ entries:
7
+ - { pattern: Amount spent, group: base }
8
+ - { pattern: Purchase amount, group: base }
9
+ - { pattern: Spend, group: base }
10
+ - { pattern: Room rate, group: base }
11
+ - { pattern: Earn rate, group: rate }
12
+ - { pattern: Points rate, group: rate }
13
+ - { pattern: Points per $1, group: rate, weight: 1 }
14
+ - { pattern: Points per dollar, group: rate, weight: 1 }
15
+ - { pattern: Miles per $1, group: rate, weight: 1 }
16
+ - { pattern: Points earned, group: earned }
17
+ - { pattern: Points awarded, group: earned }
18
+ - { pattern: Miles earned, group: earned }
@@ -0,0 +1,8 @@
1
+ # Words joining a number of points to the money it is earned per in a sentence (10 points for every $1). A points table
2
+ # with no rate column uses the rate its section states (line-amount-mismatch).
3
+ id: points-rate-joiner
4
+ language: en
5
+ entries:
6
+ - pattern: for every
7
+ - pattern: for each
8
+ - pattern: per
@@ -0,0 +1,10 @@
1
+ # The units a points amount is written in. Points earned written so may be compared with a dollar amount spent times its
2
+ # rate (line-amount-mismatch).
3
+ id: points-unit
4
+ language: en
5
+ entries:
6
+ - pattern: points
7
+ - pattern: point
8
+ - pattern: pts
9
+ - pattern: pt
10
+ - pattern: miles
@@ -0,0 +1,13 @@
1
+ # Labels of the lower and upper bound of a measured quantity (quantity-range-reversed): "min 5 kg, max 2 kg".
2
+ # "from" and "to" are not labels here as they are for an amount: "from 30 °C to 10 °C" is more often a change than a range.
3
+ # group lower or upper says which bound; link is a word that may stand between a label and its quantity ("minimum of").
4
+ # Matched as whole words, without regard to case.
5
+ id: quantity-bound-label
6
+ language: en
7
+ entries:
8
+ - { pattern: min, group: lower }
9
+ - { pattern: minimum, group: lower }
10
+ - { pattern: max, group: upper }
11
+ - { pattern: maximum, group: upper }
12
+ - { pattern: of, group: link }
13
+ - { pattern: is, group: link }
@@ -0,0 +1,47 @@
1
+ # Words that make two measured quantities in one sentence a change or a descending order, not a range
2
+ # (quantity-range-reversed): "cooled from 40 °C to 10 °C", "from 100 m down to 10 m", "countdown 10 to 0 s".
3
+ # group lead: a word that makes the pair a change only when it stands right before the first quantity
4
+ # ("Builds went from 9 minutes to 2 minutes"). Matched as whole words, without regard to case.
5
+ id: quantity-change-word
6
+ language: en
7
+ entries:
8
+ - { pattern: from, group: lead }
9
+ - pattern: down
10
+ - pattern: reduce
11
+ - pattern: reduced
12
+ - pattern: reduces
13
+ - pattern: reducing
14
+ - pattern: reduction
15
+ - pattern: lowered
16
+ - pattern: lowering
17
+ - pattern: drops
18
+ - pattern: dropped
19
+ - pattern: dropping
20
+ - pattern: falls
21
+ - pattern: fell
22
+ - pattern: falling
23
+ - pattern: decrease
24
+ - pattern: decreased
25
+ - pattern: decreases
26
+ - pattern: decreasing
27
+ - pattern: decline
28
+ - pattern: declined
29
+ - pattern: declines
30
+ - pattern: cool
31
+ - pattern: cooled
32
+ - pattern: cools
33
+ - pattern: cooling
34
+ - pattern: shrink
35
+ - pattern: shrank
36
+ - pattern: shrinks
37
+ - pattern: change
38
+ - pattern: changed
39
+ - pattern: changes
40
+ - pattern: descending
41
+ - pattern: countdown
42
+ - pattern: raise
43
+ - pattern: raised
44
+ - pattern: increase
45
+ - pattern: increased
46
+ - pattern: rose
47
+ - pattern: heated
@@ -6,4 +6,31 @@ entries:
6
6
  - pattern: Qty
7
7
  - pattern: Qty.
8
8
  - pattern: Units
9
+ # The head count or ticket count of a registration or ticket order (a price per person, per ticket, per seat).
10
+ - pattern: Tickets
11
+ - pattern: Attendees
12
+ - pattern: Seats
13
+ - pattern: Persons
14
+ # The head count of a school trip or event budget (a cost per student or per person times the head count). The group
15
+ # is not a rate-unit: a Rate column (a hotel's rate per night) beside it is not read as per person.
16
+ - { pattern: Students, group: person }
17
+ - { pattern: People, group: person }
18
+ - { pattern: Participants, group: person }
19
+ - { pattern: Guests, group: person }
20
+ - { pattern: Headcount, group: person }
21
+ - { pattern: No. of students, group: person }
9
22
  - { pattern: Hours, group: hour }
23
+ - { pattern: Miles, group: mile }
24
+ # The months of a rent statement (monthly × months = annual).
25
+ - { pattern: Months, group: month }
26
+ # The days of a benefit statement (daily benefit × days = benefit).
27
+ - { pattern: Days, group: day }
28
+ - { pattern: Days in hospital, group: day }
29
+ # The credits of a tuition invoice (times the tuition per credit gives the amount).
30
+ - { pattern: Credits, group: credit }
31
+ - { pattern: Credit hours, group: credit }
32
+ # The area of a land price (price per square foot × area = price). The cell's unit (rate-unit) says which area unit;
33
+ # an area is never multiplied by a price per day or per hour.
34
+ - { pattern: Area, group: area }
35
+ - { pattern: Lot area, group: area }
36
+ - { pattern: Land area, group: area }
@@ -0,0 +1,6 @@
1
+ # Words that join two measured quantities into a range on their own, beside range-connector's marks
2
+ # (quantity-range-reversed): "-10 to 40 °C"; and two serial codes (serial-range-reversed). Matched as whole words.
3
+ id: quantity-range-word
4
+ language: en
5
+ entries:
6
+ - pattern: to
@@ -0,0 +1,16 @@
1
+ # Column headings that say what bare numbers in a band count ("7 to 11", "15 and over") for range-band-mismatch. Group as
2
+ # in range-band-unit. Read when the heading cell is only this word (brackets aside); a heading with a unit in brackets
3
+ # ("Weight (kg)") is read by the unit.
4
+ id: range-band-heading
5
+ language: en
6
+ entries:
7
+ - { pattern: "age", group: integer }
8
+ - { pattern: "ages", group: integer }
9
+ - { pattern: "age group", group: integer }
10
+ - { pattern: "people", group: integer }
11
+ - { pattern: "group size", group: integer }
12
+ - { pattern: "score", group: integer }
13
+ - { pattern: "points", group: integer }
14
+ - { pattern: "weight", group: continuous }
15
+ - { pattern: "body weight", group: continuous }
16
+ - { pattern: "height", group: continuous }
@@ -0,0 +1,34 @@
1
+ # The units a band is counted in (range-band-mismatch). Group integer has no value between two numbers (ages, people,
2
+ # points): 6 to 11 then 12 and over is contiguous, and 7 to 12 then 12 to 14 overlap at 12. Group continuous has values in
3
+ # between (weights, lengths, money, durations): two bands that meet at one number with a range mark ("50-60 kg", "60-70 kg")
4
+ # are contiguous, and so are two a step of the written digits apart (59 kg then 60 kg). Times of day and dates are not units
5
+ # here. A plural is the same unit as its singular. position before is a unit written before the number ($5).
6
+ id: range-band-unit
7
+ language: en
8
+ entries:
9
+ - { pattern: "years", group: integer }
10
+ - { pattern: "years old", group: integer }
11
+ - { pattern: "yrs", group: integer }
12
+ - { pattern: "people", group: integer }
13
+ - { pattern: "persons", group: integer }
14
+ - { pattern: "guests", group: integer }
15
+ - { pattern: "points", group: integer }
16
+ - { pattern: "pts", group: integer }
17
+ - { pattern: "nights", group: integer }
18
+ - { pattern: "kg", group: continuous }
19
+ - { pattern: "g", group: continuous }
20
+ - { pattern: "mg", group: continuous }
21
+ - { pattern: "lb", group: continuous }
22
+ - { pattern: "lbs", group: continuous }
23
+ - { pattern: "oz", group: continuous }
24
+ - { pattern: "cm", group: continuous }
25
+ - { pattern: "mm", group: continuous }
26
+ - { pattern: "km", group: continuous }
27
+ - { pattern: "miles", group: continuous }
28
+ - { pattern: "%", group: continuous }
29
+ - { pattern: "hours", group: continuous }
30
+ - { pattern: "minutes", group: continuous }
31
+ - { pattern: "months", group: continuous }
32
+ - { pattern: "$", group: continuous, position: before }
33
+ - { pattern: "£", group: continuous, position: before }
34
+ - { pattern: "€", group: continuous, position: before }
@@ -0,0 +1,49 @@
1
+ # The words that bound a band of a table column or a list (ages, weights, amounts, scores) for range-band-mismatch. Group
2
+ # connector stands between two numbers ("7 to 11", "between 6 and 11"); after a number alone it leaves the band open above.
3
+ # A connector with position before may also stand before a number alone to close a band above; a hyphen may not ("- 5" is
4
+ # a bullet or a minus), so none here does. lower-inclusive and lower-exclusive bound a band below ("12 and over", "over 12"), upper-inclusive and
5
+ # upper-exclusive above ("6 and under", "under 7"). position says on which side of the number the word is written (after
6
+ # when left out). Group lead is a word a band may open with that says nothing about its ends ("ages 6-11").
7
+ id: range-band-word
8
+ language: en
9
+ entries:
10
+ - { pattern: "to", group: connector }
11
+ - { pattern: "-", group: connector }
12
+ - { pattern: "‐", group: connector }
13
+ - { pattern: "–", group: connector }
14
+ - { pattern: "—", group: connector }
15
+ - { pattern: "through", group: connector }
16
+ - { pattern: "and", group: connector }
17
+ - { pattern: "between", group: lead }
18
+ - { pattern: "from", group: lead }
19
+ - { pattern: "ages", group: lead }
20
+ - { pattern: "age", group: lead }
21
+ - { pattern: "aged", group: lead }
22
+ - { pattern: "and over", group: lower-inclusive }
23
+ - { pattern: "or over", group: lower-inclusive }
24
+ - { pattern: "and older", group: lower-inclusive }
25
+ - { pattern: "or older", group: lower-inclusive }
26
+ - { pattern: "and above", group: lower-inclusive }
27
+ - { pattern: "or above", group: lower-inclusive }
28
+ - { pattern: "or more", group: lower-inclusive }
29
+ - { pattern: "and up", group: lower-inclusive }
30
+ - { pattern: "+", group: lower-inclusive }
31
+ - { pattern: "at least", group: lower-inclusive, position: before }
32
+ - { pattern: "from", group: lower-inclusive, position: before }
33
+ - { pattern: "over", group: lower-exclusive, position: before }
34
+ - { pattern: "above", group: lower-exclusive, position: before }
35
+ - { pattern: "more than", group: lower-exclusive, position: before }
36
+ - { pattern: "older than", group: lower-exclusive, position: before }
37
+ - { pattern: "and under", group: upper-inclusive }
38
+ - { pattern: "or under", group: upper-inclusive }
39
+ - { pattern: "and younger", group: upper-inclusive }
40
+ - { pattern: "or younger", group: upper-inclusive }
41
+ - { pattern: "and below", group: upper-inclusive }
42
+ - { pattern: "or below", group: upper-inclusive }
43
+ - { pattern: "or less", group: upper-inclusive }
44
+ - { pattern: "up to", group: upper-inclusive, position: before }
45
+ - { pattern: "at most", group: upper-inclusive, position: before }
46
+ - { pattern: "under", group: upper-exclusive, position: before }
47
+ - { pattern: "below", group: upper-exclusive, position: before }
48
+ - { pattern: "less than", group: upper-exclusive, position: before }
49
+ - { pattern: "younger than", group: upper-exclusive, position: before }
@@ -0,0 +1,10 @@
1
+ # Last words of a short line label that says a span follows ("Sales period: October 1, 2025 to February 28, 2026",
2
+ # "Booking window: …"). On such a line date-range-reversed reads a bare "… to …" between two dates as a period. Unlike
3
+ # period-label, the label need not be the document's own period. Japanese needs none: its periods are joined by 〜.
4
+ id: range-label
5
+ language: en
6
+ entries:
7
+ - pattern: period
8
+ - pattern: dates
9
+ - pattern: term
10
+ - pattern: window
@@ -16,3 +16,22 @@ entries:
16
16
  - { pattern: months, group: month }
17
17
  - { pattern: year, group: year }
18
18
  - { pattern: years, group: year }
19
+ - { pattern: mile, group: mile }
20
+ - { pattern: miles, group: mile }
21
+ - { pattern: mi, group: mile }
22
+ - { pattern: km, group: km }
23
+ # Course credits (3 credits): a tuition per credit is multiplied only by a count of credits.
24
+ - { pattern: credit, group: credit }
25
+ - { pattern: credits, group: credit }
26
+ - { pattern: credit hour, group: credit }
27
+ - { pattern: credit hours, group: credit }
28
+ # Area units. A square foot and a square metre are different units: a price per square foot is not multiplied by m².
29
+ - { pattern: sq ft, group: sqft }
30
+ - { pattern: sq. ft., group: sqft }
31
+ - { pattern: sqft, group: sqft }
32
+ - { pattern: ft², group: sqft }
33
+ - { pattern: square feet, group: sqft }
34
+ - { pattern: m², group: sqm }
35
+ - { pattern: sq m, group: sqm }
36
+ - { pattern: square metres, group: sqm }
37
+ - { pattern: square meters, group: sqm }
@@ -0,0 +1,14 @@
1
+ # Names of a ratio that one value divided by another gives (ratio-mismatch). group is "numerator term/denominator term";
2
+ # the words of each term are in ratio-term. A table row labelled with only this word (a unit in brackets aside), or one
3
+ # sentence with this word and a word of each term once, has its ratio compared with the two values.
4
+ id: ratio-label
5
+ language: en
6
+ entries:
7
+ - { pattern: Operating margin, group: operating-profit/sales }
8
+ - { pattern: Operating profit margin, group: operating-profit/sales }
9
+ - { pattern: Operating income margin, group: operating-profit/sales }
10
+ - { pattern: Gross margin, group: gross-profit/sales }
11
+ - { pattern: Gross profit margin, group: gross-profit/sales }
12
+ - { pattern: Net margin, group: net-profit/sales }
13
+ - { pattern: Net profit margin, group: net-profit/sales }
14
+ - { pattern: Net income margin, group: net-profit/sales }
@@ -0,0 +1,18 @@
1
+ # Names of the values a ratio divides (ratio-mismatch). group is the term a ratio-label names. In a table, a row whose
2
+ # label is only this word (a unit in brackets aside) is read.
3
+ id: ratio-term
4
+ language: en
5
+ entries:
6
+ - { pattern: Net sales, group: sales }
7
+ - { pattern: Sales, group: sales }
8
+ - { pattern: Revenue, group: sales }
9
+ - { pattern: Revenues, group: sales }
10
+ - { pattern: Net revenue, group: sales }
11
+ - { pattern: Net revenues, group: sales }
12
+ - { pattern: Total revenue, group: sales }
13
+ - { pattern: Total revenues, group: sales }
14
+ - { pattern: Operating profit, group: operating-profit }
15
+ - { pattern: Operating income, group: operating-profit }
16
+ - { pattern: Gross profit, group: gross-profit }
17
+ - { pattern: Net profit, group: net-profit }
18
+ - { pattern: Net income, group: net-profit }
@@ -0,0 +1,12 @@
1
+ # The signs that bound a reference range on one side (reference-flag-mismatch), read with the words of range-band-word ("or
2
+ # less", "below", "up to"). The groups are range-band-word's: upper-inclusive keeps its end (≤79), upper-exclusive does not
3
+ # (<79), lower-inclusive and lower-exclusive bound below. All are written before the number.
4
+ id: reference-bound-mark
5
+ language: en
6
+ entries:
7
+ - { pattern: "≤", group: upper-inclusive, position: before }
8
+ - { pattern: "<=", group: upper-inclusive, position: before }
9
+ - { pattern: "<", group: upper-exclusive, position: before }
10
+ - { pattern: "≥", group: lower-inclusive, position: before }
11
+ - { pattern: ">=", group: lower-inclusive, position: before }
12
+ - { pattern: ">", group: lower-exclusive, position: before }
@@ -0,0 +1,10 @@
1
+ # The column headings of a lab results table that only reference-flag-mismatch reads; the words both rules read are in
2
+ # lab-result-column. Matched as the whole heading, a unit in brackets at its end left out ("Result (mg/dL)" is Result). A
3
+ # table is read only when the result, range and flag columns are each named exactly once.
4
+ id: reference-column-heading
5
+ language: en
6
+ entries:
7
+ - { pattern: Value, group: result }
8
+ - { pattern: Your value, group: result }
9
+ - { pattern: Reference, group: range }
10
+ - { pattern: Normal values, group: range }
@@ -0,0 +1,18 @@
1
+ # Headings of the column of an itemised table that gives each row's own receipt, invoice or slip number
2
+ # (reference-number-repeated). Only a column whose heading is one of these words as a whole is read (case, width and spaces
3
+ # aside). Columns whose values rightly repeat from row to row (category codes, account numbers, dates) are not listed.
4
+ id: reference-column
5
+ language: en
6
+ entries:
7
+ - pattern: Receipt no.
8
+ - pattern: Receipt no
9
+ - pattern: Receipt number
10
+ - pattern: "Receipt #"
11
+ - pattern: Invoice no.
12
+ - pattern: Invoice no
13
+ - pattern: Invoice number
14
+ - pattern: "Invoice #"
15
+ - pattern: Voucher no.
16
+ - pattern: Voucher number
17
+ - pattern: Ref.
18
+ - pattern: Ref. no.
@@ -0,0 +1,20 @@
1
+ # The flags of a lab result (reference-flag-mismatch). Group high is above the reference range, low below it, normal within
2
+ # it, outside out of it on either side. Only flags set against the reference range are listed; a grade of a checkup (A to E)
3
+ # follows the clinic's own criteria and is left out. Matched as the whole cell.
4
+ id: reference-flag
5
+ language: en
6
+ entries:
7
+ - { pattern: H, group: high }
8
+ - { pattern: High, group: high }
9
+ - { pattern: ↑, group: high }
10
+ - { pattern: L, group: low }
11
+ - { pattern: Low, group: low }
12
+ - { pattern: ↓, group: low }
13
+ - { pattern: Normal, group: normal }
14
+ - { pattern: Within range, group: normal }
15
+ - { pattern: In range, group: normal }
16
+ - { pattern: Within normal limits, group: normal }
17
+ - { pattern: WNL, group: normal }
18
+ - { pattern: Out of range, group: outside }
19
+ - { pattern: Abnormal, group: outside }
20
+ - { pattern: "*", group: outside }
@@ -0,0 +1,151 @@
1
+ # Words put before a document's own number (a booking or confirmation number). group is what the number is; numbers of
2
+ # different groups are never compared. reference-number-variant reads the letters and digits right after a label (only
3
+ # spaces, a colon, a comma or an opening bracket between) as a number of its group. Words that come between a label and its number ("is") go here too.
4
+ id: reference-label
5
+ language: en
6
+ entries:
7
+ - { pattern: booking number, group: booking }
8
+ - { pattern: booking number is, group: booking }
9
+ - { pattern: reservation number, group: booking }
10
+ - { pattern: reservation number is, group: booking }
11
+ - { pattern: confirmation number, group: confirmation }
12
+ - { pattern: confirmation number is, group: confirmation }
13
+ - { pattern: reference number, group: reference }
14
+ - { pattern: reference number is, group: reference }
15
+ - { pattern: employee number, group: employee }
16
+ - { pattern: employee number is, group: employee }
17
+ - { pattern: employee id, group: employee }
18
+ - { pattern: employee id is, group: employee }
19
+ - { pattern: employee no., group: employee }
20
+ - { pattern: student number, group: student }
21
+ - { pattern: student number is, group: student }
22
+ - { pattern: student id, group: student }
23
+ - { pattern: student id is, group: student }
24
+ - { pattern: student no., group: student }
25
+ # A bank account's number. A transfer's other account is labelled longer (payee account number), and the longer label
26
+ # wins, so it is never compared with the account's own.
27
+ - { pattern: account number, group: account }
28
+ - { pattern: account number is, group: account }
29
+ - { pattern: account no., group: account }
30
+ - { pattern: account no, group: account }
31
+ - { pattern: "account #", group: account }
32
+ - { pattern: payee account number, group: payee-account }
33
+ - { pattern: payee account number is, group: payee-account }
34
+ - { pattern: payee's account number, group: payee-account }
35
+ - { pattern: payee's account number is, group: payee-account }
36
+ - { pattern: beneficiary account number, group: payee-account }
37
+ - { pattern: beneficiary account number is, group: payee-account }
38
+ - { pattern: beneficiary's account number, group: payee-account }
39
+ - { pattern: beneficiary's account number is, group: payee-account }
40
+ - { pattern: recipient account number, group: payee-account }
41
+ - { pattern: recipient account number is, group: payee-account }
42
+ - { pattern: payer account number, group: payer-account }
43
+ - { pattern: payer account number is, group: payer-account }
44
+ - { pattern: payer's account number, group: payer-account }
45
+ - { pattern: payer's account number is, group: payer-account }
46
+ - { pattern: sender account number, group: payer-account }
47
+ - { pattern: sender account number is, group: payer-account }
48
+ # An insurance policy's number. A policyholder's own number may cover several policies, so it is not one.
49
+ - { pattern: policy number, group: policy }
50
+ - { pattern: policy number is, group: policy }
51
+ - { pattern: policy no., group: policy }
52
+ - { pattern: policy no, group: policy }
53
+ - { pattern: "policy #", group: policy }
54
+ - { pattern: insurance policy number, group: policy }
55
+ - { pattern: insurance policy number is, group: policy }
56
+ - { pattern: po number, group: order }
57
+ - { pattern: po number is, group: order }
58
+ - { pattern: purchase order number, group: order }
59
+ - { pattern: purchase order number is, group: order }
60
+ - { pattern: order number, group: order }
61
+ - { pattern: order number is, group: order }
62
+ - { pattern: invoice number, group: invoice }
63
+ - { pattern: invoice number is, group: invoice }
64
+ - { pattern: invoice no., group: invoice }
65
+ - { pattern: invoice no, group: invoice }
66
+ - { pattern: "invoice #", group: invoice }
67
+ # A quote's number. A quote, an order and an invoice are different documents, so their numbers are never compared.
68
+ # A bare "quote" is not a label: "please quote your PO number" uses it as a verb.
69
+ - { pattern: quote number, group: quote }
70
+ - { pattern: quote number is, group: quote }
71
+ - { pattern: quote no., group: quote }
72
+ - { pattern: quote no, group: quote }
73
+ - { pattern: quotation number, group: quote }
74
+ - { pattern: quotation number is, group: quote }
75
+ - { pattern: estimate number, group: quote }
76
+ - { pattern: estimate number is, group: quote }
77
+ - { pattern: estimate no., group: quote }
78
+ - { pattern: estimate no, group: quote }
79
+ - { pattern: patient number, group: patient }
80
+ - { pattern: patient number is, group: patient }
81
+ - { pattern: patient id, group: patient }
82
+ - { pattern: patient id is, group: patient }
83
+ - { pattern: patient no., group: patient }
84
+ - { pattern: contract number, group: contract }
85
+ - { pattern: contract number is, group: contract }
86
+ - { pattern: contract no., group: contract }
87
+ - { pattern: agreement number, group: contract }
88
+ - { pattern: agreement number is, group: contract }
89
+ - { pattern: tenancy agreement number, group: contract }
90
+ - { pattern: tenancy agreement number is, group: contract }
91
+ # Labels of another contract's number. The longer label wins, so these are never compared with the document's own.
92
+ - { pattern: original contract number, group: original-contract }
93
+ - { pattern: original contract number is, group: original-contract }
94
+ - { pattern: original agreement number, group: original-contract }
95
+ - { pattern: original agreement number is, group: original-contract }
96
+ - { pattern: master agreement number, group: master-contract }
97
+ - { pattern: master agreement number is, group: master-contract }
98
+ - { pattern: master contract number, group: master-contract }
99
+ - { pattern: master contract number is, group: master-contract }
100
+ - { pattern: former contract number, group: former-contract }
101
+ - { pattern: former contract number is, group: former-contract }
102
+ - { pattern: amended contract number, group: amended-contract }
103
+ - { pattern: amended contract number is, group: amended-contract }
104
+ - { pattern: amendment number, group: amended-contract }
105
+ - { pattern: amendment number is, group: amended-contract }
106
+ - { pattern: parent contract number, group: parent-contract }
107
+ - { pattern: parent contract number is, group: parent-contract }
108
+ - { pattern: parent agreement number, group: parent-contract }
109
+ - { pattern: parent agreement number is, group: parent-contract }
110
+ # An attendee's registration. An application number may be one application's, apart from each attendee's registration number.
111
+ - { pattern: registration number, group: registration }
112
+ - { pattern: registration number is, group: registration }
113
+ - { pattern: registration no., group: registration }
114
+ - { pattern: registration no, group: registration }
115
+ - { pattern: application number, group: application }
116
+ - { pattern: application number is, group: application }
117
+ # An item's code. A table's codes are items of their own; only a code with no label is compared with them.
118
+ - { pattern: item code, group: item }
119
+ - { pattern: item code is, group: item }
120
+ - { pattern: item no., group: item }
121
+ - { pattern: item no, group: item }
122
+ - { pattern: sku, group: item }
123
+ - { pattern: product code, group: item }
124
+ - { pattern: product code is, group: item }
125
+ # A vehicle's plate. A bare "Registration" is not one: an attendee's registration is written so too.
126
+ - { pattern: registration plate, group: vehicle }
127
+ - { pattern: registration plate is, group: vehicle }
128
+ - { pattern: number plate, group: vehicle }
129
+ - { pattern: number plate is, group: vehicle }
130
+ - { pattern: plate number, group: vehicle }
131
+ - { pattern: plate number is, group: vehicle }
132
+ - { pattern: licence plate, group: vehicle }
133
+ - { pattern: licence plate is, group: vehicle }
134
+ - { pattern: licence plate number, group: vehicle }
135
+ - { pattern: license plate, group: vehicle }
136
+ - { pattern: license plate is, group: vehicle }
137
+ - { pattern: license plate number, group: vehicle }
138
+ - { pattern: vehicle registration, group: vehicle }
139
+ - { pattern: vehicle registration number, group: vehicle }
140
+ - { pattern: vehicle registration number is, group: vehicle }
141
+ # A member's number. A customer number is the shop's number for a customer and may differ from a member number.
142
+ - { pattern: member number, group: member }
143
+ - { pattern: member number is, group: member }
144
+ - { pattern: membership number, group: member }
145
+ - { pattern: membership number is, group: member }
146
+ - { pattern: member id, group: member }
147
+ - { pattern: member id is, group: member }
148
+ - { pattern: member no., group: member }
149
+ - { pattern: member no, group: member }
150
+ - { pattern: customer number, group: customer }
151
+ - { pattern: customer number is, group: customer }
@@ -0,0 +1,8 @@
1
+ # The column headings of a lab results table that only reference-unit-mismatch reads; the words both rules read are in
2
+ # lab-result-column. A bracketed part of a heading ("Result (mg/dL)", "Reference range (adult)") is left out, and the rest
3
+ # must be the whole heading.
4
+ id: reference-unit-column
5
+ language: en
6
+ entries:
7
+ - { pattern: Measured value, group: result }
8
+ - { pattern: Test result, group: result }
@@ -0,0 +1,81 @@
1
+ # Units written for results and reference ranges in a lab results table, and what each is (group). Units of one group
2
+ # are one unit and compare without converting (mg/dL and mg/100mL, ×10⁴/µL and 万/µL, ×10³/µL and ×10⁹/L, µIU/mL and
3
+ # mIU/L, mEq/L and mmol/L as for the monovalent ions). reference-unit-mismatch reports a result whose group is not its reference range's. Text is matched after NFKC
4
+ # and lower-casing, so mg/dl, full-width letters, and μ against µ need no entries of their own.
5
+ id: reference-unit
6
+ language: en
7
+ entries:
8
+ - { pattern: "mg/dL", group: mg/dl }
9
+ - { pattern: "mg/100mL", group: mg/dl }
10
+ - { pattern: "g/dL", group: g/dl }
11
+ - { pattern: "g/L", group: g/l }
12
+ - { pattern: "mg/L", group: mg/l }
13
+ - { pattern: "µg/dL", group: ug/dl }
14
+ - { pattern: "ug/dL", group: ug/dl }
15
+ - { pattern: "mcg/dL", group: ug/dl }
16
+ - { pattern: "µg/L", group: ug/l }
17
+ - { pattern: "ug/L", group: ug/l }
18
+ - { pattern: "µg/mL", group: ug/ml }
19
+ - { pattern: "ug/mL", group: ug/ml }
20
+ - { pattern: "ng/mL", group: ng/ml }
21
+ - { pattern: "ng/dL", group: ng/dl }
22
+ - { pattern: "pg/mL", group: pg/ml }
23
+ - { pattern: "mmol/L", group: mmol/l }
24
+ - { pattern: "µmol/L", group: umol/l }
25
+ - { pattern: "umol/L", group: umol/l }
26
+ - { pattern: "nmol/L", group: nmol/l }
27
+ - { pattern: "pmol/L", group: pmol/l }
28
+ - { pattern: "mmol/mol", group: mmol/mol }
29
+ - { pattern: "mEq/L", group: mmol/l }
30
+ - { pattern: "U/L", group: u/l }
31
+ - { pattern: "IU/L", group: u/l }
32
+ - { pattern: "U/mL", group: u/ml }
33
+ - { pattern: "mU/L", group: mu/l }
34
+ - { pattern: "mIU/L", group: mu/l }
35
+ - { pattern: "µU/mL", group: mu/l }
36
+ - { pattern: "µIU/mL", group: mu/l }
37
+ - { pattern: "uU/mL", group: mu/l }
38
+ - { pattern: "uIU/mL", group: mu/l }
39
+ - { pattern: "mL/min/1.73m²", group: ml/min/1.73m2 }
40
+ - { pattern: "mL/分/1.73m²", group: ml/min/1.73m2 }
41
+ - { pattern: "mm/h", group: mm/h }
42
+ - { pattern: "mm/hr", group: mm/h }
43
+ - { pattern: "mOsm/kg", group: mosm/kg }
44
+ - { pattern: "%", group: percent }
45
+ - { pattern: "fL", group: fl }
46
+ - { pattern: "pg", group: pg }
47
+ - { pattern: "×10⁴/µL", group: 10^4/ul }
48
+ - { pattern: "×10^4/µL", group: 10^4/ul }
49
+ - { pattern: "x10^4/uL", group: 10^4/ul }
50
+ - { pattern: "万/µL", group: 10^4/ul }
51
+ - { pattern: "万/uL", group: 10^4/ul }
52
+ - { pattern: "万/mm³", group: 10^4/ul }
53
+ - { pattern: "×10³/µL", group: 10^3/ul }
54
+ - { pattern: "×10^3/µL", group: 10^3/ul }
55
+ - { pattern: "x10^3/uL", group: 10^3/ul }
56
+ - { pattern: "10³/µL", group: 10^3/ul }
57
+ - { pattern: "10^3/µL", group: 10^3/ul }
58
+ - { pattern: "10^3/uL", group: 10^3/ul }
59
+ - { pattern: "K/µL", group: 10^3/ul }
60
+ - { pattern: "K/uL", group: 10^3/ul }
61
+ - { pattern: "×10⁹/L", group: 10^3/ul }
62
+ - { pattern: "×10^9/L", group: 10^3/ul }
63
+ - { pattern: "x10^9/L", group: 10^3/ul }
64
+ - { pattern: "10⁹/L", group: 10^3/ul }
65
+ - { pattern: "10^9/L", group: 10^3/ul }
66
+ - { pattern: "千/µL", group: 10^3/ul }
67
+ - { pattern: "×10⁶/µL", group: 10^6/ul }
68
+ - { pattern: "×10^6/µL", group: 10^6/ul }
69
+ - { pattern: "x10^6/uL", group: 10^6/ul }
70
+ - { pattern: "10^6/µL", group: 10^6/ul }
71
+ - { pattern: "10^6/uL", group: 10^6/ul }
72
+ - { pattern: "M/µL", group: 10^6/ul }
73
+ - { pattern: "M/uL", group: 10^6/ul }
74
+ - { pattern: "×10¹²/L", group: 10^6/ul }
75
+ - { pattern: "×10^12/L", group: 10^6/ul }
76
+ - { pattern: "x10^12/L", group: 10^6/ul }
77
+ - { pattern: "10¹²/L", group: 10^6/ul }
78
+ - { pattern: "10^12/L", group: 10^6/ul }
79
+ - { pattern: "/µL", group: /ul }
80
+ - { pattern: "/uL", group: /ul }
81
+ - { pattern: "/mm³", group: /ul }