@chaffjs/lang-en 0.28.0 → 0.30.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 (183) 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/lexicons.d.ts.map +1 -1
  10. package/dist/lexicons.js +3 -0
  11. package/dist/lexicons.js.map +1 -1
  12. package/dist/pos.d.ts.map +1 -1
  13. package/dist/pos.js +21 -5
  14. package/dist/pos.js.map +1 -1
  15. package/dist/proper-noun.d.ts +11 -0
  16. package/dist/proper-noun.d.ts.map +1 -1
  17. package/dist/proper-noun.js +31 -0
  18. package/dist/proper-noun.js.map +1 -1
  19. package/dist/structure.d.ts.map +1 -1
  20. package/dist/structure.js +26 -14
  21. package/dist/structure.js.map +1 -1
  22. package/dist/unit-case.d.ts +4 -0
  23. package/dist/unit-case.d.ts.map +1 -0
  24. package/dist/unit-case.js +11 -0
  25. package/dist/unit-case.js.map +1 -0
  26. package/dist/wink-modules.d.ts +5 -0
  27. package/dist/wink-modules.d.ts.map +1 -1
  28. package/dist/wink-modules.js +5 -0
  29. package/dist/wink-modules.js.map +1 -1
  30. package/lexicons/age-reference-label.yaml +11 -0
  31. package/lexicons/age-time-mark.yaml +8 -0
  32. package/lexicons/annual-holidays-label.yaml +19 -0
  33. package/lexicons/annual-holidays-word.yaml +28 -0
  34. package/lexicons/annual-pay-label.yaml +24 -0
  35. package/lexicons/annual-pay-word.yaml +52 -0
  36. package/lexicons/any-year-marker.yaml +21 -0
  37. package/lexicons/balance-column.yaml +27 -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/change-column.yaml +28 -0
  43. package/lexicons/closing-balance-label.yaml +35 -0
  44. package/lexicons/cumulative-table.yaml +35 -0
  45. package/lexicons/currency-column.yaml +13 -0
  46. package/lexicons/date-deadline-mark.yaml +11 -0
  47. package/lexicons/dated-column-label.yaml +17 -0
  48. package/lexicons/dated-pair-label.yaml +210 -0
  49. package/lexicons/dated-span-label.yaml +12 -0
  50. package/lexicons/deductible-basis.yaml +26 -0
  51. package/lexicons/deductible-word.yaml +11 -0
  52. package/lexicons/discount-rate-label.yaml +35 -0
  53. package/lexicons/email-sentence-end.yaml +8 -0
  54. package/lexicons/event-bill-word.yaml +9 -0
  55. package/lexicons/event-due-word.yaml +7 -0
  56. package/lexicons/event-payment-deadline-word.yaml +12 -0
  57. package/lexicons/event-payment-word.yaml +7 -0
  58. package/lexicons/event-start-label.yaml +10 -0
  59. package/lexicons/event-ticket-word.yaml +8 -0
  60. package/lexicons/event-trip-word.yaml +13 -0
  61. package/lexicons/fact-age-joiner.yaml +8 -0
  62. package/lexicons/fact-age-limit.yaml +9 -0
  63. package/lexicons/fact-age-mark.yaml +13 -0
  64. package/lexicons/fact-amount-condition.yaml +15 -0
  65. package/lexicons/fact-count-column.yaml +10 -0
  66. package/lexicons/fact-count-counter.yaml +11 -0
  67. package/lexicons/fact-count-not-whole.yaml +19 -0
  68. package/lexicons/fact-count-restating.yaml +8 -0
  69. package/lexicons/fact-count-separate-rows.yaml +7 -0
  70. package/lexicons/fact-count-whole.yaml +11 -0
  71. package/lexicons/fact-document-term.yaml +39 -0
  72. package/lexicons/fact-label-qualifier.yaml +10 -0
  73. package/lexicons/fact-quantity-period.yaml +7 -0
  74. package/lexicons/fact-quantity-self.yaml +9 -0
  75. package/lexicons/fact-quantity-verb.yaml +8 -0
  76. package/lexicons/fact-rate-base.yaml +15 -0
  77. package/lexicons/fact-rate-joiner.yaml +16 -0
  78. package/lexicons/fact-rate-kind.yaml +9 -0
  79. package/lexicons/fact-rate-period.yaml +14 -0
  80. package/lexicons/fact-reading-clause.yaml +10 -0
  81. package/lexicons/fact-reading-gauge.yaml +13 -0
  82. package/lexicons/fact-reading-verb.yaml +9 -0
  83. package/lexicons/fact-term-self.yaml +12 -0
  84. package/lexicons/fact-term-start.yaml +7 -0
  85. package/lexicons/fact-term-verb.yaml +9 -0
  86. package/lexicons/formula-amount-word.yaml +13 -0
  87. package/lexicons/gpa-label.yaml +19 -0
  88. package/lexicons/grade-point.yaml +40 -0
  89. package/lexicons/heading-number-label.yaml +2 -6
  90. package/lexicons/installment-label.yaml +47 -0
  91. package/lexicons/installment-word.yaml +70 -0
  92. package/lexicons/interest-label.yaml +33 -0
  93. package/lexicons/item-name-column.yaml +10 -0
  94. package/lexicons/lab-result-column.yaml +23 -0
  95. package/lexicons/label-product-word.yaml +36 -0
  96. package/lexicons/line-amount-column.yaml +4 -0
  97. package/lexicons/meter-event.yaml +22 -0
  98. package/lexicons/meter-reading-label.yaml +26 -0
  99. package/lexicons/meter-unit.yaml +16 -0
  100. package/lexicons/net-amount-label.yaml +66 -0
  101. package/lexicons/net-amount-period.yaml +19 -0
  102. package/lexicons/net-gross-weight-column.yaml +23 -0
  103. package/lexicons/number-name-word.yaml +49 -0
  104. package/lexicons/order-quantity-column.yaml +33 -0
  105. package/lexicons/overnight-work-mark.yaml +13 -0
  106. package/lexicons/pack-count-column.yaml +13 -0
  107. package/lexicons/pack-price-column.yaml +12 -0
  108. package/lexicons/per-unit-mark.yaml +6 -0
  109. package/lexicons/period-label.yaml +7 -0
  110. package/lexicons/period-multiple-label.yaml +16 -0
  111. package/lexicons/period-multiple-word.yaml +28 -0
  112. package/lexicons/period-part-after.yaml +11 -0
  113. package/lexicons/period-part-length-verb.yaml +9 -0
  114. package/lexicons/period-part-marker.yaml +11 -0
  115. package/lexicons/period-part-range.yaml +9 -0
  116. package/lexicons/period-part-unnamed.yaml +16 -0
  117. package/lexicons/period-part-word.yaml +7 -0
  118. package/lexicons/person-label.yaml +26 -0
  119. package/lexicons/phone-label.yaml +10 -0
  120. package/lexicons/points-earned-column.yaml +18 -0
  121. package/lexicons/points-rate-joiner.yaml +8 -0
  122. package/lexicons/points-unit.yaml +10 -0
  123. package/lexicons/quantity-column.yaml +27 -0
  124. package/lexicons/quantity-range-word.yaml +1 -1
  125. package/lexicons/range-label.yaml +10 -0
  126. package/lexicons/range-start-end.yaml +29 -0
  127. package/lexicons/rate-unit.yaml +19 -0
  128. package/lexicons/ratio-label.yaml +14 -0
  129. package/lexicons/ratio-term.yaml +18 -0
  130. package/lexicons/reference-bound-mark.yaml +12 -0
  131. package/lexicons/reference-column-heading.yaml +10 -0
  132. package/lexicons/reference-column.yaml +18 -0
  133. package/lexicons/reference-flag.yaml +20 -0
  134. package/lexicons/reference-label.yaml +151 -0
  135. package/lexicons/reference-unit-column.yaml +8 -0
  136. package/lexicons/reference-unit.yaml +81 -0
  137. package/lexicons/reporting-comparison.yaml +29 -0
  138. package/lexicons/reporting-current.yaml +14 -0
  139. package/lexicons/reporting-forecast.yaml +25 -0
  140. package/lexicons/reporting-period-frame.yaml +27 -0
  141. package/lexicons/reporting-period-line.yaml +11 -0
  142. package/lexicons/reporting-results-word.yaml +9 -0
  143. package/lexicons/reporting-year-frame.yaml +10 -0
  144. package/lexicons/request-offer.yaml +12 -0
  145. package/lexicons/revision-column.yaml +17 -0
  146. package/lexicons/revision-direction.yaml +29 -0
  147. package/lexicons/serial-label.yaml +13 -0
  148. package/lexicons/service-charge-label.yaml +6 -0
  149. package/lexicons/share-amount-label.yaml +20 -0
  150. package/lexicons/share-column-rate-header.yaml +21 -0
  151. package/lexicons/shift-column.yaml +23 -0
  152. package/lexicons/summed-counter.yaml +45 -0
  153. package/lexicons/table-scale-unit.yaml +17 -0
  154. package/lexicons/table-unit-caption.yaml +7 -0
  155. package/lexicons/tax-price-column.yaml +28 -0
  156. package/lexicons/tier-label.yaml +31 -0
  157. package/lexicons/tier-unit.yaml +9 -0
  158. package/lexicons/timed-pair-label.yaml +54 -0
  159. package/lexicons/total-label-qualifier.yaml +12 -5
  160. package/lexicons/total-label.yaml +4 -2
  161. package/lexicons/total-noun-listed.yaml +9 -0
  162. package/lexicons/total-noun-qualifier.yaml +10 -0
  163. package/lexicons/total-noun-unsummed.yaml +9 -0
  164. package/lexicons/total-period-qualifier.yaml +17 -0
  165. package/lexicons/transcript-column.yaml +23 -0
  166. package/lexicons/unit-area.yaml +10 -0
  167. package/lexicons/unit-concentration.yaml +71 -0
  168. package/lexicons/unit-price-column.yaml +33 -0
  169. package/lexicons/unit-volume.yaml +4 -0
  170. package/lexicons/use-amount-word.yaml +11 -0
  171. package/lexicons/variance-column.yaml +22 -0
  172. package/lexicons/weekly-days-off.yaml +23 -0
  173. package/lexicons/year-span-joiner.yaml +12 -0
  174. package/package.json +2 -2
  175. package/src/browser/wink-modules.ts +6 -2
  176. package/src/browser/wink.d.ts +11 -1
  177. package/src/currency-amounts.ts +51 -0
  178. package/src/lexicons.ts +4 -0
  179. package/src/pos.ts +27 -5
  180. package/src/proper-noun.ts +45 -0
  181. package/src/structure.ts +33 -15
  182. package/src/unit-case.ts +14 -0
  183. package/src/wink-modules.ts +6 -0
