@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,26 @@
1
+ # Labels a person's name is written after, at the start of a line ("Customer: Ellen Marsh", "Signed by: Tom Green"). name-variant
2
+ # reads the last of the one to three capitalised words after the colon as a surname the document uses for a person, so a
3
+ # surname that is also an ordinary word (Marsh, Green) is still compared. When a name is written once in such a field and once
4
+ # elsewhere with a slip (Contractor: Priya Raman, then "by Priya Rahman"), name-variant takes the field's spelling as the right
5
+ # one. The label is matched whole, ignoring case ("Company name" is not "Name"). Only labels a person's name follows belong
6
+ # here, not "Location" or "Company".
7
+ id: person-label
8
+ language: en
9
+ entries:
10
+ - pattern: Name
11
+ - pattern: Full name
12
+ - pattern: Customer
13
+ - pattern: Client
14
+ - pattern: Patient
15
+ - pattern: Patient name
16
+ - pattern: Applicant
17
+ - pattern: Tenant
18
+ - pattern: Attendee
19
+ - pattern: Guest
20
+ - pattern: Student
21
+ - pattern: Employee
22
+ - pattern: Contractor
23
+ - pattern: Approver
24
+ - pattern: Signed by
25
+ - pattern: Prepared by
26
+ - pattern: Contact person
@@ -13,3 +13,13 @@ entries:
13
13
  - { pattern: cell, group: mobile }
14
14
  - { pattern: cell phone, group: mobile }
15
15
  - { pattern: mobile phone, group: mobile }
16
+ # A desk's name says where a number goes, not what it is, so its group is desk: the number is of the kind the label right
17
+ # before the desk's name gives (a fax line's number is a fax number), and a phone number when there is none.
18
+ - { pattern: line, group: desk }
19
+ - { pattern: hotline, group: desk }
20
+ - { pattern: helpline, group: desk }
21
+ - { pattern: desk, group: desk }
22
+ - { pattern: center, group: desk }
23
+ - { pattern: centre, group: desk }
24
+ - { pattern: care, group: desk }
25
+ - { pattern: support, group: desk }
@@ -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
@@ -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 }
@@ -1,5 +1,5 @@
1
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". Matched as whole words.
2
+ # (quantity-range-reversed): "-10 to 40 °C"; and two serial codes (serial-range-reversed). Matched as whole words.
3
3
  id: quantity-range-word
4
4
  language: en
5
5
  entries:
