@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
@@ -0,0 +1,7 @@
1
+ # Words that make a short line above a table a caption of its unit (table-unit-mix): "(In millions of US dollars)",
2
+ # "(Millions of yen)". A line with one of these words, one word of scale and no figure is read as the unit of the table below.
3
+ id: table-unit-caption
4
+ language: en
5
+ entries:
6
+ - pattern: in
7
+ - pattern: of
@@ -0,0 +1,28 @@
1
+ # Words that tell the tax-excluded price column of a price list from the tax-included one (tax-mismatch). group: excluded
2
+ # is the price before tax, included the price with tax. Two columns whose headings are the same once these words and a
3
+ # rate (8%) are taken out ("Pack price (excl. tax)", "Pack price (incl. 8% tax)") are compared row by row as one item's
4
+ # price before and with tax. group: rate is a word that, in a sentence outside a table, makes the rate right before or
5
+ # after it the tax rate ("8% sales tax"). A Latin word stands as a whole word.
6
+ id: tax-price-column
7
+ language: en
8
+ entries:
9
+ - { pattern: excl. tax, group: excluded }
10
+ - { pattern: excluding tax, group: excluded }
11
+ - { pattern: ex. tax, group: excluded }
12
+ - { pattern: tax excl., group: excluded }
13
+ - { pattern: tax excluded, group: excluded }
14
+ - { pattern: before tax, group: excluded }
15
+ - { pattern: pre-tax, group: excluded }
16
+ - { pattern: incl. tax, group: included }
17
+ - { pattern: including tax, group: included }
18
+ - { pattern: inc. tax, group: included }
19
+ - { pattern: tax incl., group: included }
20
+ - { pattern: tax included, group: included }
21
+ - { pattern: tax inclusive, group: included }
22
+ - { pattern: after tax, group: included }
23
+ - { pattern: with tax, group: included }
24
+ - { pattern: sales tax, group: rate }
25
+ - { pattern: tax rate, group: rate }
26
+ - { pattern: tax, group: rate }
27
+ - { pattern: VAT, group: rate }
28
+ - { pattern: GST, group: rate }
@@ -0,0 +1,31 @@
1
+ # Words that check a member's tier (tier-threshold-mismatch).
2
+ # Group label: the keys of a line that states a member's tier. In "Your tier: Gold", the key before the colon must be only
3
+ # this word, and the value is read as the tier's name. It is compared only when the document's tier table or list has a tier
4
+ # written the very same way.
5
+ # Group other: a word that, in a key, makes the line's value some other figure than the one the tier is earned by (a balance,
6
+ # what is needed for the next tier). Such a value is not counted as the member's.
7
+ id: tier-label
8
+ language: en
9
+ entries:
10
+ - { pattern: tier, group: label }
11
+ - { pattern: your tier, group: label }
12
+ - { pattern: current tier, group: label }
13
+ - { pattern: member tier, group: label }
14
+ - { pattern: membership tier, group: label }
15
+ - { pattern: status, group: label }
16
+ - { pattern: your status, group: label }
17
+ - { pattern: member status, group: label }
18
+ - { pattern: membership status, group: label }
19
+ - { pattern: status level, group: label }
20
+ - { pattern: membership level, group: label }
21
+ - { pattern: balance, group: other }
22
+ - { pattern: remaining, group: other }
23
+ - { pattern: used, group: other }
24
+ - { pattern: redeemed, group: other }
25
+ - { pattern: expiring, group: other }
26
+ - { pattern: expired, group: other }
27
+ - { pattern: needed, group: other }
28
+ - { pattern: required, group: other }
29
+ - { pattern: next, group: other }
30
+ - { pattern: to go, group: other }
31
+ - { pattern: goal, group: other }
@@ -0,0 +1,9 @@
1
+ # The units a tier's threshold is counted in (tier-threshold-mismatch). A tier's band and the member's value are compared only
2
+ # in one unit. Group as in range-band-unit (integer has no value between two numbers, continuous does); position before is a
3
+ # unit written before the number ($5). A plural is the same unit as its singular.
4
+ id: tier-unit
5
+ language: en
6
+ entries:
7
+ - { pattern: points, group: integer }
8
+ - { pattern: nights, group: integer }
9
+ - { pattern: $, group: continuous, position: before }
@@ -0,0 +1,54 @@
1
+ # Pairs of times of one day that must come in order. group names the pair; position before is the word of the time that
2
+ # comes first, after the word of the time that comes second. A line (or a table's first column) starting with one of these
3
+ # words and holding one time is read, and an after time earlier than the before time on the same day is reported (time-order, pair).
4
+ # "Registration" and "Check-in" alone are left out: a line can give when registration closes, and a hotel's check-in time
5
+ # comes after the next morning's departure time.
6
+ id: timed-pair-label
7
+ language: en
8
+ entries:
9
+ # A show or an event: the doors open, then it starts.
10
+ - { pattern: "Doors open", group: doors, position: before }
11
+ - { pattern: "Doors opening", group: doors, position: before }
12
+ - { pattern: "Doors", group: doors, position: before }
13
+ - { pattern: "Start", group: doors, position: after }
14
+ - { pattern: "Starts", group: doors, position: after }
15
+ - { pattern: "Start time", group: doors, position: after }
16
+ - { pattern: "Show starts", group: doors, position: after }
17
+ - { pattern: "Concert starts", group: doors, position: after }
18
+ - { pattern: "Performance starts", group: doors, position: after }
19
+ - { pattern: "Event starts", group: doors, position: after }
20
+ - { pattern: "Showtime", group: doors, position: after }
21
+ - { pattern: "Show time", group: doors, position: after }
22
+ - { pattern: "Curtain up", group: doors, position: after }
23
+ # Registration opens, then the event starts.
24
+ - { pattern: "Registration opens", group: registration, position: before }
25
+ - { pattern: "Registration begins", group: registration, position: before }
26
+ - { pattern: "Check-in opens", group: registration, position: before }
27
+ - { pattern: "Check-in begins", group: registration, position: before }
28
+ - { pattern: "Start", group: registration, position: after }
29
+ - { pattern: "Starts", group: registration, position: after }
30
+ - { pattern: "Start time", group: registration, position: after }
31
+ - { pattern: "Event starts", group: registration, position: after }
32
+ - { pattern: "Programme starts", group: registration, position: after }
33
+ - { pattern: "Program starts", group: registration, position: after }
34
+ # A trip: the group meets, or boarding begins, then it departs.
35
+ - { pattern: "Meet", group: departure, position: before }
36
+ - { pattern: "Meeting time", group: departure, position: before }
37
+ - { pattern: "Boarding", group: departure, position: before }
38
+ - { pattern: "Boarding begins", group: departure, position: before }
39
+ - { pattern: "Boarding starts", group: departure, position: before }
40
+ - { pattern: "Departure", group: departure, position: after }
41
+ - { pattern: "Departure time", group: departure, position: after }
42
+ - { pattern: "Departs", group: departure, position: after }
43
+ # Something starts, then it ends.
44
+ - { pattern: "Start", group: span, position: before }
45
+ - { pattern: "Starts", group: span, position: before }
46
+ - { pattern: "Start time", group: span, position: before }
47
+ - { pattern: "Show starts", group: span, position: before }
48
+ - { pattern: "Concert starts", group: span, position: before }
49
+ - { pattern: "End", group: span, position: after }
50
+ - { pattern: "Ends", group: span, position: after }
51
+ - { pattern: "End time", group: span, position: after }
52
+ - { pattern: "Finish", group: span, position: after }
53
+ - { pattern: "Finishes", group: span, position: after }
54
+ - { pattern: "Expected finish", group: span, position: after }
@@ -0,0 +1,40 @@
1
+ # Words that may stand beside a total word (total-label) in a total line's label and keep it a total line:
2
+ # "Total per month", "Monthly total", "Week total", "Total due", "Total monthly cost". position: before or after the total word only;
3
+ # without it, either side. A note in parentheses ("Total (incl. tax)") is always allowed. A label with any other word
4
+ # ("Total area", "Total tax", "A total") is not read as a total line, because its amount need not be the sum of the
5
+ # lines above it.
6
+ id: total-label-qualifier
7
+ language: en
8
+ entries:
9
+ - { pattern: grand, position: before }
10
+ - { pattern: overall, position: before }
11
+ - { pattern: daily }
12
+ - { pattern: weekly }
13
+ - { pattern: monthly }
14
+ - { pattern: quarterly }
15
+ - { pattern: yearly }
16
+ - { pattern: annual }
17
+ - { pattern: per, position: after }
18
+ - { pattern: a, position: after }
19
+ - { pattern: each, position: after }
20
+ - { pattern: every, position: after }
21
+ - { pattern: day }
22
+ - { pattern: week }
23
+ - { pattern: month }
24
+ - { pattern: quarter }
25
+ - { pattern: year, position: after }
26
+ - { pattern: annually, position: after }
27
+ - { pattern: due, position: after }
28
+ - { pattern: payable, position: after }
29
+ - { pattern: amount, position: after }
30
+ - { pattern: cost, position: after }
31
+ - { pattern: costs, position: after }
32
+ - { pattern: price, position: after }
33
+ - { pattern: payment, position: after }
34
+ # What a section of an account adds up: "Total income", "Total expenditure", "Total receipts".
35
+ - { pattern: income, position: after }
36
+ - { pattern: expenditure, position: after }
37
+ - { pattern: expenses, position: after }
38
+ - { pattern: receipts, position: after }
39
+ - { pattern: payments, position: after }
40
+ - { pattern: revenue, position: after }
@@ -1,9 +1,11 @@
1
1
  # Words that mark a total line. A line (or a table's first column) starting with one is compared with the amounts above it.
