@chaffjs/lang-en 0.26.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 (99) hide show
  1. package/dist/emphasis.d.ts +14 -1
  2. package/dist/emphasis.d.ts.map +1 -1
  3. package/dist/emphasis.js +41 -1
  4. package/dist/emphasis.js.map +1 -1
  5. package/dist/pos.d.ts.map +1 -1
  6. package/dist/pos.js +13 -4
  7. package/dist/pos.js.map +1 -1
  8. package/lexicons/address-label.yaml +15 -0
  9. package/lexicons/battery-label.yaml +50 -0
  10. package/lexicons/battery-unit.yaml +18 -0
  11. package/lexicons/capacity-exception.yaml +28 -0
  12. package/lexicons/capacity-label.yaml +10 -0
  13. package/lexicons/clock-range-joiner.yaml +12 -0
  14. package/lexicons/contact-label.yaml +11 -0
  15. package/lexicons/count-frame.yaml +9 -0
  16. package/lexicons/count-hedge.yaml +11 -1
  17. package/lexicons/date-change-word.yaml +5 -0
  18. package/lexicons/date-now-word.yaml +7 -0
  19. package/lexicons/dated-pair-label.yaml +14 -0
  20. package/lexicons/event-aside.yaml +15 -0
  21. package/lexicons/event-date-label.yaml +12 -0
  22. package/lexicons/event-deadline-word.yaml +11 -0
  23. package/lexicons/event-registration-word.yaml +18 -0
  24. package/lexicons/headcount-label.yaml +21 -0
  25. package/lexicons/headcount-unit.yaml +22 -0
  26. package/lexicons/item-amount.yaml +34 -0
  27. package/lexicons/item-at-hand.yaml +15 -0
  28. package/lexicons/item-list-heading.yaml +21 -0
  29. package/lexicons/item-use.yaml +74 -0
  30. package/lexicons/layout-code.yaml +13 -0
  31. package/lexicons/layout-label.yaml +14 -0
  32. package/lexicons/layout-room.yaml +16 -0
  33. package/lexicons/measure-per-mark.yaml +8 -0
  34. package/lexicons/measure-value-lead.yaml +8 -0
  35. package/lexicons/model-code-label.yaml +17 -0
  36. package/lexicons/name-joiner.yaml +9 -0
  37. package/lexicons/name-label.yaml +10 -0
  38. package/lexicons/name-quote.yaml +7 -0
  39. package/lexicons/name-stem-suffix.yaml +12 -0
  40. package/lexicons/name-title-joiner.yaml +9 -0
  41. package/lexicons/period-after-term.yaml +25 -0
  42. package/lexicons/period-deadline.yaml +27 -0
  43. package/lexicons/period-overview-heading.yaml +10 -0
  44. package/lexicons/period-term-label.yaml +12 -0
  45. package/lexicons/phone-label.yaml +1 -0
  46. package/lexicons/place-word.yaml +7 -1
  47. package/lexicons/proper-name-word.yaml +55 -0
  48. package/lexicons/quantity-bound-label.yaml +13 -0
  49. package/lexicons/quantity-change-word.yaml +47 -0
  50. package/lexicons/quantity-range-word.yaml +6 -0
  51. package/lexicons/range-band-heading.yaml +16 -0
  52. package/lexicons/range-band-unit.yaml +34 -0
  53. package/lexicons/range-band-word.yaml +49 -0
  54. package/lexicons/rent-label.yaml +14 -0
  55. package/lexicons/rent-multiple-label.yaml +11 -0
  56. package/lexicons/rent-multiple-word.yaml +44 -0
  57. package/lexicons/requirement-heading.yaml +22 -0
  58. package/lexicons/requirement-item-ending.yaml +6 -0
  59. package/lexicons/requirement-length-unit.yaml +10 -0
  60. package/lexicons/requirement-length-word.yaml +14 -0
  61. package/lexicons/retention-bound.yaml +25 -0
  62. package/lexicons/retention-length-mark.yaml +7 -0
  63. package/lexicons/retention-length-modifier.yaml +6 -0
  64. package/lexicons/retention-object-mark.yaml +5 -0
  65. package/lexicons/retention-unit.yaml +5 -0
  66. package/lexicons/retention-verb.yaml +12 -0
  67. package/lexicons/return-clause.yaml +16 -0
  68. package/lexicons/return-item.yaml +7 -0
  69. package/lexicons/return-label.yaml +10 -0
  70. package/lexicons/return-type-word.yaml +16 -0
  71. package/lexicons/return-verb.yaml +6 -0
  72. package/lexicons/scaled-unit-form.yaml +59 -0
  73. package/lexicons/servings-column.yaml +26 -0
  74. package/lexicons/session-count-unit.yaml +10 -0
  75. package/lexicons/session-total.yaml +11 -0
  76. package/lexicons/stamp-order-label.yaml +25 -0
  77. package/lexicons/step-time-not-own.yaml +36 -0
  78. package/lexicons/step-time-total.yaml +9 -0
  79. package/lexicons/total-label-qualifier.yaml +33 -0
  80. package/lexicons/travel-time-word.yaml +38 -0
  81. package/lexicons/unit-area.yaml +48 -0
  82. package/lexicons/unit-context.yaml +36 -0
  83. package/lexicons/unit-equivalent-hedge.yaml +11 -0
  84. package/lexicons/unit-item-link.yaml +5 -0
  85. package/lexicons/unit-length.yaml +3 -0
  86. package/lexicons/unit-pressure.yaml +12 -0
  87. package/lexicons/unit-temperature.yaml +20 -0
  88. package/lexicons/unit-volume.yaml +33 -0
  89. package/lexicons/unit-zero.yaml +12 -0
  90. package/lexicons/unscaled-amount.yaml +12 -0
  91. package/lexicons/use-count-word.yaml +49 -0
  92. package/lexicons/use-interval-word.yaml +21 -0
  93. package/lexicons/walk-rate.yaml +23 -0
  94. package/lexicons/walk-word.yaml +20 -0
  95. package/lexicons/working-hours-break.yaml +10 -0
  96. package/lexicons/working-hours-total.yaml +11 -0
  97. package/package.json +1 -1
  98. package/src/emphasis.ts +53 -2
  99. package/src/pos.ts +11 -5