@@ -0,0 +1,9 @@
1
+ # Words for a period's results. period-label-conflict reads a document as a results release only when its title has one
2
+ # of these and a period name; a sentence with one is read as about the current period's results.
3
+ id: reporting-results-word
4
+ language: en
5
+ entries:
6
+ - pattern: results
7
+ - pattern: earnings
8
+ - pattern: financial statements
9
+ - pattern: financial report
@@ -0,0 +1,10 @@
1
+ # Names that say by themselves which year a document covers (Tax Year 2026, the 2026 tax year). The group is the kind
2
+ # of year. period-label-conflict reads such a name in a title even without a results word, and reports a year of the
3
+ # same kind that differs in the body (tax year 2025). A year without the marker ("compared with 2025", "in 2025") or
4
+ # with another one is not compared. "For the year 2026" is left out: annual reports use it for any year, often a prior one.
5
+ # {y} is a year. Case does not matter.
6
+ id: reporting-year-frame
7
+ language: en
8
+ entries:
9
+ - { pattern: "tax year {y}", group: tax-year }
10
+ - { pattern: "{y} tax year", group: tax-year }
@@ -0,0 +1,12 @@
1
+ # The reader's own questions, taken as an open offer ("Please send any questions to me"): nothing is due. "any comments"
2
+ # and "any feedback" are left out: "Please send any feedback from beta users" is a task.
3
+ id: request-offer
4
+ language: en
5
+ entries:
6
+ - pattern: any questions
7
+ - pattern: any question
8
+ - pattern: your questions
9
+ - pattern: any queries
10
+ - pattern: any concerns
11
+ - pattern: any inquiries
12
+ - pattern: any enquiries
@@ -0,0 +1,17 @@
1
+ # Labels of the columns (or rows) of a forecast revision table (revision-direction-mismatch). group is previous (before
2
+ # the revision) or revised (after it). A label holding the words matches; one holding words of both groups is not used.
3
+ id: revision-column
4
+ language: en
5
+ entries:
6
+ - { pattern: previous forecast, group: previous }
7
+ - { pattern: prior forecast, group: previous }
8
+ - { pattern: original forecast, group: previous }
9
+ - { pattern: previous estimate, group: previous }
10
+ - { pattern: previously announced, group: previous }
11
+ - { pattern: before revision, group: previous }
12
+ - { pattern: revised forecast, group: revised }
13
+ - { pattern: revised estimate, group: revised }
14
+ - { pattern: new forecast, group: revised }
15
+ - { pattern: current forecast, group: revised }
16
+ - { pattern: after revision, group: revised }
17
+ - { pattern: revised, group: revised }
@@ -0,0 +1,29 @@
1
+ # Words that say which way a forecast was revised (revision-direction-mismatch). group is the direction: rise or fall.
2
+ # Matched as whole words in the section that holds a table of the previous and the revised forecast. rise-verb and
3
+ # fall-verb are read only with a word of the group forecast in their sentence ("raised funds" revises nothing).
4
+ id: revision-direction
5
+ language: en
6
+ entries:
7
+ - { pattern: revised upward, group: rise }
8
+ - { pattern: revising upward, group: rise }
9
+ - { pattern: revise upward, group: rise }
10
+ - { pattern: revised up, group: rise }
11
+ - { pattern: upward revision, group: rise }
12
+ - { pattern: raised, group: rise-verb }
13
+ - { pattern: raising, group: rise-verb }
14
+ - { pattern: revised downward, group: fall }
15
+ - { pattern: revising downward, group: fall }
16
+ - { pattern: revise downward, group: fall }
17
+ - { pattern: revised down, group: fall }
18
+ - { pattern: downward revision, group: fall }
19
+ - { pattern: lowered, group: fall-verb }
20
+ - { pattern: lowering, group: fall-verb }
21
+ - { pattern: cut, group: fall-verb }
22
+ - { pattern: forecast, group: forecast }
23
+ - { pattern: forecasts, group: forecast }
24
+ - { pattern: guidance, group: forecast }
25
+ - { pattern: outlook, group: forecast }
26
+ - { pattern: projection, group: forecast }
27
+ - { pattern: projections, group: forecast }
28
+ - { pattern: estimate, group: forecast }
29
+ - { pattern: estimates, group: forecast }
@@ -0,0 +1,13 @@
1
+ # Words that, earlier on the line, make two letter-and-digit codes a range of serial or lot numbers (serial-range-reversed):
2
+ # "Serial numbers: B3900 to B3100". A line without one is not read: part numbers in a parts list (A-100 to A-099) may be an
3
+ # order, not a range. Matched as whole words, without regard to case.
4
+ id: serial-label
5
+ language: en
6
+ entries:
7
+ - pattern: serial
8
+ - pattern: serials
9
+ - pattern: S/N
10
+ - pattern: lot
11
+ - pattern: lots
12
+ - pattern: batch
13
+ - pattern: batches
@@ -0,0 +1,6 @@
1
+ # Words that mark a charge at a rate. A list or table line starting with one and giving a rate (20%) is compared with that rate of the subtotal above it; a tax line below it may be on the subtotal with the charge added (tax-mismatch).
2
+ id: service-charge-label
3
+ language: en
4
+ entries:
5
+ - pattern: Service charge
6
+ - pattern: Gratuity
@@ -0,0 +1,20 @@
1
+ # Words that check what a patient pays against the stated share (30%) of the total on a medical bill or receipt
2
+ # (share-amount-mismatch). group: base is the total the share is of; share is a word of the patient's share (a rate when
3
+ # its cell or value is a rate, the amount paid when it is money); paid names only the amount paid, and is read as the share
4
+ # only beside a share rate on the same row. A Latin word stands as a whole word. group: rounding is the step (weight) an
5
+ # amount in that unit may be rounded to: a Japanese patient's share is rounded to 10 yen.
6
+ id: share-amount-label
7
+ language: en
8
+ entries:
9
+ - { pattern: total charges, group: base }
10
+ - { pattern: total billed, group: base }
11
+ - { pattern: total, group: base }
12
+ - { pattern: patient share, group: share }
13
+ - { pattern: your share, group: share }
14
+ - { pattern: coinsurance, group: share }
15
+ - { pattern: co-insurance, group: share }
16
+ - { pattern: patient responsibility, group: share }
17
+ - { pattern: amount paid, group: paid }
18
+ - { pattern: amount due, group: paid }
19
+ - { pattern: you pay, group: paid }
20
+ - { pattern: ¥, group: rounding, weight: 10 }
@@ -0,0 +1,21 @@
1
+ # Words that, in a column's own header cell, name a rate applied to each row: the column is not added even when the
2
+ # sentence or heading above names a breakdown. The share-column-rate words count here too. Not used on the text above
3
+ # a table or on its rows, where they can name a part ("Discounts" can be a row of a cost breakdown).
4
+ id: share-column-rate-header
5
+ language: en
6
+ entries:
7
+ - pattern: discount
8
+ - pattern: discounts
9
+ - pattern: markup
10
+ - pattern: margin
11
+ - pattern: commission
12
+ - pattern: cashback
13
+ - pattern: rebate
14
+ - pattern: apr
15
+ - pattern: apy
16
+ - pattern: churn
17
+ - pattern: utilization
18
+ - pattern: utilisation
19
+ - pattern: occupancy
20
+ - pattern: uptime
21
+ - pattern: accuracy
@@ -0,0 +1,23 @@
1
+ # The headings of a timesheet's columns (time-range-reversed). A column whose heading, without a note in brackets after it,
2
+ # is one of these is read as the start, end, hours worked or break column. Only a table with both a start and an end
3
+ # column is read. Matched case aside.
4
+ id: shift-column
5
+ language: en
6
+ entries:
7
+ - { pattern: "Start", group: start }
8
+ - { pattern: "Start time", group: start }
9
+ - { pattern: "Time in", group: start }
10
+ - { pattern: "Clock in", group: start }
11
+ - { pattern: "Clock-in", group: start }
12
+ - { pattern: "End", group: end }
13
+ - { pattern: "End time", group: end }
14
+ - { pattern: "Time out", group: end }
15
+ - { pattern: "Clock out", group: end }
16
+ - { pattern: "Clock-out", group: end }
17
+ - { pattern: "Hours", group: hours }
18
+ - { pattern: "Hours worked", group: hours }
19
+ - { pattern: "Total hours", group: hours }
20
+ - { pattern: "Worked", group: hours }
21
+ - { pattern: "Break", group: break }
22
+ - { pattern: "Lunch", group: break }
23
+ - { pattern: "Meal break", group: break }
@@ -15,3 +15,48 @@ entries:
15
15
  group: session
