@chaffjs/lang-en 0.27.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/lexicons/address-label.yaml +15 -0
  2. package/lexicons/battery-label.yaml +50 -0
  3. package/lexicons/battery-unit.yaml +18 -0
  4. package/lexicons/capacity-exception.yaml +28 -0
  5. package/lexicons/capacity-label.yaml +10 -0
  6. package/lexicons/contact-label.yaml +11 -0
  7. package/lexicons/count-frame.yaml +9 -0
  8. package/lexicons/count-hedge.yaml +11 -1
  9. package/lexicons/date-now-word.yaml +7 -0
  10. package/lexicons/dated-pair-label.yaml +14 -0
  11. package/lexicons/event-aside.yaml +15 -0
  12. package/lexicons/event-date-label.yaml +12 -0
  13. package/lexicons/event-deadline-word.yaml +11 -0
  14. package/lexicons/event-registration-word.yaml +18 -0
  15. package/lexicons/headcount-label.yaml +21 -0
  16. package/lexicons/headcount-unit.yaml +22 -0
  17. package/lexicons/item-amount.yaml +34 -0
  18. package/lexicons/item-at-hand.yaml +15 -0
  19. package/lexicons/item-list-heading.yaml +21 -0
  20. package/lexicons/item-use.yaml +74 -0
  21. package/lexicons/layout-code.yaml +13 -0
  22. package/lexicons/layout-label.yaml +14 -0
  23. package/lexicons/layout-room.yaml +16 -0
  24. package/lexicons/measure-per-mark.yaml +8 -0
  25. package/lexicons/measure-value-lead.yaml +8 -0
  26. package/lexicons/model-code-label.yaml +17 -0
  27. package/lexicons/period-after-term.yaml +25 -0
  28. package/lexicons/period-deadline.yaml +10 -2
  29. package/lexicons/phone-label.yaml +1 -0
  30. package/lexicons/place-word.yaml +7 -1
  31. package/lexicons/quantity-bound-label.yaml +13 -0
  32. package/lexicons/quantity-change-word.yaml +47 -0
  33. package/lexicons/quantity-range-word.yaml +6 -0
  34. package/lexicons/range-band-heading.yaml +16 -0
  35. package/lexicons/range-band-unit.yaml +34 -0
  36. package/lexicons/range-band-word.yaml +49 -0
  37. package/lexicons/rent-label.yaml +14 -0
  38. package/lexicons/rent-multiple-label.yaml +11 -0
  39. package/lexicons/rent-multiple-word.yaml +44 -0
  40. package/lexicons/retention-bound.yaml +25 -0
  41. package/lexicons/retention-length-mark.yaml +7 -0
  42. package/lexicons/retention-length-modifier.yaml +6 -0
  43. package/lexicons/retention-object-mark.yaml +5 -0
  44. package/lexicons/retention-unit.yaml +5 -0
  45. package/lexicons/retention-verb.yaml +12 -0
  46. package/lexicons/scaled-unit-form.yaml +59 -0
  47. package/lexicons/servings-column.yaml +26 -0
  48. package/lexicons/stamp-order-label.yaml +25 -0
  49. package/lexicons/step-time-not-own.yaml +36 -0
  50. package/lexicons/step-time-total.yaml +9 -0
  51. package/lexicons/total-label-qualifier.yaml +33 -0
  52. package/lexicons/unit-area.yaml +48 -0
  53. package/lexicons/unit-context.yaml +36 -0
  54. package/lexicons/unit-equivalent-hedge.yaml +11 -0
  55. package/lexicons/unit-item-link.yaml +5 -0
  56. package/lexicons/unit-length.yaml +3 -0
  57. package/lexicons/unit-pressure.yaml +12 -0
  58. package/lexicons/unit-temperature.yaml +20 -0
  59. package/lexicons/unit-volume.yaml +33 -0
  60. package/lexicons/unit-zero.yaml +12 -0
  61. package/lexicons/unscaled-amount.yaml +12 -0
  62. package/lexicons/use-count-word.yaml +49 -0
  63. package/lexicons/use-interval-word.yaml +21 -0
  64. package/lexicons/walk-rate.yaml +23 -0
  65. package/lexicons/walk-word.yaml +20 -0
  66. package/package.json +1 -1