@@ -0,0 +1,74 @@
1
+ # How a step uses a thing (unlisted-item-used). A word with position: before stands before the noun: an object verb
2
+ # (group object) at the start of a clause ("add the salt", "and stir in the rice"), or a preposition with its article
3
+ # (group place, instrument: "in a bucket", "with the multi-tool"), read only in a document that lists tools.
4
+ # A word of several parts is matched word by word, in any case. negation stands before a verb and denies the use.
5
+ # partitive starts the thing again ("30 ml of soy sauce"). action is a verb the tagger may read as a noun: a list of
6
+ # things ends at one ("add the salt and stir").
7
+ id: item-use
8
+ language: en
9
+ entries:
10
+ - { pattern: add, group: object, position: before }
11
+ - { pattern: put, group: object, position: before }
12
+ - { pattern: sprinkle, group: object, position: before }
13
+ - { pattern: spread, group: object, position: before }
14
+ - { pattern: insert, group: object, position: before }
15
+ - { pattern: stir in, group: object, position: before }
16
+ - { pattern: mix in, group: object, position: before }
17
+ - { pattern: fold in, group: object, position: before }
18
+ - { pattern: pour in, group: object, position: before }
19
+ - { pattern: in a, group: place, position: before }
20
+ - { pattern: in an, group: place, position: before }
21
+ - { pattern: into a, group: place, position: before }
22
+ - { pattern: into an, group: place, position: before }
23
+ - { pattern: with a, group: instrument, position: before }
24
+ - { pattern: with an, group: instrument, position: before }
25
+ - { pattern: with the, group: instrument, position: before }
26
+ - { pattern: not, group: negation }
27
+ - { pattern: "n't", group: negation }
28
+ - { pattern: never, group: negation }
29
+ - { pattern: of, group: partitive }
30
+ - { pattern: stir, group: action }
31
+ - { pattern: knead, group: action }
32
+ - { pattern: mix, group: action }
33
+ - { pattern: cook, group: action }
34
+ - { pattern: bake, group: action }
35
+ - { pattern: boil, group: action }
36
+ - { pattern: simmer, group: action }
37
+ - { pattern: serve, group: action }
38
+ - { pattern: heat, group: action }
39
+ - { pattern: cover, group: action }
40
+ - { pattern: chill, group: action }
41
+ - { pattern: cool, group: action }
42
+ - { pattern: let, group: action }
43
+ - { pattern: leave, group: action }
44
+ - { pattern: set, group: action }
45
+ - { pattern: remove, group: action }
46
+ - { pattern: reduce, group: action }
47
+ - { pattern: season, group: action }
48
+ - { pattern: whisk, group: action }
49
+ - { pattern: beat, group: action }
50
+ - { pattern: fry, group: action }
51
+ - { pattern: roast, group: action }
52
+ - { pattern: toss, group: action }
53
+ - { pattern: drain, group: action }
54
+ - { pattern: rinse, group: action }
55
+ - { pattern: repeat, group: action }
56
+ - { pattern: wait, group: action }
57
+ - { pattern: check, group: action }
58
+ - { pattern: turn, group: action }
59
+ - { pattern: press, group: action }
60
+ - { pattern: tighten, group: action }
61
+ - { pattern: loosen, group: action }
62
+ - { pattern: pump, group: action }
63
+ - { pattern: slice, group: action }
64
+ - { pattern: chop, group: action }
65
+ - { pattern: cut, group: action }
66
+ - { pattern: fold, group: action }
67
+ - { pattern: pour, group: action }
68
+ - { pattern: transfer, group: action }
69
+ - { pattern: bring, group: action }
70
+ - { pattern: top, group: action }
71
+ - { pattern: garnish, group: action }
72
+ - { pattern: lift, group: action }
73
+ - { pattern: pull, group: action }
74
+ - { pattern: push, group: action }
@@ -0,0 +1,13 @@
1
+ # The words of a layout code in a property listing ("2 bedrooms", "2-bed", "2BR") for layout-code-mismatch. Group counted is
2
+ # the room the number before it counts, written after the number with a space, a hyphen or nothing between. The Japanese
3
+ # lexicon's letter groups (living, dining, kitchen, storage, one-room, joiner) read codes such as 2LDK; English codes have none.
4
+ id: layout-code
5
+ language: en
6
+ entries:
7
+ - { pattern: "bedrooms", group: counted }
8
+ - { pattern: "bedroom", group: counted }
9
+ - { pattern: "beds", group: counted }
10
+ - { pattern: "bed", group: counted }
11
+ - { pattern: "BR", group: counted }
12
+ - { pattern: "bdrm", group: counted }
13
+ - { pattern: "bd", group: counted }
@@ -0,0 +1,14 @@
1
+ # The field names of a property listing for layout-code-mismatch. Group code is the field that gives the layout ("Layout: 2
2
+ # bedrooms"), breakdown the field that lists the rooms on one line ("Rooms: Bedroom 1, Bedroom 2, Living room"), and
3
+ # room-column the first column heading of a table of rooms ("| Room | Size |"). A table row heading, a column heading or the
4
+ # name before a colon is read when, without marks and spaces at its ends, it is one of these (in any case).
5
+ id: layout-label
6
+ language: en
7
+ entries:
8
+ - { pattern: "layout", group: code }
9
+ - { pattern: "floor plan", group: code }
10
+ - { pattern: "unit type", group: code }
11
+ - { pattern: "rooms", group: breakdown }
12
+ - { pattern: "room breakdown", group: breakdown }
13
+ - { pattern: "room sizes", group: breakdown }
14
+ - { pattern: "room", group: room-column }
@@ -0,0 +1,16 @@
1
+ # The rooms a listing's room breakdown names ("Rooms: Bedroom 1, Bedroom 2, Living room") for layout-code-mismatch. Group
2
+ # room is counted by the layout code ("2 bedrooms"); storage is not (a den, a study, a box room). Group unclear is a room some
3
+ # listings count as a bedroom and others do not, or a plural that names several ("Bedrooms 2 and 3"); a breakdown that names
4
+ # one is not compared. An entry that names a room twice ("Bedroom 1 and Bedroom 2") is not compared either. living, dining and kitchen are
5
+ # the parts of a Japanese code (L, D, K); an English code says nothing about them, so none is listed here.
6
+ id: layout-room
7
+ language: en
8
+ entries:
9
+ - { pattern: "bedroom", group: room }
10
+ - { pattern: "bedrooms", group: unclear }
11
+ - { pattern: "den", group: storage }
12
+ - { pattern: "study", group: storage }
13
+ - { pattern: "box room", group: storage }
14
+ - { pattern: "storage room", group: storage }
15
+ - { pattern: "office", group: unclear }
16
+ - { pattern: "nursery", group: unclear }
@@ -0,0 +1,8 @@
1
+ # Marks written after a unit that say the amount is per something (300 mg/tablet, 5 mg/mL, 300 mg per tablet). total-mismatch
2
+ # does not add such an amount.
3
+ id: measure-per-mark
4
+ language: en
5
+ entries:
6
+ - pattern: "/"
7
+ - pattern: "per"
8
+ - pattern: "each"
@@ -0,0 +1,8 @@
1
+ # Words of approximation between a name and its quantity (unit-mismatch). "The weight is about 1.2 kg." is read as the weight, and a difference within half the last written digit agrees. Bounds (up to, at least) do not restate a quantity, so they are not here.
2
+ id: measure-value-lead
3
+ language: en
4
+ entries:
5
+ - pattern: "about"
6
+ - pattern: "approximately"
7
+ - pattern: "around"
8
+ - pattern: "roughly"
@@ -0,0 +1,17 @@
1
+ # Labels a model number is written after ("Model number: KM-SP300"). name-variant reads the code of capitals and digits
2
+ # that follows (a colon or a space between) as the document's model, and reports the same code written elsewhere with
3
+ # only hyphens, spaces, case or width changed.
4
+ id: model-code-label
5
+ language: en
6
+ entries:
7
+ - pattern: Model
8
+ - pattern: Model No.
9
+ - pattern: Model No
10
+ - pattern: Model number
11
+ - pattern: Part No.
12
+ - pattern: Part No
13
+ - pattern: Part number
14
+ - pattern: Product number
15
+ - pattern: Product code
16
+ - pattern: Catalog number
17
+ - pattern: Catalogue number
@@ -0,0 +1,9 @@
1
+ # Small words inside one capitalised name (Statement of Work, Trials and Betas, the Office of Foreign Assets Control).
2
+ # undefined-term reads a run of capitalised words across them, so "Work" alone is not taken for a term. Matched as written.
3
+ id: name-joiner
4
+ language: en
5
+ entries:
6
+ - pattern: of
7
+ - pattern: for
8
+ - pattern: and
9
+ - pattern: in
@@ -0,0 +1,10 @@
1
+ # Labels a name is written after ("Prerequisite: Foundations of Statistics"). name-variant reads what follows the colon, up
2
+ # to the punctuation, as a name, and compares it with names written with the same words in another order.
3
+ id: name-label
4
+ language: en
5
+ entries:
6
+ - pattern: Prerequisite
7
+ - pattern: Prerequisites
8
+ - pattern: Course
9
+ - pattern: Course name
10
+ - pattern: Course title
@@ -0,0 +1,7 @@
1
+ # Quotation marks around a name ("Data Lab"), the opening and the closing mark as one pair. name-variant reads a short run
2
+ # of words inside them as a name, and compares names written with the same words in another order.
3
+ id: name-quote
4
+ language: en
5
+ entries:
6
+ - pattern: “”
7
+ - pattern: '""'
@@ -0,0 +1,12 @@
1
+ # Endings taken off a word before two names are compared for the same words in another order: "Statistics" and
2
+ # "Statistical" are both "statist", so "Foundations of Statistics" and "Statistical Foundations" hold the same words.
3
+ # The longest ending that leaves four letters or more is taken off, one only.
4
+ id: name-stem-suffix
5
+ language: en
6
+ entries:
7
+ - pattern: ical
8
+ - pattern: ics
9
+ - pattern: ic
10
+ - pattern: al
11
+ - pattern: es
12
+ - pattern: s
@@ -0,0 +1,9 @@
1
+ # Small words inside a Title Case name ("Foundations of Statistics", "Bank of the West"). name-variant reads capitalised
2
+ # words across them as one name when it compares names written with the same words in another order. "and", "to" and
3
+ # "with" are left out: across them stand two names ("Texas and Florida"), not one.
4
+ id: name-title-joiner
5
+ language: en
6
+ entries:
7
+ - pattern: of
8
+ - pattern: for
9
+ - pattern: the
@@ -0,0 +1,25 @@
1
+ # Words of work that may fall after the period the document's work is done in ("Term"): grades released, grade appeals,
2
+ # resits. A dated item or sentence holding one is not compared with the term by date-outside-period, even when it says
3
+ # "deadline" or "submit". "grade" alone is left out: "the report (30% of the grade) is due on …" must still be compared.
4
+ id: period-after-term
5
+ language: en
6
+ entries:
7
+ - pattern: grades released
8
+ - pattern: grades are released
9
+ - pattern: grades will be released
10
+ - pattern: grades published
11
+ - pattern: grades are published
12
+ - pattern: grades posted
13
+ - pattern: grades are posted
14
+ - pattern: grades due
15
+ - pattern: grades are due
16
+ - pattern: grade submission
17
+ - pattern: grade appeal
18
+ - pattern: grade appeals
19
+ - pattern: resit
20
+ - pattern: resits
21
+ - pattern: re-sit
22
+ - pattern: re-examination
23
+ - pattern: make-up exam
24
+ - pattern: makeup exam
25
+ - pattern: supplementary exam
@@ -0,0 +1,27 @@
1
+ # Words that mark a deadline for the work of the period ("Submit the assignment by …", "Deadline: …"). For a period stated
2
+ # at the top of the document or in its overview section ("Term: …"), date-outside-period reports a dated item or sentence
3
+ # anywhere later that holds one of these and a date after the period ends (a date without a year takes the term's year
4
+ # only when the term lies within one year). Payment deadlines may fall after the period, so they are left out
5
+ # (period-aside keeps them silent); grades released and resits are left out by period-after-term.
6
+ id: period-deadline
7
+ language: en
8
+ entries:
9
+ - pattern: deadline
10
+ # Not "due" alone: "cancelled due to maintenance" names no deadline.
11
+ - pattern: due on
12
+ - pattern: due by
13
+ - pattern: due date
14
+ - pattern: is due
15
+ - pattern: are due
16
+ - pattern: "due:"
17
+ # A piece of work followed by "due" ("Final report due February 19, 2027"). Not "project due": "the project due to start".
18
+ - pattern: report due
19
+ - pattern: paper due
20
+ - pattern: essay due
21
+ - pattern: homework due
22
+ # A label: "Assignment: February 19, 2027" dates the submission. Not "assignment" alone: "the assignment brief is available on …".
23
+ - pattern: "assignment:"
24
+ - pattern: submit
25
+ - pattern: submission
26
+ - pattern: hand in
27
+ - pattern: turn in
@@ -0,0 +1,10 @@
1
+ # Words of a heading over what holds for the whole document ("Course overview", "Basic information"). A period line in
2
+ # such a section ("Term: …") is the document's period, and date-outside-period compares it with the deadlines
3
+ # (period-deadline) of every later section.
4
+ id: period-overview-heading
5
+ language: en
6
+ entries:
7
+ - pattern: overview
8
+ - pattern: basic information
9
+ - pattern: general information
10
+ - pattern: at a glance
@@ -0,0 +1,12 @@
1
+ # Words that open a line stating the period the document's work is done in ("Term: October 6, 2026 to February 5, 2027").
2
+ # When stated at the top of the document or in its overview section, a deadline
3
+ # (period-deadline) in any later section that falls after the period's end is reported by date-outside-period. Trip and
4
+ # conference dates are left out: an expense report may be due after the trip.
5
+ id: period-term-label
6
+ language: en
7
+ entries:
8
+ - pattern: Course dates
9
+ - pattern: Class dates
10
+ - pattern: Term dates
11
+ - pattern: Semester
12
+ - pattern: Term
@@ -7,6 +7,7 @@ entries:
7
7
  - { pattern: telephone, group: phone }