2
2
  id: total-label
3
3
  language: en
4
+ # group subtotal: the total of one part of a table, not of the document (fact-conflict does not read it as a
5
+ # document-wide item's value).
4
6
  entries:
5
7
  - pattern: Total
6
- - pattern: Subtotal
7
- - pattern: Sub-total
8
+ - { pattern: Subtotal, group: subtotal }
9
+ - { pattern: Sub-total, group: subtotal }
8
10
  - pattern: Grand total
9
11
  - pattern: Sum
@@ -0,0 +1,9 @@
1
+ # Nouns of a total that is the sum of the rows listed above it even when the table's header names nothing ("Item"): the
2
+ # deductions of "Total deductions". Read only on a table's last row, with no total row and no gross or net amount
3
+ # (Gross pay) above it and one column of amounts (total-mismatch). Compared as a whole word, each form listed; a noun of
4
+ # an amount that need not be the sum of the rows (tax, area) does not belong here.
5
+ id: total-noun-listed
6
+ language: en
7
+ entries:
8
+ - pattern: deduction
9
+ - pattern: deductions
@@ -0,0 +1,10 @@
1
+ # Words that may stand beside the noun of a total ("credits" in "Total credits earned") without changing what it
2
+ # counts. They are set aside before the noun is compared with the table's header ("Credits"). position: before or
3
+ # after the noun only; without it, either side.
4
+ id: total-noun-qualifier
5
+ language: en
6
+ entries:
7
+ - { pattern: earned }
8
+ - { pattern: completed }
9
+ - { pattern: taken }
10
+ - { pattern: obtained }
@@ -0,0 +1,9 @@
1
+ # Nouns of a quantity whose total need not be the sum of the rows listed above it: in a table of rooms, "Total area"
2
+ # may include a hall or a closet no row lists. A total with one of these nouns ("Total area", "Total floor space") is
3
+ # not read as a total line, even when the table's header names the noun ("| Room | Area |").
4
+ id: total-noun-unsummed
5
+ language: en
6
+ entries:
7
+ - pattern: area
8
+ - pattern: space
9
+ - pattern: footage
@@ -0,0 +1,17 @@
1
+ # Words naming the span a total covers. Cut off a total line's label, what remains is read as the total word:
2
+ # "Total for the year", "Year total", "Annual total" read as "Total". position: before or after the total word only.
3
+ # A label naming another span ("Prior-year total", "Total for the prior year") is not cut, as it is not this table's total.
4
+ # A total read this way that is the items scaled to a year (exactly 4, 12 or 52 times their sum, as monthly items under
5
+ # an annual total) is not compared.
6
+ id: total-period-qualifier
7
+ language: en
8
+ entries:
9
+ - { pattern: annual, position: before }
10
+ - { pattern: yearly, position: before }
11
+ - { pattern: year, position: before }
12
+ - { pattern: full-year, position: before }
13
+ - { pattern: full year, position: before }
14
+ - { pattern: for the year, position: after }
15
+ - { pattern: for the full year, position: after }
16
+ - { pattern: per year, position: after }
17
+ - { pattern: annually, position: after }
@@ -0,0 +1,23 @@
1
+ # What a column of a transcript's course table holds, by its heading words (gpa-mismatch). group: course is the course,
2
+ # credits the credits, grade the grade word, points a grade-points column (looked at first, so "Grade points" is not the
3
+ # grade). Only a line holding a grade or points word is read as a grading key ("A (4)"). total is a word in the first
4
+ # cell of a total row, which is not counted as a course.
5
+ id: transcript-column
6
+ language: en
7
+ entries:
8
+ - { pattern: grade points, group: points }
9
+ - { pattern: grade point, group: points }
10
+ - { pattern: GP, group: points }
11
+ - { pattern: quality points, group: points }
12
+ - { pattern: grade, group: grade }
13
+ - { pattern: grades, group: grade }
14
+ - { pattern: grading, group: grade }
15
+ - { pattern: credits, group: credits }
16
+ - { pattern: credit, group: credits }
17
+ - { pattern: credit hours, group: credits }
18
+ - { pattern: units, group: credits }
19
+ - { pattern: course, group: course }
20
+ - { pattern: subject, group: course }
21
+ - { pattern: module, group: course }
22
+ - { pattern: total, group: total }
23
+ - { pattern: subtotal, group: total }
@@ -0,0 +1,58 @@
1
+ # Units of area (base: square metre) (unit-mismatch). weight is the factor to the base unit. A square foot is 0.3048 m squared; an acre is 43,560 square feet.
2
+ id: unit-area
3
+ language: en
4
+ entries:
5
+ - pattern: "m²"
6
+ weight: 1
7
+ - pattern: "m2"
8
+ weight: 1
9
+ - pattern: "m^2"
10
+ weight: 1
11
+ - pattern: "㎡"
12
+ weight: 1
13
+ - pattern: "sq m"
14
+ weight: 1
15
+ - pattern: "sqm"
16
+ weight: 1
17
+ - pattern: "sq.m."
18
+ weight: 1
19
+ - pattern: "sq. m."
20
+ weight: 1
21
+ - pattern: "square meters"
22
+ weight: 1
23
+ - pattern: "square metres"
24
+ weight: 1
25
+ - pattern: "square meter"
26
+ weight: 1
27
+ - pattern: "square metre"
28
+ weight: 1
29
+ - pattern: "km²"
30
+ weight: 1000000
31
+ - pattern: "km2"
32
+ weight: 1000000
33
+ - pattern: "sq km"
34
+ weight: 1000000
35
+ - pattern: "square kilometers"
36
+ weight: 1000000
37
+ - pattern: "square kilometres"
38
+ weight: 1000000
39
+ - pattern: "ha"
40
+ weight: 10000
41
+ - pattern: "hectares"
42
+ weight: 10000
43
+ - pattern: "hectare"
44
+ weight: 10000
45
+ - pattern: "ft²"
46
+ weight: 0.09290304
47
+ - pattern: "sq ft"
48
+ weight: 0.09290304
49
+ - pattern: "sq. ft."
50
+ weight: 0.09290304
51
+ - pattern: "square feet"
52
+ weight: 0.09290304
53
+ - pattern: "square foot"
54
+ weight: 0.09290304
55
+ - pattern: "acres"
56
+ weight: 4046.8564224
57
+ - pattern: "acre"
58
+ weight: 4046.8564224
@@ -0,0 +1,71 @@
1
+ # Units of concentration, and of counts such as blood cells (mg/dL, mmol/L, U/L, ×10⁴/µL in lab results). group is the family of a unit;
2
+ # only units of one family compare. mg/dL and mmol/L convert by the substance, so no factor crosses families. weight is the factor to the family's base unit.
3
+ id: unit-concentration
4
+ language: en
5
+ entries:
6
+ # Mass concentration (base: mg/L)
7
+ - { pattern: "g/L", group: mass, weight: 1000 }
8
+ - { pattern: "g/dL", group: mass, weight: 10000 }
9
+ - { pattern: "g/dl", group: mass, weight: 10000 }
10
+ - { pattern: "mg/L", group: mass, weight: 1 }
11
+ - { pattern: "mg/l", group: mass, weight: 1 }
12
+ - { pattern: "mg/dL", group: mass, weight: 10 }
13
+ - { pattern: "mg/dl", group: mass, weight: 10 }
14
+ - { pattern: "mg/100mL", group: mass, weight: 10 }
15
+ - { pattern: "mg/mL", group: mass, weight: 1000 }
16
+ - { pattern: "µg/L", group: mass, weight: 0.001 }
17
+ - { pattern: "μg/L", group: mass, weight: 0.001 }
18
+ - { pattern: "µg/dL", group: mass, weight: 0.01 }
19
+ - { pattern: "μg/dL", group: mass, weight: 0.01 }
20
+ - { pattern: "µg/mL", group: mass, weight: 1 }
21
+ - { pattern: "μg/mL", group: mass, weight: 1 }
22
+ - { pattern: "ng/mL", group: mass, weight: 0.001 }
23
+ - { pattern: "ng/dL", group: mass, weight: 0.00001 }
24
+ - { pattern: "pg/mL", group: mass, weight: 0.000001 }
25
+ # Molar concentration (base: µmol/L)
26
+ - { pattern: "mol/L", group: molar, weight: 1000000 }
27
+ - { pattern: "mmol/L", group: molar, weight: 1000 }
28
+ - { pattern: "mmol/l", group: molar, weight: 1000 }
29
+ - { pattern: "µmol/L", group: molar, weight: 1 }
30
+ - { pattern: "μmol/L", group: molar, weight: 1 }
31
+ - { pattern: "nmol/L", group: molar, weight: 0.001 }
32
+ - { pattern: "pmol/L", group: molar, weight: 0.000001 }
33
+ # Equivalents (base: mEq/L)
34
+ - { pattern: "mEq/L", group: equivalent, weight: 1 }
35
+ - { pattern: "mEq/l", group: equivalent, weight: 1 }
36
+ # Enzyme activity (base: U/L)
37
+ - { pattern: "U/L", group: enzyme, weight: 1 }
38
+ - { pattern: "U/l", group: enzyme, weight: 1 }
39
+ - { pattern: "U/mL", group: enzyme, weight: 1000 }
40
+ - { pattern: "mU/mL", group: enzyme, weight: 1 }
41
+ - { pattern: "mU/L", group: enzyme, weight: 0.001 }
42
+ - { pattern: "µU/mL", group: enzyme, weight: 0.001 }
43
+ - { pattern: "μU/mL", group: enzyme, weight: 0.001 }
44
+ # International units (base: IU/L)
45
+ - { pattern: "IU/L", group: international, weight: 1 }
46
+ - { pattern: "IU/l", group: international, weight: 1 }
47
+ - { pattern: "IU/mL", group: international, weight: 1000 }
48
+ - { pattern: "mIU/mL", group: international, weight: 1 }
49
+ - { pattern: "mIU/L", group: international, weight: 0.001 }
50
+ - { pattern: "µIU/mL", group: international, weight: 0.001 }
51
+ - { pattern: "μIU/mL", group: international, weight: 0.001 }
52
+ # Counts such as blood cells (base: per µL; 1 mm³ is 1 µL, 10⁹/L is 10³/µL)
53
+ - { pattern: "/µL", group: count, weight: 1 }
54
+ - { pattern: "/μL", group: count, weight: 1 }
55
+ - { pattern: "/mm³", group: count, weight: 1 }
56
+ - { pattern: "×10³/µL", group: count, weight: 1000 }
57
+ - { pattern: "×10³/μL", group: count, weight: 1000 }
58
+ - { pattern: "×10^3/µL", group: count, weight: 1000 }
59
+ - { pattern: "×10⁴/µL", group: count, weight: 10000 }
60
+ - { pattern: "×10⁴/μL", group: count, weight: 10000 }
61
+ - { pattern: "×10^4/µL", group: count, weight: 10000 }
62
+ - { pattern: "万/µL", group: count, weight: 10000 }
63
+ - { pattern: "万/μL", group: count, weight: 10000 }
64
+ - { pattern: "万/mm³", group: count, weight: 10000 }
65
+ - { pattern: "×10⁶/µL", group: count, weight: 1000000 }
66
+ - { pattern: "×10⁶/μL", group: count, weight: 1000000 }
67
+ - { pattern: "×10^6/µL", group: count, weight: 1000000 }
68
+ - { pattern: "×10⁹/L", group: count, weight: 1000 }
69
+ - { pattern: "×10^9/L", group: count, weight: 1000 }
70
+ - { pattern: "×10¹²/L", group: count, weight: 1000000 }
71
+ - { pattern: "×10^12/L", group: count, weight: 1000000 }
@@ -0,0 +1,36 @@
1
+ # Units that need context (unit-mismatch). A unit named as a group is read only when its line also has one of these words. "in" is an inch only on a line about a size ("a 15.6 in display", "12 x 8 in"); elsewhere it is the preposition ("1 in 3 users", "5 in stock").
2
+ id: unit-context
3
+ language: en
4
+ entries:
5
+ - pattern: "display"
6
+ group: "in"
7
+ - pattern: "screen"
8
+ group: "in"
9
+ - pattern: "monitor"
10
+ group: "in"
11
+ - pattern: "diagonal"
12
+ group: "in"
13
+ - pattern: "width"
14
+ group: "in"
15
+ - pattern: "height"
16
+ group: "in"
17
+ - pattern: "depth"
18
+ group: "in"
19
+ - pattern: "length"
20
+ group: "in"
21
+ - pattern: "thickness"
22
+ group: "in"
23
+ - pattern: "dimensions"
24
+ group: "in"
25
+ - pattern: "wide"
26
+ group: "in"
27
+ - pattern: "tall"
28
+ group: "in"
29
+ - pattern: "deep"
30
+ group: "in"
31
+ - pattern: "thick"
32
+ group: "in"
33
+ - pattern: "x"
34
+ group: "in"
35
+ - pattern: "×"
36
+ group: "in"
@@ -0,0 +1,11 @@
1
+ # Words before a converted value in brackets (unit-mismatch): the "about" in "300 kPa (about 44 psi)".
2
+ id: unit-equivalent-hedge
3
+ language: en
4
+ entries:
5
+ - pattern: "about"
6
+ - pattern: "approx."
7
+ - pattern: "approximately"
8
+ - pattern: "around"
9
+ - pattern: "roughly"
10
+ - pattern: "~"
11
+ - pattern: "≈"
@@ -0,0 +1,5 @@
1
+ # Words joining an amount to the name of what it measures (unit-mismatch). The name is right before the amount (soy sauce 30 ml) or after it across one of these words (30 ml of soy sauce).
2
+ id: unit-item-link
3
+ language: en
4
+ entries:
5
+ - pattern: "of"
@@ -42,3 +42,6 @@ entries:
42
42
  weight: 0.3048