@@ -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
@@ -0,0 +1,29 @@
1
+ # A period written with a start word and an end word in one sentence: "The term starts on 1 April 2026 and ends on
2
+ # 31 March 2027" (date-range-reversed). group start goes right before the first date, group end right before the second,
3
+ # and only a group joint word stands between them besides the end word. A sentence with two start words or two end words
4
+ # is not read: which date belongs to which period is not certain ("Phase 1 starts on … and Phase 2 starts on …").
5
+ id: range-start-end
6
+ language: en
7
+ entries:
8
+ - { pattern: starts on, group: start }
9
+ - { pattern: start on, group: start }
10
+ - { pattern: starting on, group: start }
11
+ - { pattern: begins on, group: start }
12
+ - { pattern: begin on, group: start }
13
+ - { pattern: beginning on, group: start }
14
+ - { pattern: commences on, group: start }
15
+ - { pattern: commence on, group: start }
16
+ - { pattern: commencing on, group: start }
17
+ - { pattern: ends on, group: end }
18
+ - { pattern: end on, group: end }
19
+ - { pattern: ending on, group: end }
20
+ - { pattern: expires on, group: end }
21
+ - { pattern: expire on, group: end }
22
+ - { pattern: expiring on, group: end }
23
+ - { pattern: terminates on, group: end }
24
+ - { pattern: terminate on, group: end }
25
+ - { pattern: terminating on, group: end }
26
+ - { pattern: and, group: joint }
27
+ - { pattern: ", and", group: joint }
28
+ - { pattern: and shall, group: joint }
29
+ - { pattern: and will, group: joint }
@@ -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 }
@@ -0,0 +1,29 @@
1
+ # Words for a period that is compared with. A period name in a sentence, a table heading cell or a section with one of
2
+ # these may differ from the document's period ("compared with Q2 FY2025", "prior year", "carried
3
+ # forward from tax year 2025 or earlier").
4
+ id: reporting-comparison
5
+ language: en
6
+ entries:
7
+ - pattern: prior
8
+ - pattern: previous
9
+ - pattern: preceding
10
+ - pattern: last year
11
+ - pattern: year earlier
12
+ - pattern: year ago
13
+ - pattern: year-ago
14
+ - pattern: year-on-year
15
+ - pattern: compared with
16
+ - pattern: compared to
17
+ - pattern: versus
18
+ - pattern: vs
19
+ - pattern: against
20
+ - pattern: same period
21
+ - pattern: same quarter
22
+ - pattern: restated
23
+ - pattern: or earlier
24
+ - pattern: or later
25
+ - pattern: earlier years
26
+ - pattern: carryforward
27
+ - pattern: carry forward
28
+ - pattern: carried forward
29
+ - pattern: carryover
@@ -0,0 +1,14 @@
1
+ # Words that point at the current period ("this quarter", "the quarter under review"). A sentence with one of these or
2
+ # a results word is read as about the current period. A quarter or half before the document's period (Q1 inside a
3
+ # six-month report) is read only with one of these.
4
+ id: reporting-current
5
+ language: en
6
+ entries:
7
+ - pattern: this quarter
8
+ - pattern: this fiscal year
9
+ - pattern: this year
10
+ - pattern: current period
11
+ - pattern: current quarter
12
+ - pattern: current fiscal year
13
+ - pattern: current year
14
+ - pattern: under review
@@ -0,0 +1,25 @@
1
+ # Words for a later period's outlook. A period name in a sentence, a table heading cell or a section with one of these
2
+ # may differ from the document's period ("full-year forecast", "Outlook", "next fiscal year").
3
+ id: reporting-forecast
4
+ language: en
5
+ entries:
6
+ - pattern: forecast
7
+ - pattern: forecasts
8
+ - pattern: outlook
9
+ - pattern: guidance
10
+ - pattern: expect
11
+ - pattern: expects
12
+ - pattern: expected
13
+ - pattern: projected
14
+ - pattern: projection
15
+ - pattern: plan
16
+ - pattern: plans
17
+ - pattern: target
18
+ - pattern: targets
19
+ - pattern: will
20
+ - pattern: next fiscal
21
+ - pattern: next year
22
+ - pattern: next quarter
23
+ - pattern: upcoming
24
+ - pattern: estimate
25
+ - pattern: estimated
@@ -0,0 +1,27 @@
1
+ # How a results release names its period (Q2, Second Quarter, FY2026, Fiscal Year Ending March 31, 2027). The group is
2
+ # the kind of period; period-label-conflict compares names of one kind only. {n} is a quarter's or a half's number, {y}
3
+ # a year, {e} the year a period ends in, and {_} a few words that are not part of the value (the month and day of a year
4
+ # end). Whether FY2026 starts or ends in 2026 differs by company, so a {y} name and an {e} name are never compared. A
5
+ # form without a number ("second quarter") names the numbered form of the same period in instead_of. Kinds without a
6
+ # year (quarter, half) are read as parts of a year. Case does not matter.
7
+ id: reporting-period-frame
8
+ language: en
9
+ entries:
10
+ - { pattern: "Q{n}", group: quarter }
11
+ - { pattern: "{n}Q", group: quarter }
12
+ - { pattern: "first quarter", group: quarter, instead_of: "Q1" }
13
+ - { pattern: "second quarter", group: quarter, instead_of: "Q2" }
14
+ - { pattern: "third quarter", group: quarter, instead_of: "Q3" }
15
+ - { pattern: "fourth quarter", group: quarter, instead_of: "Q4" }
16
+ - { pattern: "H{n}", group: half }
17
+ - { pattern: "{n}H", group: half }
18
+ - { pattern: "first half", group: half, instead_of: "H1" }
19
+ - { pattern: "second half", group: half, instead_of: "H2" }
20
+ - { pattern: "FY{y}", group: fiscal-year }
21
+ - { pattern: "FY {y}", group: fiscal-year }
22
+ - { pattern: "fiscal {y}", group: fiscal-year }
23
+ - { pattern: "fiscal year {y}", group: fiscal-year }
24
+ - { pattern: "fiscal year ending {_} {e}", group: fiscal-year }
25
+ - { pattern: "fiscal year ended {_} {e}", group: fiscal-year }
26
+ - { pattern: "year ending {_} {e}", group: fiscal-year }
27
+ - { pattern: "year ended {_} {e}", group: fiscal-year }
@@ -0,0 +1,11 @@
1
+ # Words that open the line in a results release's head that states the period it reports ("Reporting period: April 1,
2
+ # 2026 to September 30, 2026 (Q2, six months)"). period-label-conflict takes a kind of period the title does not name
3
+ # from this line.
4
+ id: reporting-period-line
5
+ language: en
6
+ entries:
7
+ - pattern: Reporting period
8
+ - pattern: Period covered
9
+ - pattern: Fiscal period
10
+ - pattern: Accounting period
11
+ - pattern: Period