8
8
  - { pattern: tel, group: phone }
9
9
  - { pattern: call, group: phone }
10
+ - { pattern: "☎", group: phone }
10
11
  - { pattern: fax, group: fax }
11
12
  - { pattern: mobile, group: mobile }
12
13
  - { pattern: cell, group: mobile }
@@ -1,4 +1,4 @@
1
- # Words that end a place name (Union Station, 11th Street, Colorado Convention Center). name-variant reads a name ending in one
1
+ # Words that end a place name (Union Station, 11th Street, Colorado Convention Center), a building's name among them (Westgate House). name-variant reads a name ending in one
2
2
  # of them as a place and reports one place written two ways (11th Street and 11th St., King's Cross and Kings Cross).
3
3
  # group: one word written short or long, or spelt two ways (Street and St., Center and Centre). Matched as written, so each
4
4
  # capitalisation the word takes after a name is listed.
@@ -27,3 +27,9 @@ entries:
27
27
  - { pattern: Bridge, group: bridge }
28
28
  - { pattern: Plaza, group: plaza }
29
29
  - { pattern: Tower, group: tower }
30
+ - { pattern: House, group: house }
31
+ - { pattern: Building, group: building }
32
+ - { pattern: Residences, group: residences }
33
+ - { pattern: Residence, group: residence }
34
+ - { pattern: Apartments, group: apartments }
35
+ - { pattern: Court, group: court }
@@ -0,0 +1,55 @@
1
+ # Words that make a capitalised run a name, not a term the document defines: of a law or a document (the Federal Trade
2
+ # Commission Act, Acceptable Use Policies, the GitHub Privacy Statement), of a body (the Department of Commerce), of a place
3
+ # (the State of New York), of the parties (the Parties, the Indemnifying Party), and words English capitalises by convention (the Internet). undefined-term leaves every run that
4
+ # holds one of these, in its singular or plural form, as it leaves places (place-region), weekdays and months, company
5
+ # forms and party roles. Matched as written, word by word.
6
+ id: proper-name-word
7
+ language: en
8
+ entries:
9
+ - pattern: Act
10
+ - pattern: Regulation
11
+ - pattern: Directive
12
+ - pattern: Code
13
+ - pattern: Statute
14
+ - pattern: Treaty
15
+ - pattern: Convention
16
+ - pattern: Law
17
+ - pattern: Rule
18
+ - pattern: Guideline
19
+ - pattern: Policy
20
+ - pattern: Agreement
21
+ - pattern: Contract
22
+ - pattern: Terms
23
+ - pattern: Conditions
24
+ - pattern: Statement
25
+ - pattern: Addendum
26
+ - pattern: Amendment
27
+ - pattern: Notice
28
+ - pattern: Commission
29
+ - pattern: Authority
30
+ - pattern: Agency
31
+ - pattern: Department
32
+ - pattern: Office
33
+ - pattern: Bureau
34
+ - pattern: Board
35
+ - pattern: Committee
36
+ - pattern: Council
37
+ - pattern: Ministry
38
+ - pattern: Government
39
+ - pattern: Court
40
+ - pattern: Union
41
+ - pattern: Nations
42
+ - pattern: Corporation
43
+ - pattern: Foundation
44
+ - pattern: Association
45
+ - pattern: Institute
46
+ - pattern: University
47
+ - pattern: List
48
+ - pattern: State
49
+ - pattern: City
50
+ - pattern: County
51
+ - pattern: Province
52
+ - pattern: Republic
53
+ - pattern: Kingdom
54
+ - pattern: Internet
55
+ - pattern: Party
@@ -0,0 +1,13 @@
1
+ # Labels of the lower and upper bound of a measured quantity (quantity-range-reversed): "min 5 kg, max 2 kg".
2
+ # "from" and "to" are not labels here as they are for an amount: "from 30 °C to 10 °C" is more often a change than a range.
3
+ # group lower or upper says which bound; link is a word that may stand between a label and its quantity ("minimum of").
4
+ # Matched as whole words, without regard to case.
5
+ id: quantity-bound-label
6
+ language: en
7
+ entries:
8
+ - { pattern: min, group: lower }
9
+ - { pattern: minimum, group: lower }
10
+ - { pattern: max, group: upper }
11
+ - { pattern: maximum, group: upper }
12
+ - { pattern: of, group: link }
13
+ - { pattern: is, group: link }
@@ -0,0 +1,47 @@
1
+ # Words that make two measured quantities in one sentence a change or a descending order, not a range
2
+ # (quantity-range-reversed): "cooled from 40 °C to 10 °C", "from 100 m down to 10 m", "countdown 10 to 0 s".
3
+ # group lead: a word that makes the pair a change only when it stands right before the first quantity
4
+ # ("Builds went from 9 minutes to 2 minutes"). Matched as whole words, without regard to case.
5
+ id: quantity-change-word
6
+ language: en
7
+ entries:
8
+ - { pattern: from, group: lead }
9
+ - pattern: down
10
+ - pattern: reduce
11
+ - pattern: reduced
12
+ - pattern: reduces
13
+ - pattern: reducing
14
+ - pattern: reduction
15
+ - pattern: lowered
16
+ - pattern: lowering
17
+ - pattern: drops
18
+ - pattern: dropped
19
+ - pattern: dropping
20
+ - pattern: falls
21
+ - pattern: fell
22
+ - pattern: falling
23
+ - pattern: decrease
24
+ - pattern: decreased
25
+ - pattern: decreases
26
+ - pattern: decreasing
27
+ - pattern: decline
28
+ - pattern: declined
29
+ - pattern: declines
30
+ - pattern: cool
31
+ - pattern: cooled
32
+ - pattern: cools
33
+ - pattern: cooling
34
+ - pattern: shrink
35
+ - pattern: shrank
36
+ - pattern: shrinks
37
+ - pattern: change
38
+ - pattern: changed
39
+ - pattern: changes
40
+ - pattern: descending
41
+ - pattern: countdown
42
+ - pattern: raise
43
+ - pattern: raised
44
+ - pattern: increase
45
+ - pattern: increased
46
+ - pattern: rose
47
+ - pattern: heated
@@ -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,22 @@
1
+ # Headings and labels of the conditions of a job posting (required-listed-as-preferred). group required is what an applicant
2
+ # must have, preferred what is welcome. A heading is matched by its part before a colon or bracket, a label standing alone
3
+ # on its line ("Required:") by the whole line; case and hyphens are ignored.
4
+ id: requirement-heading
5
+ language: en
6
+ entries:
7
+ - { pattern: required, group: required }
8
+ - { pattern: requirements, group: required }
9
+ - { pattern: required skills, group: required }
10
+ - { pattern: required qualifications, group: required }
11
+ - { pattern: required experience, group: required }
12
+ - { pattern: minimum qualifications, group: required }
13
+ - { pattern: basic qualifications, group: required }
14
+ - { pattern: must have, group: required }
15
+ - { pattern: must haves, group: required }
16
+ - { pattern: preferred, group: preferred }
17
+ - { pattern: preferred skills, group: preferred }
18
+ - { pattern: preferred qualifications, group: preferred }
19
+ - { pattern: preferred experience, group: preferred }
20
+ - { pattern: nice to have, group: preferred }
21
+ - { pattern: nice to haves, group: preferred }
22
+ - { pattern: bonus points, group: preferred }