43
43
  - pattern: "inch"
44
44
  weight: 0.0254
45
+ # Only on a line about a size, as a whole word no number follows (unit-context).
46
+ - pattern: "in"
47
+ weight: 0.0254
@@ -0,0 +1,12 @@
1
+ # Units of pressure (base: kilopascal) (unit-mismatch). weight is the factor to the base unit (1 psi is 6.894757 kPa, 1 bar is 100 kPa).
2
+ id: unit-pressure
3
+ language: en
4
+ entries:
5
+ - pattern: "kPa"
6
+ weight: 1
7
+ - pattern: "MPa"
8
+ weight: 1000
9
+ - pattern: "psi"
10
+ weight: 6.894757293168361
11
+ - pattern: "bar"
12
+ weight: 100
@@ -3,7 +3,40 @@ id: unit-price-column
3
3
  language: en
4
4
  entries:
5
5
  - pattern: Unit price
6
+ - pattern: Unit price (excl. tax)
6
7
  - pattern: Unit cost
7
8
  - pattern: Price
9
+ - pattern: Rate per unit
10
+ - pattern: Price per unit
11
+ # A cost per head. The group says it is per a person, so it is multiplied only by a bare number under a head-count or
12
+ # plain quantity heading, never by days or hours.
13
+ - { pattern: Per student, group: person }
14
+ - { pattern: Per person, group: person }
15
+ - { pattern: Per head, group: person }
16
+ - { pattern: Per guest, group: person }
17
+ - { pattern: Per participant, group: person }
18
+ - { pattern: Per attendee, group: person }
19
+ - { pattern: Cost per student, group: person }
20
+ - { pattern: Price per person, group: person }
8
21
  # A rate is a price per a period of time, and the header does not say which (group: a unit no quantity word counts).