16
16
  - pattern: session
17
17
  group: session
18
+ - pattern: packs
19
+ group: pack
20
+ - pattern: pack
21
+ group: pack
22
+ - pattern: cartons
23
+ group: carton
24
+ - pattern: carton
25
+ group: carton
26
+ - pattern: bottles
27
+ group: bottle
28
+ - pattern: bottle
29
+ group: bottle
30
+ - pattern: boxes
31
+ group: box
32
+ - pattern: box
33
+ group: box
34
+ - pattern: bags
35
+ group: bag
36
+ - pattern: bag
37
+ group: bag
38
+ # Left out: "can" ("3 can be returned"), "set" ("2 set values"), and "cases" (instances that may overlap, not containers).
39
+ - pattern: cans
40
+ group: can
41
+ - pattern: jars
42
+ group: jar
43
+ - pattern: jar
44
+ group: jar
45
+ - pattern: pieces
46
+ group: piece
47
+ - pattern: piece
48
+ group: piece
49
+ - pattern: items
50
+ group: item
51
+ - pattern: item
52
+ group: item
53
+ - pattern: sets
54
+ group: set
55
+ - pattern: pairs
56
+ group: pair
57
+ - pattern: pair
58
+ group: pair
59
+ - pattern: tablets
60
+ group: tablet
61
+ - pattern: tablet
62
+ group: tablet
@@ -0,0 +1,17 @@
1
+ # Words of scale written in a table's cells or in its caption of unit ("$110 million", "(In millions of US dollars)")
2
+ # (table-unit-mix). weight is the number the word multiplies by. Matched as whole words, so million is not read in millions.
3
+ id: table-scale-unit
4
+ language: en
5
+ entries:
6
+ - pattern: thousand
7
+ weight: 1000
8
+ - pattern: thousands
9
+ weight: 1000
10
+ - pattern: million
11
+ weight: 1000000
12
+ - pattern: millions
13
+ weight: 1000000
14
+ - pattern: billion
15
+ weight: 1000000000
16
+ - pattern: billions
17
+ weight: 1000000000
@@ -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 }
@@ -1,5 +1,5 @@
1
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", "Total due", "Total monthly cost". position: before or after the total word only;
2
+ # "Total per month", "Monthly total", "Week total", "Total due", "Total monthly cost". position: before or after the total word only;
3
3
  # without it, either side. A note in parentheses ("Total (incl. tax)") is always allowed. A label with any other word