@@ -0,0 +1,47 @@
1
+ # Words that make two measured quantities in one sentence a change or a descending order, not a range
2
+ # (quantity-range-reversed): "cooled from 40 °C to 10 °C", "from 100 m down to 10 m", "countdown 10 to 0 s".
3
+ # group lead: a word that makes the pair a change only when it stands right before the first quantity
4
+ # ("Builds went from 9 minutes to 2 minutes"). Matched as whole words, without regard to case.
5
+ id: quantity-change-word
6
+ language: en
7
+ entries:
8
+ - { pattern: from, group: lead }
9
+ - pattern: down
10
+ - pattern: reduce
11
+ - pattern: reduced
12
+ - pattern: reduces
13
+ - pattern: reducing
14
+ - pattern: reduction
15
+ - pattern: lowered
16
+ - pattern: lowering
17
+ - pattern: drops
18
+ - pattern: dropped
19
+ - pattern: dropping
20
+ - pattern: falls
21
+ - pattern: fell
22
+ - pattern: falling
23
+ - pattern: decrease
24
+ - pattern: decreased
25
+ - pattern: decreases
26
+ - pattern: decreasing
27
+ - pattern: decline
28
+ - pattern: declined
29
+ - pattern: declines
30
+ - pattern: cool
31
+ - pattern: cooled
32
+ - pattern: cools
33
+ - pattern: cooling
34
+ - pattern: shrink
35
+ - pattern: shrank
36
+ - pattern: shrinks
37
+ - pattern: change
38
+ - pattern: changed
39
+ - pattern: changes
40
+ - pattern: descending
41
+ - pattern: countdown
42
+ - pattern: raise
43
+ - pattern: raised
44
+ - pattern: increase
45
+ - pattern: increased
46
+ - pattern: rose
47
+ - pattern: heated
@@ -0,0 +1,6 @@
1
+ # Words that join two measured quantities into a range on their own, beside range-connector's marks
2
+ # (quantity-range-reversed): "-10 to 40 °C". Matched as whole words.
3
+ id: quantity-range-word
4
+ language: en
5
+ entries:
6
+ - pattern: to
@@ -0,0 +1,16 @@
1
+ # Column headings that say what bare numbers in a band count ("7 to 11", "15 and over") for range-band-mismatch. Group as
2
+ # in range-band-unit. Read when the heading cell is only this word (brackets aside); a heading with a unit in brackets
3
+ # ("Weight (kg)") is read by the unit.
4
+ id: range-band-heading
5
+ language: en
6
+ entries:
7
+ - { pattern: "age", group: integer }
8
+ - { pattern: "ages", group: integer }
9
+ - { pattern: "age group", group: integer }
10
+ - { pattern: "people", group: integer }
11
+ - { pattern: "group size", group: integer }
12
+ - { pattern: "score", group: integer }
13
+ - { pattern: "points", group: integer }
14
+ - { pattern: "weight", group: continuous }
15
+ - { pattern: "body weight", group: continuous }
16
+ - { pattern: "height", group: continuous }
@@ -0,0 +1,34 @@
1
+ # The units a band is counted in (range-band-mismatch). Group integer has no value between two numbers (ages, people,
2
+ # points): 6 to 11 then 12 and over is contiguous, and 7 to 12 then 12 to 14 overlap at 12. Group continuous has values in
3
+ # between (weights, lengths, money, durations): two bands that meet at one number with a range mark ("50-60 kg", "60-70 kg")
4
+ # are contiguous, and so are two a step of the written digits apart (59 kg then 60 kg). Times of day and dates are not units
5
+ # here. A plural is the same unit as its singular. position before is a unit written before the number ($5).
6
+ id: range-band-unit
7
+ language: en
8
+ entries:
9
+ - { pattern: "years", group: integer }
10
+ - { pattern: "years old", group: integer }
11
+ - { pattern: "yrs", group: integer }
12
+ - { pattern: "people", group: integer }
13
+ - { pattern: "persons", group: integer }
14
+ - { pattern: "guests", group: integer }
15
+ - { pattern: "points", group: integer }
16
+ - { pattern: "pts", group: integer }
17
+ - { pattern: "nights", group: integer }
18
+ - { pattern: "kg", group: continuous }
19
+ - { pattern: "g", group: continuous }
20
+ - { pattern: "mg", group: continuous }
21
+ - { pattern: "lb", group: continuous }
22
+ - { pattern: "lbs", group: continuous }
23
+ - { pattern: "oz", group: continuous }
24
+ - { pattern: "cm", group: continuous }
25
+ - { pattern: "mm", group: continuous }
26
+ - { pattern: "km", group: continuous }
27
+ - { pattern: "miles", group: continuous }
28
+ - { pattern: "%", group: continuous }
29
+ - { pattern: "hours", group: continuous }
30
+ - { pattern: "minutes", group: continuous }
31
+ - { pattern: "months", group: continuous }
32
+ - { pattern: "$", group: continuous, position: before }
33
+ - { pattern: "£", group: continuous, position: before }
34
+ - { pattern: "€", group: continuous, position: before }
@@ -0,0 +1,49 @@
1
+ # The words that bound a band of a table column or a list (ages, weights, amounts, scores) for range-band-mismatch. Group
2
+ # connector stands between two numbers ("7 to 11", "between 6 and 11"); after a number alone it leaves the band open above.
3
+ # A connector with position before may also stand before a number alone to close a band above; a hyphen may not ("- 5" is
4
+ # a bullet or a minus), so none here does. lower-inclusive and lower-exclusive bound a band below ("12 and over", "over 12"), upper-inclusive and
5
+ # upper-exclusive above ("6 and under", "under 7"). position says on which side of the number the word is written (after
6
+ # when left out). Group lead is a word a band may open with that says nothing about its ends ("ages 6-11").
7
+ id: range-band-word
8
+ language: en
9
+ entries:
10
+ - { pattern: "to", group: connector }
11
+ - { pattern: "-", group: connector }
12
+ - { pattern: "‐", group: connector }
13
+ - { pattern: "–", group: connector }
14
+ - { pattern: "—", group: connector }
15
+ - { pattern: "through", group: connector }
16
+ - { pattern: "and", group: connector }
17
+ - { pattern: "between", group: lead }
18
+ - { pattern: "from", group: lead }
19
+ - { pattern: "ages", group: lead }
20
+ - { pattern: "age", group: lead }
21
+ - { pattern: "aged", group: lead }
22
+ - { pattern: "and over", group: lower-inclusive }
23
+ - { pattern: "or over", group: lower-inclusive }
24
+ - { pattern: "and older", group: lower-inclusive }
25
+ - { pattern: "or older", group: lower-inclusive }
26
+ - { pattern: "and above", group: lower-inclusive }
27
+ - { pattern: "or above", group: lower-inclusive }
28
+ - { pattern: "or more", group: lower-inclusive }
29
+ - { pattern: "and up", group: lower-inclusive }
30
+ - { pattern: "+", group: lower-inclusive }
31
+ - { pattern: "at least", group: lower-inclusive, position: before }
32
+ - { pattern: "from", group: lower-inclusive, position: before }
33
+ - { pattern: "over", group: lower-exclusive, position: before }
34
+ - { pattern: "above", group: lower-exclusive, position: before }
35
+ - { pattern: "more than", group: lower-exclusive, position: before }
36
+ - { pattern: "older than", group: lower-exclusive, position: before }
37
+ - { pattern: "and under", group: upper-inclusive }
38
+ - { pattern: "or under", group: upper-inclusive }
39
+ - { pattern: "and younger", group: upper-inclusive }
40
+ - { pattern: "or younger", group: upper-inclusive }
41
+ - { pattern: "and below", group: upper-inclusive }
42
+ - { pattern: "or below", group: upper-inclusive }
43
+ - { pattern: "or less", group: upper-inclusive }
44
+ - { pattern: "up to", group: upper-inclusive, position: before }
45
+ - { pattern: "at most", group: upper-inclusive, position: before }
46
+ - { pattern: "under", group: upper-exclusive, position: before }
47
+ - { pattern: "below", group: upper-exclusive, position: before }
48
+ - { pattern: "less than", group: upper-exclusive, position: before }
49
+ - { pattern: "younger than", group: upper-exclusive, position: before }
@@ -0,0 +1,14 @@
1
+ # The labels of a listing's monthly costs (rent-multiple-mismatch). rent is the rent; fee is a monthly charge paid with it.
2
+ # A deposit given in months may be that many months of the rent alone or of the rent and the fee: listings do both and
3
+ # seldom say which, so either is accepted.
4
+ id: rent-label
5
+ language: en
6
+ entries:
7
+ - { pattern: Rent, group: rent }
8
+ - { pattern: Monthly rent, group: rent }
9
+ - { pattern: Rent per month, group: rent }
10
+ - { pattern: Service charge, group: fee }
11
+ - { pattern: Maintenance fee, group: fee }
12
+ - { pattern: Management fee, group: fee }
13
+ - { pattern: Common area fee, group: fee }
14
+ - { pattern: HOA fee, group: fee }
@@ -0,0 +1,11 @@
1
+ # The labels of a move-in cost given in months of rent (rent-multiple-mismatch). When one states both a number of months
2
+ # and an amount ("Deposit: 2 months ($3,200)"), the amount is compared with that many months of the rent.
3
+ id: rent-multiple-label
4
+ language: en
5
+ entries:
6
+ - pattern: Deposit
7
+ - pattern: Security deposit
8
+ - pattern: Damage deposit
9
+ - pattern: Key money
10
+ - pattern: Bond
11
+ - pattern: Renewal fee
@@ -0,0 +1,44 @@
1
+ # The words of rent-multiple-mismatch. month follows a count ("2 months"). link may stand between a label or a months
2
+ # count and its amount ("Rent is $1,600", "2 months' rent, equal to $3,200"). skip says the amount is not the plain
3
+ # multiple (a deposit with tax added), and a statement holding one is not compared. period says an amount is not per month
4
+ # (per week, per year, per sq ft); a rent on a line with one is not read as the monthly rent.
5
+ id: rent-multiple-word
6
+ language: en
7
+ entries:
8
+ - { pattern: month, group: month }
9
+ - { pattern: months, group: month }
10
+ - { pattern: is, group: link }
11
+ - { pattern: was, group: link }
12
+ - { pattern: of, group: link }
13
+ - { pattern: at, group: link }
14
+ - { pattern: equal to, group: link }
15
+ - { pattern: equivalent to, group: link }
16
+ - { pattern: monthly, group: link }
17
+ - { pattern: per month, group: link }
18
+ - { pattern: per week, group: period }
19
+ - { pattern: a week, group: period }
20
+ - { pattern: weekly, group: period }
21
+ - { pattern: pw, group: period }
22
+ - { pattern: p.w., group: period }
23
+ - { pattern: /week, group: period }
24
+ - { pattern: /wk, group: period }
25
+ - { pattern: per year, group: period }
26
+ - { pattern: a year, group: period }
27
+ - { pattern: annual, group: period }
28
+ - { pattern: annually, group: period }
29
+ - { pattern: per annum, group: period }
30
+ - { pattern: p.a., group: period }
31
+ - { pattern: /year, group: period }
32
+ - { pattern: /yr, group: period }
33
+ - { pattern: per night, group: period }
34
+ - { pattern: nightly, group: period }
35
+ - { pattern: per day, group: period }
36
+ - { pattern: daily, group: period }
37
+ - { pattern: per square foot, group: period }
38
+ - { pattern: per sq ft, group: period }
39
+ - { pattern: /sq ft, group: period }
40
+ - { pattern: tax included, group: skip }
41
+ - { pattern: including tax, group: skip }
42
+ - { pattern: incl. tax, group: skip }
43
+ - { pattern: plus tax, group: skip }
44
+ - { pattern: VAT, group: skip }
@@ -0,0 +1,25 @@
1
+ # Words that make a length a range, beyond those in approximate-marker (fact-conflict). A length with an upper or lower bound
2
+ # ("no more than 1 year", "a minimum of 3 years") is not compared with an exact length elsewhere. before: written before the
3
+ # number.
4
+ id: retention-bound
5
+ language: en
6
+ entries:
7
+ - { pattern: no more than, position: before }
8
+ - { pattern: not more than, position: before }
9
+ - { pattern: no longer than, position: before }
10
+ - { pattern: not longer than, position: before }
11
+ - { pattern: more than, position: before }
12
+ - { pattern: longer than, position: before }
13
+ - { pattern: less than, position: before }
14
+ - { pattern: no less than, position: before }
15
+ - { pattern: not less than, position: before }
16
+ - { pattern: a maximum of, position: before }
17
+ - { pattern: a minimum of, position: before }
18
+ - { pattern: maximum of, position: before }
19
+ - { pattern: minimum of, position: before }
20
+ - { pattern: within, position: before }
21
+ - { pattern: or more, position: after }
22
+ - { pattern: or less, position: after }
23
+ - { pattern: or longer, position: after }
24
+ - { pattern: or fewer, position: after }
25
+ - { pattern: or shorter, position: after }
@@ -0,0 +1,7 @@
1
+ # Words a group of retention-verb needs right before (before) or after (after) the length for it to be a retention period
2
+ # (fact-conflict): "keep logs for 90 days", "delete them 3 years after closing". A group with no words here needs none.
3
+ id: retention-length-mark
4
+ language: en
5
+ entries:
6
+ - { pattern: for, group: keep, position: before }
7
+ - { pattern: after, group: delete, position: after }
@@ -0,0 +1,6 @@
1
+ # Right after a length, a word that makes the length describe a noun, not a retention period (fact-conflict): "we store
2
+ # 3 years of records".
3
+ id: retention-length-modifier
4
+ language: en
5
+ entries:
6
+ - pattern: of
@@ -0,0 +1,5 @@
1
+ # Words between what is kept and a retention-verb written after it (fact-conflict). English needs none: "Account data is
2
+ # retained for 3 years".
3
+ id: retention-object-mark
4
+ language: en
5
+ entries: []
@@ -0,0 +1,5 @@
1
+ # Units of a retention period beyond those in duration-day, duration-week, duration-month and duration-year (fact-conflict).
2
+ # group is the size of the unit (year, month, week, day).
3
+ id: retention-unit
4
+ language: en
5
+ entries: []
@@ -0,0 +1,12 @@
1
+ # Words that state how long something is kept (fact-conflict). keep: held for the length; delete: removed after it ("delete
2
+ # personal information 3 years after"). position: after means what is kept is written after the word ("keep your data"); a
3
+ # passive ("data is retained") is read before it.
4
+ id: retention-verb
5
+ language: en
6
+ entries:
7
+ - { pattern: keep, group: keep, position: after }
8
+ - { pattern: retain, group: keep, position: after }
9
+ - { pattern: store, group: keep, position: after }
10
+ - { pattern: delete, group: delete, position: after }
11
+ - { pattern: erase, group: delete, position: after }
12
+ - { pattern: destroy, group: delete, position: after }
@@ -0,0 +1,59 @@
1
+ # Spellings of one unit in a servings table (scaled-quantity-mismatch). The singular, the plural and the short form share a
2
+ # group, so "1 teaspoon" and "2 tsp" are amounts in one unit and can be compared.
3
+ id: scaled-unit-form
4
+ language: en
5
+ entries:
6
+ - pattern: tablespoons
7
+ group: tablespoon
8
+ - pattern: tablespoon
9
+ group: tablespoon
10
+ - pattern: tbsp
11
+ group: tablespoon
12
+ - pattern: teaspoons
13
+ group: teaspoon
14
+ - pattern: teaspoon
15
+ group: teaspoon
16
+ - pattern: tsp
17
+ group: teaspoon
18
+ - pattern: cups
19
+ group: cup
20
+ - pattern: cup
21
+ group: cup
22
+ - pattern: cloves
23
+ group: clove
24
+ - pattern: clove
25
+ group: clove
26
+ - pattern: slices
27
+ group: slice
28
+ - pattern: slice
29
+ group: slice
30
+ - pattern: cans
31
+ group: can
32
+ - pattern: can
33
+ group: can
34
+ - pattern: pieces
35
+ group: piece
36
+ - pattern: piece
37
+ group: piece
38
+ - pattern: sheets
39
+ group: sheet
40
+ - pattern: sheet
41
+ group: sheet
42
+ - pattern: eggs
43
+ group: egg
44
+ - pattern: egg
45
+ group: egg
46
+ - pattern: ounces
47
+ group: ounce
48
+ - pattern: ounce
49
+ group: ounce
50
+ - pattern: oz
51
+ group: ounce
52
+ - pattern: pounds
53
+ group: pound
54
+ - pattern: pound
55
+ group: pound
56
+ - pattern: lb
57
+ group: pound
58
+ - pattern: lbs
59
+ group: pound
@@ -0,0 +1,26 @@
1
+ # Words in a table's column heading that say how many servings, or what multiple of the recipe, the column holds
2
+ # (scaled-quantity-mismatch). before: written before the number (Serves 4, ×2); after: after it (4 servings).
3
+ # A heading is read only when its cell is one of these words and a number.
4
+ id: servings-column
5
+ language: en
6
+ entries:
7
+ - pattern: "serves"
8
+ position: before
9
+ - pattern: "servings"
10
+ position: after
11
+ - pattern: "serving"
12
+ position: after
13
+ - pattern: "portions"
14
+ position: after
15
+ - pattern: "people"
16
+ position: after
17
+ - pattern: "persons"
18
+ position: after
19
+ - pattern: "batches"
20
+ position: after
21
+ - pattern: "batch"
22
+ position: after
23
+ - pattern: "×"
24
+ position: before
25
+ - pattern: "x"
26
+ position: before
@@ -0,0 +1,25 @@
1
+ # The words of a document's stamp lines, a date and one of these alone on a line (Established: April 1, 2023; Last updated:
2
+ # September 1, 2026). group says whether the date is when the document was first set (established) or last changed (updated);
3
+ # date-stamp-order reports an established date later than an update. Effective is left out: a policy is often updated ahead of
4
+ # the day it takes effect (Last updated: April 23, Effective date: April 27), so an effective date after the update is normal.
5
+ id: stamp-order-label
6
+ language: en
7
+ entries:
8
+ - { pattern: Established, group: established }
9
+ - { pattern: Established on, group: established }
10
+ - { pattern: Adopted, group: established }
11
+ - { pattern: Adopted on, group: established }
12
+ - { pattern: Created, group: established }
13
+ - { pattern: Created on, group: established }
14
+ - { pattern: First published, group: established }
15
+ - { pattern: First issued, group: established }
16
+ - { pattern: Last updated, group: updated }
17
+ - { pattern: Last updated on, group: updated }
18
+ - { pattern: Updated, group: updated }
19
+ - { pattern: Updated on, group: updated }
20
+ - { pattern: Last revised, group: updated }
21
+ - { pattern: Revised, group: updated }
22
+ - { pattern: Revised on, group: updated }
23
+ - { pattern: Last modified, group: updated }
24
+ - { pattern: Last amended, group: updated }
25
+ - { pattern: Amended, group: updated }
@@ -0,0 +1,36 @@
1
+ # Times in a step that are not how long the step takes (step-time-sum-mismatch): a moment ("after 10 minutes", "10 minutes
2
+ # later") or a repeat ("every 5 minutes"). before: written before the length; after: after it. group: range marks what joins
3
+ # the two ends of a range ("10 to 15 minutes"); a step with a range is not read.
4
+ id: step-time-not-own
5
+ language: en
6
+ entries:
7
+ - pattern: after
8
+ position: before
9
+ - pattern: every
10
+ position: before
11
+ - pattern: within
12
+ position: before
13
+ - pattern: the last
14
+ position: before
15
+ - pattern: later
16
+ position: after
17
+ - pattern: after
18
+ position: after
19
+ - pattern: before
20
+ position: after
21
+ - pattern: into
22
+ position: after
23
+ - pattern: ago
24
+ position: after
25
+ - pattern: in advance
26
+ position: after
27
+ - pattern: to
28
+ group: range
29
+ - pattern: or
30
+ group: range
31
+ - pattern: "-"
32
+ group: range
33
+ - pattern: –
34
+ group: range
35
+ - pattern: —
36
+ group: range
@@ -0,0 +1,9 @@
1
+ # Labels of the time the whole procedure takes (step-time-sum-mismatch). The length right after one (spaces and a colon
2
+ # between) is compared with the sum of the times in the numbered steps. "Prep time" and "Cook time" are parts, not totals.
3
+ id: step-time-total
4
+ language: en
5
+ entries:
6
+ - pattern: total time
7
+ - pattern: total
8
+ - pattern: time required
9
+ - pattern: ready in
@@ -0,0 +1,33 @@
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;
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, position: after }
22
+ - { pattern: week, position: after }
23
+ - { pattern: month, position: after }
24
+ - { pattern: quarter, position: after }
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 }
@@ -0,0 +1,48 @@
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: "㎡"
8
+ weight: 1
9
+ - pattern: "sq m"
10
+ weight: 1
11
+ - pattern: "sqm"
12
+ weight: 1
13
+ - pattern: "square meters"
14
+ weight: 1
15
+ - pattern: "square metres"
16
+ weight: 1
17
+ - pattern: "square meter"
18
+ weight: 1
19
+ - pattern: "square metre"
20
+ weight: 1
21
+ - pattern: "km²"
22
+ weight: 1000000
23
+ - pattern: "sq km"
24
+ weight: 1000000
25
+ - pattern: "square kilometers"
26
+ weight: 1000000
27
+ - pattern: "square kilometres"
28
+ weight: 1000000
29
+ - pattern: "ha"
30
+ weight: 10000
31
+ - pattern: "hectares"
32
+ weight: 10000
33
+ - pattern: "hectare"
34
+ weight: 10000
35
+ - pattern: "ft²"
36
+ weight: 0.09290304
37
+ - pattern: "sq ft"
38
+ weight: 0.09290304
39
+ - pattern: "sq. ft."
40
+ weight: 0.09290304
41
+ - pattern: "square feet"
42
+ weight: 0.09290304
43
+ - pattern: "square foot"
44
+ weight: 0.09290304
45
+ - pattern: "acres"
46
+ weight: 4046.8564224
47
+ - pattern: "acre"
48
+ weight: 4046.8564224
@@ -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
@@ -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