9
22
  - { pattern: Rate, group: unstated }
23
+ - { pattern: Hourly rate, group: hour }
24
+ - { pattern: Rate per hour, group: hour }
25
+ - { pattern: Rate per mile, group: mile }
26
+ - { pattern: Monthly, group: month }
27
+ - { pattern: Monthly rent, group: month }
28
+ - { pattern: Daily benefit, group: day }
29
+ - { pattern: Per day, group: day }
30
+ - { pattern: Daily rate, group: day }
31
+ # The tuition per credit of a tuition invoice (times the credits gives the amount).
32
+ - { pattern: Tuition per credit, group: credit }
33
+ - { pattern: Fee per credit, group: credit }
34
+ - { pattern: Per credit, group: credit }
35
+ # The daily amount of a property tax proration (daily amount × days = proration).
36
+ - { pattern: Daily amount, group: day }
37
+ # A price per area. A square foot and a square metre are different units, so each is its own group.
38
+ - { pattern: Price per sq ft, group: sqft }
39
+ - { pattern: Price per square foot, group: sqft }
40
+ - { pattern: Price per m², group: sqm }
41
+ - { pattern: Price per square metre, group: sqm }
42
+ - { pattern: Price per square meter, group: sqm }
@@ -0,0 +1,20 @@
1
+ # Units of temperature (base: degree Celsius) (unit-mismatch). weight is the factor to the base unit; the offset of a scale's zero is in unit-zero. "degrees" alone is not a unit: it is also an angle, and an oven at "350 degrees" may be Fahrenheit or Celsius.
2
+ id: unit-temperature
3
+ language: en
4
+ entries:
5
+ - pattern: "°C"
6
+ weight: 1
7
+ - pattern: "℃"
8
+ weight: 1
9
+ - pattern: "degrees Celsius"
10
+ weight: 1
11
+ - pattern: "degrees C"
12
+ weight: 1
13
+ - pattern: "°F"
14
+ weight: 0.5555555555555556
15
+ - pattern: "℉"
16
+ weight: 0.5555555555555556
17
+ - pattern: "degrees Fahrenheit"
18
+ weight: 0.5555555555555556
19
+ - pattern: "degrees F"
20
+ weight: 0.5555555555555556
@@ -10,6 +10,10 @@ entries:
10
10
  weight: 0.001