4
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
5
  # lines above it.
@@ -18,10 +18,10 @@ entries:
18
18
  - { pattern: a, position: after }
19
19
  - { pattern: each, position: after }
20
20
  - { pattern: every, position: after }
21
- - { pattern: day, position: after }
22
- - { pattern: week, position: after }
23
- - { pattern: month, position: after }
24
- - { pattern: quarter, position: after }
21
+ - { pattern: day }
22
+ - { pattern: week }
23
+ - { pattern: month }
24
+ - { pattern: quarter }
25
25
  - { pattern: year, position: after }
26
26
  - { pattern: annually, position: after }
27
27
  - { pattern: due, position: after }
@@ -31,3 +31,10 @@ entries:
31
31
  - { pattern: costs, position: after }
32
32
  - { pattern: price, position: after }
33
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 }
@@ -4,12 +4,20 @@ language: en
4
4
  entries:
5
5
  - pattern: "m²"
6
6
  weight: 1
7
+ - pattern: "m2"
8
+ weight: 1
9
+ - pattern: "m^2"
10
+ weight: 1
7
11
  - pattern: "㎡"
8
12
  weight: 1
9
13
  - pattern: "sq m"
10
14
  weight: 1
11
15
  - pattern: "sqm"
12
16
  weight: 1
17
+ - pattern: "sq.m."
18
+ weight: 1
19
+ - pattern: "sq. m."
20
+ weight: 1
13
21
  - pattern: "square meters"
14
22
  weight: 1
15
23
  - pattern: "square metres"
@@ -20,6 +28,8 @@ entries:
20
28
  weight: 1
21
29
  - pattern: "km²"
22
30
  weight: 1000000
31
+ - pattern: "km2"
32
+ weight: 1000000
23
33
  - pattern: "sq km"
24
34
  weight: 1000000
25
35
  - pattern: "square kilometers"
@@ -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 }
@@ -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 }