11
11
  - pattern: "ml"
12
12
  weight: 0.001
13
+ - pattern: "m³"
14
+ weight: 1000
15
+ - pattern: "㎥"
16
+ weight: 1000
13
17
  - pattern: "liters"
14
18
  weight: 1
15
19
  - pattern: "litres"
@@ -24,3 +28,36 @@ entries:
24
28
  weight: 1
25
29
  - pattern: "gallon"
26
30
  weight: 3.785411784
31
+ # 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.
32
+ - pattern: "tablespoons"
33
+ weight: 0.0147868
34
+ - pattern: "tablespoons"
35
+ weight: 0.015
36
+ - pattern: "tablespoon"
37
+ weight: 0.0147868
38
+ - pattern: "tablespoon"
39
+ weight: 0.015
40
+ - pattern: "tbsp"
41
+ weight: 0.0147868
42
+ - pattern: "tbsp"
43
+ weight: 0.015
44
+ - pattern: "teaspoons"
45
+ weight: 0.00492892
46
+ - pattern: "teaspoons"
47
+ weight: 0.005
48
+ - pattern: "teaspoon"
49
+ weight: 0.00492892
50
+ - pattern: "teaspoon"
51
+ weight: 0.005
52
+ - pattern: "tsp"
53
+ weight: 0.00492892
54
+ - pattern: "tsp"
55
+ weight: 0.005
56
+ - pattern: "cups"
57
+ weight: 0.24
58
+ - pattern: "cups"
59
+ weight: 0.25
60
+ - pattern: "cup"
61
+ weight: 0.24
62
+ - pattern: "cup"
63
+ 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,11 @@
1
+ # The words that make an amount the amount of one use (product-exceeds-maximum), written right after it ("2 tablets at
2
+ # a time", "500 yen per use").
3
+ id: use-amount-word
4
+ language: en
5
+ entries:
6
+ - { pattern: "at a time", position: after }
7
+ - { pattern: "per dose", position: after }
8
+ - { pattern: "a dose", position: after }
9
+ - { pattern: "each time", position: after }
10
+ - { pattern: "per use", position: after }
11
+ - { pattern: "per serving", position: after }