@chaffjs/lang-en 0.25.0 → 0.27.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 (127) hide show
  1. package/dist/definitions.d.ts.map +1 -1
  2. package/dist/definitions.js +15 -5
  3. package/dist/definitions.js.map +1 -1
  4. package/dist/emphasis.d.ts +14 -1
  5. package/dist/emphasis.d.ts.map +1 -1
  6. package/dist/emphasis.js +41 -1
  7. package/dist/emphasis.js.map +1 -1
  8. package/dist/example-name.d.ts +7 -0
  9. package/dist/example-name.d.ts.map +1 -0
  10. package/dist/example-name.js +33 -0
  11. package/dist/example-name.js.map +1 -0
  12. package/dist/pos.d.ts.map +1 -1
  13. package/dist/pos.js +13 -4
  14. package/dist/pos.js.map +1 -1
  15. package/dist/structure.d.ts.map +1 -1
  16. package/dist/structure.js +19 -1
  17. package/dist/structure.js.map +1 -1
  18. package/lexicons/action-due-label.yaml +8 -0
  19. package/lexicons/action-section-heading.yaml +9 -0
  20. package/lexicons/amount-bound-label.yaml +14 -0
  21. package/lexicons/amount-change-word.yaml +33 -0
  22. package/lexicons/amount-range-word.yaml +6 -0
  23. package/lexicons/amount-short-scale.yaml +9 -0
  24. package/lexicons/article-sound.yaml +3 -0
  25. package/lexicons/clock-range-joiner.yaml +12 -0
  26. package/lexicons/code-global.yaml +27 -0
  27. package/lexicons/common-acronym.yaml +19 -0
  28. package/lexicons/company-form.yaml +14 -11
  29. package/lexicons/count-counter.yaml +5 -0
  30. package/lexicons/count-hedge.yaml +32 -1
  31. package/lexicons/count-member.yaml +25 -0
  32. package/lexicons/date-change-word.yaml +5 -0
  33. package/lexicons/day-shift-mark.yaml +12 -0
  34. package/lexicons/deadline-passed-word.yaml +10 -0
  35. package/lexicons/default-header.yaml +7 -0
  36. package/lexicons/default-phrase.yaml +8 -0
  37. package/lexicons/deprecation-negated.yaml +10 -0
  38. package/lexicons/deprecation-word.yaml +8 -0
  39. package/lexicons/doubled-nado.yaml +15 -0
  40. package/lexicons/due-date-label.yaml +10 -0
  41. package/lexicons/duty-marker.yaml +9 -0
  42. package/lexicons/duty-negation.yaml +7 -0
  43. package/lexicons/duty-terms-elsewhere.yaml +10 -0
  44. package/lexicons/earlier-section-word.yaml +8 -0
  45. package/lexicons/extra-word.yaml +5 -0
  46. package/lexicons/fact-change-from.yaml +6 -0
  47. package/lexicons/fact-change-not.yaml +13 -0
  48. package/lexicons/fact-change-to.yaml +6 -0
  49. package/lexicons/fact-condition-from.yaml +10 -0
  50. package/lexicons/fact-condition-to.yaml +9 -0
  51. package/lexicons/fact-event.yaml +14 -0
  52. package/lexicons/fact-label-lead.yaml +9 -0
  53. package/lexicons/fact-name-joiner.yaml +6 -0
  54. package/lexicons/fact-separator.yaml +5 -0
  55. package/lexicons/install-command.yaml +20 -0
  56. package/lexicons/issue-date-label.yaml +9 -0
  57. package/lexicons/item-done-word.yaml +9 -0
  58. package/lexicons/leg-column.yaml +15 -0
  59. package/lexicons/leg-mark.yaml +25 -0
  60. package/lexicons/line-amount-column.yaml +8 -0
  61. package/lexicons/local-time-mark.yaml +7 -0
  62. package/lexicons/meeting-date-label.yaml +8 -0
  63. package/lexicons/minutes-title-word.yaml +7 -0
  64. package/lexicons/nado-closed-list.yaml +22 -0
  65. package/lexicons/name-joiner.yaml +9 -0
  66. package/lexicons/name-label.yaml +10 -0
  67. package/lexicons/name-quote.yaml +7 -0
  68. package/lexicons/name-stem-suffix.yaml +12 -0
  69. package/lexicons/name-title-joiner.yaml +9 -0
  70. package/lexicons/number-word.yaml +45 -0
  71. package/lexicons/ordinal-frame.yaml +15 -0
  72. package/lexicons/parameter-header.yaml +11 -0
  73. package/lexicons/partial-listing-marker.yaml +15 -0
  74. package/lexicons/per-unit-mark.yaml +25 -0
  75. package/lexicons/period-aside.yaml +46 -0
  76. package/lexicons/period-deadline.yaml +19 -0
  77. package/lexicons/period-label.yaml +19 -0
  78. package/lexicons/period-overview-heading.yaml +10 -0
  79. package/lexicons/period-term-label.yaml +12 -0
  80. package/lexicons/person-not-after.yaml +42 -1
  81. package/lexicons/phone-label.yaml +14 -0
  82. package/lexicons/place-name-joiner.yaml +10 -0
  83. package/lexicons/place-word.yaml +29 -0
  84. package/lexicons/prerequisite-opener.yaml +10 -0
  85. package/lexicons/proper-name-word.yaml +55 -0
  86. package/lexicons/quantity-column.yaml +9 -0
  87. package/lexicons/rate-unit.yaml +18 -0
  88. package/lexicons/requirement-heading.yaml +22 -0
  89. package/lexicons/requirement-item-ending.yaml +6 -0
  90. package/lexicons/requirement-length-unit.yaml +10 -0
  91. package/lexicons/requirement-length-word.yaml +14 -0
  92. package/lexicons/return-clause.yaml +16 -0
  93. package/lexicons/return-item.yaml +7 -0
  94. package/lexicons/return-label.yaml +10 -0
  95. package/lexicons/return-type-word.yaml +16 -0
  96. package/lexicons/return-verb.yaml +6 -0
  97. package/lexicons/session-count-unit.yaml +10 -0
  98. package/lexicons/session-total.yaml +11 -0
  99. package/lexicons/share-column-rate.yaml +15 -0
  100. package/lexicons/share-column.yaml +12 -0
  101. package/lexicons/share-rest.yaml +8 -0
  102. package/lexicons/stated-deadline.yaml +17 -0
  103. package/lexicons/stay-check-in-column.yaml +10 -0
  104. package/lexicons/stay-check-out-column.yaml +10 -0
  105. package/lexicons/stay-night.yaml +6 -0
  106. package/lexicons/stay-nights-column.yaml +7 -0
  107. package/lexicons/stay-pair-joiner.yaml +9 -0
  108. package/lexicons/summed-counter.yaml +17 -0
  109. package/lexicons/tax-included-word.yaml +8 -0
  110. package/lexicons/tax-label.yaml +9 -0
  111. package/lexicons/timed-duty.yaml +14 -0
  112. package/lexicons/travel-time-word.yaml +38 -0
  113. package/lexicons/unit-price-column.yaml +9 -0
  114. package/lexicons/unnamed-speaker.yaml +58 -0
  115. package/lexicons/us-state-code.yaml +1 -1
  116. package/lexicons/very-copula.yaml +5 -0
  117. package/lexicons/warning-action.yaml +20 -0
  118. package/lexicons/warning-label.yaml +8 -0
  119. package/lexicons/word-suffix.yaml +3 -0
  120. package/lexicons/working-hours-break.yaml +10 -0
  121. package/lexicons/working-hours-total.yaml +11 -0
  122. package/package.json +1 -1
  123. package/src/definitions.ts +13 -5
  124. package/src/emphasis.ts +53 -2
  125. package/src/example-name.ts +36 -0
  126. package/src/pos.ts +11 -5
  127. package/src/structure.ts +24 -1
@@ -0,0 +1,15 @@
1
+ # How a schedule numbers its weeks, sessions, lectures and days (Week 5, Session 3, Day 2). {n} is the number; a joined
2
+ # number such as 1-2 is read too. When the first cell of table rows, the start of list items or the start of lines carry
3
+ # this form, numbering-gap compares the numbers for a skip or a repeat. Entries with the same group make one run. Case
4
+ # does not matter.
5
+ id: ordinal-frame
6
+ language: en
7
+ entries:
8
+ - { pattern: "Week {n}", group: week }
9
+ - { pattern: "Weeks {n}", group: week }
10
+ - { pattern: "Session {n}", group: session }
11
+ - { pattern: "Sessions {n}", group: session }
12
+ - { pattern: "Lecture {n}", group: lecture }
13
+ - { pattern: "Lectures {n}", group: lecture }
14
+ - { pattern: "Day {n}", group: day }
15
+ - { pattern: "Days {n}", group: day }
@@ -0,0 +1,11 @@
1
+ # The first column header of a table that lists a function's parameters (parameter-table-mismatch). A table headed by
2
+ # another word (Option, Field) lists something else and is not compared with the signature.
3
+ id: parameter-header
4
+ language: en
5
+ entries:
6
+ - pattern: parameter
7
+ - pattern: parameters
8
+ - pattern: param
9
+ - pattern: argument
10
+ - pattern: arguments
11
+ - pattern: arg
@@ -0,0 +1,15 @@
1
+ # Words saying a list shows only some of its items (selected weeks, highlights). In the run's heading, or on a line right
2
+ # above the run (a table's header row), they mean the numbers skip by choice, and numbering-gap does not compare the
3
+ # Week N or Session N run. Matched as whole words; case does not matter.
4
+ id: partial-listing-marker
5
+ language: en
6
+ entries:
7
+ - pattern: selected
8
+ - pattern: selection
9
+ - pattern: highlights
10
+ - pattern: highlight
11
+ - pattern: excerpt
12
+ - pattern: excerpts
13
+ - pattern: sample
14
+ - pattern: examples
15
+ - pattern: notable
@@ -0,0 +1,25 @@
1
+ # Marks written with a price that say it is per a unit ($100/hour, $300 per month), each with that unit (group, as in
2
+ # rate-unit). Such a price is multiplied only by a quantity in the same unit, or by a bare number (line-amount-mismatch).
3
+ id: per-unit-mark
4
+ language: en
5
+ entries:
6
+ - { pattern: /hour, group: hour }
7
+ - { pattern: /hr, group: hour }
8
+ - { pattern: /h, group: hour }
9
+ - { pattern: per hour, group: hour }
10
+ - { pattern: an hour, group: hour }
11
+ - { pattern: /day, group: day }
12
+ - { pattern: per day, group: day }
13
+ - { pattern: a day, group: day }
14
+ - { pattern: /week, group: week }
15
+ - { pattern: /wk, group: week }
16
+ - { pattern: per week, group: week }
17
+ - { pattern: a week, group: week }
18
+ - { pattern: /month, group: month }
19
+ - { pattern: /mo, group: month }
20
+ - { pattern: per month, group: month }
21
+ - { pattern: a month, group: month }
22
+ - { pattern: /year, group: year }
23
+ - { pattern: /yr, group: year }
24
+ - { pattern: per year, group: year }
25
+ - { pattern: a year, group: year }
@@ -0,0 +1,46 @@
1
+ # Words that let a date stand outside the stated period. When the item, the sentence or the section heading holds one,
2
+ # date-outside-period does not compare the date: plans before or after the period ("post-trip", "the day before"),
3
+ # deadlines and bookings ("book by", "registration deadline") and earlier editions ("previous", "past").
4
+ id: period-aside
5
+ language: en
6
+ entries:
7
+ - pattern: pre-trip
8
+ - pattern: post-trip
9
+ - pattern: pre-tour
10
+ - pattern: post-tour
11
+ - pattern: pre-conference
12
+ - pattern: post-conference
13
+ - pattern: pre-event
14
+ - pattern: post-event
15
+ - pattern: follow-up
16
+ - pattern: follow up
17
+ - pattern: day before
18
+ - pattern: day after
19
+ - pattern: night before
20
+ - pattern: prior to
21
+ - pattern: deadline
22
+ - pattern: due
23
+ - pattern: book by
24
+ - pattern: booking
25
+ - pattern: register by
26
+ - pattern: registration closes
27
+ - pattern: registration opens
28
+ - pattern: apply by
29
+ - pattern: submit by
30
+ - pattern: submission
31
+ - pattern: pay by
32
+ - pattern: payment
33
+ - pattern: setup
34
+ - pattern: set-up
35
+ - pattern: move-in
36
+ - pattern: move-out
37
+ - pattern: teardown
38
+ - pattern: past
39
+ - pattern: previous
40
+ - pattern: last year
41
+ - pattern: postponed
42
+ - pattern: updated
43
+ - pattern: published
44
+ - pattern: issued
45
+ - pattern: early bird
46
+ - pattern: early-bird
@@ -0,0 +1,19 @@
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 with a year after the period ends. Payment deadlines may fall after the
4
+ # period, so they are left out (period-aside keeps them silent).
5
+ id: period-deadline
6
+ language: en
7
+ entries:
8
+ - pattern: deadline
9
+ # Not "due" alone: "cancelled due to maintenance" names no deadline.
10
+ - pattern: due on
11
+ - pattern: due by
12
+ - pattern: due date
13
+ - pattern: is due
14
+ - pattern: are due
15
+ - pattern: "due:"
16
+ - pattern: submit
17
+ - pattern: submission
18
+ - pattern: hand in
19
+ - pattern: turn in
@@ -0,0 +1,19 @@
1
+ # Words that open a line stating a document's period ("Trip dates: Oct 12–15", "Conference: May 3–5, 2026"). Only a
2
+ # line that starts with one, then a colon or a space and the period, is read as the period by date-outside-period.
3
+ # "Registration period" and "Application period" are left out: what follows them is not inside that period.
4
+ id: period-label
5
+ language: en
6
+ entries:
7
+ - pattern: Trip dates
8
+ - pattern: Trip period
9
+ - pattern: Travel dates
10
+ - pattern: Travel period
11
+ - pattern: Tour dates
12
+ - pattern: Tour period
13
+ - pattern: Event dates
14
+ - pattern: Conference dates
15
+ - pattern: Programme dates
16
+ - pattern: Program dates
17
+ - pattern: Dates
18
+ - pattern: Conference
19
+ - pattern: Period
@@ -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
@@ -1,5 +1,8 @@
1
1
  # A word right before a person-word that makes it something else: a determiner before "one" (no one can, the one we
2
- # chose), or a preposition that makes "one" the object of a phrase (devices connected to one can cause a shock).
2
+ # chose), a preposition that makes "one" the object of a phrase (devices connected to one can cause a shock), or an
3
+ # adjective that makes "one" a noun standing for a thing (the last one cannot be undone). Adjectives that are also
4
+ # adverbs at the head of a sentence (first, next, later, better) are left out: "First one must ask" is the reader; so is
5
+ # little, a quantifier in "there is little one can do".
3
6
  # instead_of is the form the word guards; "to you" is still the reader.
4
7
  id: person-not-after
5
8
  language: en
@@ -52,3 +55,41 @@ entries:
52
55
  instead_of: one
53
56
  - pattern: per
54
57
  instead_of: one
58
+ - pattern: last
59
+ instead_of: one
60
+ - pattern: single
61
+ instead_of: one
62
+ - pattern: other
63
+ instead_of: one
64
+ - pattern: new
65
+ instead_of: one
66
+ - pattern: old
67
+ instead_of: one
68
+ - pattern: same
69
+ instead_of: one
70
+ - pattern: final
71
+ instead_of: one
72
+ - pattern: second
73
+ instead_of: one
74
+ - pattern: third
75
+ instead_of: one
76
+ - pattern: latter
77
+ instead_of: one
78
+ - pattern: former
79
+ instead_of: one
80
+ - pattern: previous
81
+ instead_of: one
82
+ - pattern: original
83
+ instead_of: one
84
+ - pattern: wrong
85
+ instead_of: one
86
+ - pattern: big
87
+ instead_of: one
88
+ - pattern: small
89
+ instead_of: one
90
+ - pattern: large
91
+ instead_of: one
92
+ - pattern: current
93
+ instead_of: one
94
+ - pattern: existing
95
+ instead_of: one
@@ -0,0 +1,14 @@
1
+ # Words put before a phone number. group is what the number is (phone, fax, mobile); numbers of different groups are never
2
+ # compared. phone-number-variant takes the group of the nearest label before a number on its line.
3
+ id: phone-label
4
+ language: en
5
+ entries:
6
+ - { pattern: phone, group: phone }
7
+ - { pattern: telephone, group: phone }
8
+ - { pattern: tel, group: phone }
9
+ - { pattern: call, group: phone }
10
+ - { pattern: fax, group: fax }
11
+ - { pattern: mobile, group: mobile }
12
+ - { pattern: cell, group: mobile }
13
+ - { pattern: cell phone, group: mobile }
14
+ - { pattern: mobile phone, group: mobile }
@@ -0,0 +1,10 @@
1
+ # Small words inside a place name (University of Tokyo Station, Newcastle upon Tyne Station). name-variant reads the name across
2
+ # them, so "University of Tokyo Station" is not taken for "Tokyo Station".
3
+ id: place-name-joiner
4
+ language: en
5
+ entries:
6
+ - { pattern: of }
7
+ - { pattern: upon }
8
+ - { pattern: de }
9
+ - { pattern: del }
10
+ - { pattern: la }
@@ -0,0 +1,29 @@
1
+ # Words that end a place name (Union Station, 11th Street, Colorado Convention Center). name-variant reads a name ending in one
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
+ # group: one word written short or long, or spelt two ways (Street and St., Center and Centre). Matched as written, so each
4
+ # capitalisation the word takes after a name is listed.
5
+ id: place-word
6
+ language: en
7
+ entries:
8
+ - { pattern: Street, group: street }
9
+ - { pattern: St., group: street }
10
+ - { pattern: Avenue, group: avenue }
11
+ - { pattern: Ave., group: avenue }
12
+ - { pattern: Road, group: road }
13
+ - { pattern: Rd., group: road }
14
+ - { pattern: Boulevard, group: boulevard }
15
+ - { pattern: Blvd., group: boulevard }
16
+ - { pattern: Square, group: square }
17
+ - { pattern: Sq., group: square }
18
+ - { pattern: Station, group: station }
19
+ - { pattern: station, group: station }
20
+ - { pattern: Center, group: center }
21
+ - { pattern: Centre, group: center }
22
+ - { pattern: Hall, group: hall }
23
+ - { pattern: Airport, group: airport }
24
+ - { pattern: airport, group: airport }
25
+ - { pattern: Terminal, group: terminal }
26
+ - { pattern: Park, group: park }
27
+ - { pattern: Bridge, group: bridge }
28
+ - { pattern: Plaza, group: plaza }
29
+ - { pattern: Tower, group: tower }
@@ -0,0 +1,10 @@
1
+ # Phrases a sentence opens with to give a prerequisite of the whole task ("Before you begin, stop the order service").
2
+ # prerequisite-after-step reports one written after the numbered steps of its section. "Before step 4" names one step and
3
+ # is left out.
4
+ id: prerequisite-opener
5
+ language: en
6
+ entries:
7
+ - pattern: before you begin
8
+ - pattern: before you start
9
+ - pattern: before beginning
10
+ - pattern: before starting
@@ -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,9 @@
1
+ # Headings of the quantity column of an itemised table. With a unit price and an amount column, quantity × unit price is compared with the amount (line-amount-mismatch).
2
+ id: quantity-column
3
+ language: en
4
+ entries:
5
+ - pattern: Quantity
6
+ - pattern: Qty
7
+ - pattern: Qty.
8
+ - pattern: Units
9
+ - { pattern: Hours, group: hour }
@@ -0,0 +1,18 @@
1
+ # Unit words written after the number of a quantity in an itemised table, each with the unit it counts (group). A price
2
+ # written per a unit (per-unit-mark) is multiplied only by a quantity in the same unit (line-amount-mismatch).
3
+ id: rate-unit
4
+ language: en
5
+ entries:
6
+ - { pattern: hour, group: hour }
7
+ - { pattern: hours, group: hour }
8
+ - { pattern: hr, group: hour }
9
+ - { pattern: hrs, group: hour }
10
+ - { pattern: h, group: hour }
11
+ - { pattern: day, group: day }
12
+ - { pattern: days, group: day }
13
+ - { pattern: week, group: week }
14
+ - { pattern: weeks, group: week }
15
+ - { pattern: month, group: month }
16
+ - { pattern: months, group: month }
17
+ - { pattern: year, group: year }
18
+ - { pattern: years, group: year }
@@ -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 }
@@ -0,0 +1,6 @@
1
+ # Words that only end an item of a job posting's conditions and are not the skill (required-listed-as-preferred).
2
+ id: requirement-item-ending
3
+ language: en
4
+ entries:
5
+ - pattern: is a plus
6
+ - pattern: a plus
@@ -0,0 +1,10 @@
1
+ # Units of a length of experience (required-listed-as-preferred), weight in months. The length is taken out of "3+ years of
2
+ # Python" to compare the skill, and decides whether the preferred item asks for more.
3
+ id: requirement-length-unit
4
+ language: en
5
+ entries:
6
+ - { pattern: year, weight: 12 }
7
+ - { pattern: years, weight: 12 }
8
+ - { pattern: yrs, weight: 12 }
9
+ - { pattern: month, weight: 1 }
10
+ - { pattern: months, weight: 1 }
@@ -0,0 +1,14 @@
1
+ # Words taken out with a length of experience (required-listed-as-preferred): before stands before the number ("at least"),
2
+ # after follows the unit ("or more", "of"). Matched as whole words, without regard to case.
3
+ id: requirement-length-word
4
+ language: en
5
+ entries:
6
+ - { pattern: at least, group: before }
7
+ - { pattern: a minimum of, group: before }
8
+ - { pattern: minimum of, group: before }
9
+ - { pattern: minimum, group: before }
10
+ - { pattern: over, group: before }
11
+ - { pattern: more than, group: before }
12
+ - { pattern: or more, group: after }
13
+ - { pattern: plus, group: after }
14
+ - { pattern: of, group: after }
@@ -0,0 +1,16 @@
1
+ # The words that open a clause about when or what, so a type word after them is not the returned one (return-type-mismatch):
2
+ # in "returns true when the string is empty", string names the input. Only the words before the first of these are read.
3
+ id: return-clause
4
+ language: en
5
+ entries:
6
+ - pattern: when
7
+ - pattern: whenever
8
+ - pattern: if
9
+ - pattern: unless
10
+ - pattern: where
11
+ - pattern: while
12
+ - pattern: until
13
+ - pattern: that
14
+ - pattern: which
15
+ - pattern: whose
16
+ - pattern: for
@@ -0,0 +1,7 @@
1
+ # The words that make a type word one item of the result, not the result (return-type-mismatch): "returns one string per
2
+ # line" returns an array. A type word followed by one of these is not read.
3
+ id: return-item
4
+ language: en
5
+ entries:
6
+ - pattern: per
7
+ - pattern: each
@@ -0,0 +1,10 @@
1
+ # The label of a line that states what a function returns (Returns: `string[]`), and the header of a table column that
2
+ # does (return-type-mismatch).
3
+ id: return-label
4
+ language: en
5
+ entries:
6
+ - pattern: Returns
7
+ - pattern: Return
8
+ - pattern: Return value
9
+ - pattern: Return values
10
+ - pattern: Return type
@@ -0,0 +1,16 @@
1
+ # The words that name a kind of value in a sentence or a cell, and the kind (group) each names (return-type-mismatch):
2
+ # "returns the width as a string" says string. A type in code (string[], int) is read by the rule itself.
3
+ id: return-type-word
4
+ language: en
5
+ entries:
6
+ - { pattern: string, group: string }
7
+ - { pattern: strings, group: string }
8
+ - { pattern: number, group: number }
9
+ - { pattern: numbers, group: number }
10
+ - { pattern: integer, group: number }
11
+ - { pattern: integers, group: number }
12
+ - { pattern: boolean, group: boolean }
13
+ - { pattern: booleans, group: boolean }
14
+ - { pattern: array, group: array }
15
+ - { pattern: arrays, group: array }
16
+ - { pattern: list, group: array }
@@ -0,0 +1,6 @@
1
+ # The verb of a sentence that says what a function returns, right after the function's name: "measure returns a number"
2
+ # (return-type-mismatch). The past (returned) tells history, as a changelog does, and is not read.
3
+ id: return-verb
4
+ language: en
5
+ entries:
6
+ - pattern: returns
@@ -0,0 +1,10 @@
1
+ # Units of a number of sessions (duration-product-mismatch). The count times the length of one is compared with the stated total ("15 sessions of 90 minutes").
2
+ id: session-count-unit
3
+ language: en
4
+ entries:
5
+ - pattern: sessions
6
+ - pattern: classes
7
+ - pattern: lessons
8
+ - pattern: lectures
9
+ - pattern: meetings
10
+ - pattern: weeks
@@ -0,0 +1,11 @@
1
+ # Words beside the total of a number of sessions times their length (duration-product-mismatch). before: written before the length ("a total of 24 hours"); after: behind it ("24 hours in total").
2
+ id: session-total
3
+ language: en
4
+ entries:
5
+ - { pattern: "total", position: before }
6
+ - { pattern: "total of", position: before }
7
+ - { pattern: "in total", position: before }
8
+ - { pattern: "in total", position: after }
9
+ - { pattern: "total", position: after }
10
+ - { pattern: "altogether", position: after }
11
+ - { pattern: "in all", position: after }
@@ -0,0 +1,15 @@
1
+ # Words that name a rate per row. When the sentence or heading right above a table, or a row of the table, has one, a column headed only
2
+ # "Share" or "Percentage" is read as a rate per row and not added. Matched as whole words ("year-over-year" is found as "year over year").
3
+ id: share-column-rate
4
+ language: en
5
+ entries:
6
+ - pattern: rate
7
+ - pattern: rates
8
+ - pattern: growth
9
+ - pattern: yoy
10
+ - pattern: year over year
11
+ - pattern: change
12
+ - pattern: interest
13
+ - pattern: yield
14
+ - pattern: return
15
+ - pattern: returns
@@ -0,0 +1,12 @@
1
+ # A table column whose header cell is only one of these words (a unit in brackets and % aside) is read as the parts of
2
+ # one whole, and its percentages are added and compared with 100%. In a sentence these words also name a rate per row
3
+ # ("the share of users who..."), so they are not share-label words.
4
+ id: share-column
5
+ language: en
6
+ entries:
7
+ - pattern: weight
8
+ - pattern: weighting
9
+ - pattern: weights
10
+ - pattern: share
11
+ - pattern: percentage
12
+ - pattern: proportion
@@ -0,0 +1,8 @@
1
+ # Words that name the rest of a whole as one of its parts ("other 5%"). Only the parts of one whole have a rest, so a
2
+ # sentence with three or more percentages, one of them right after one of these, is read as a breakdown even when it
3
+ # has no share-label word ("wrong digits 45%, missing fields 30%, swapped fields 20% and other 5%").
4
+ id: share-rest
5
+ language: en
6
+ entries:
7
+ - pattern: other
8
+ - pattern: others
@@ -0,0 +1,17 @@
1
+ # Ways of giving a duty its time besides a number of days (concrete-deadline): a date or day ("by the fifth business day",
2
+ # "on or before March 1"), or at once ("immediately"). A sentence holding one has a deadline, and obligation-without-deadline
3
+ # leaves it. "by" alone is not here: "by email" says how, not when.
4
+ id: stated-deadline
5
+ language: en
6
+ entries:
7
+ - pattern: by the
8
+ - pattern: on or before
9
+ - pattern: prior to
10
+ - pattern: before
11
+ - pattern: immediately
12
+ - pattern: at the end of
13
+ - pattern: on the … day
14
+ - pattern: at the time
15
+ - pattern: within the
16
+ # "timely" leaves the time to the reader, but it speaks of time: vague-deadline's kind, not a duty with none.
17
+ - pattern: timely
@@ -0,0 +1,10 @@
1
+ # Headings of the first-day column of a stay table (duration-mismatch). With a check-out and a nights column, each row's nights are compared with its dates.
2
+ id: stay-check-in-column
3
+ language: en
4
+ entries:
5
+ - pattern: "Check-in"
6
+ - pattern: "Check in"
7
+ - pattern: "Check-in date"
8
+ - pattern: "Arrive"
9
+ - pattern: "Arrival"
10
+ - pattern: "Arrival date"
@@ -0,0 +1,10 @@
1
+ # Headings of the leaving-day column of a stay table (duration-mismatch).
2
+ id: stay-check-out-column
3
+ language: en
4
+ entries:
5
+ - pattern: "Check-out"
6
+ - pattern: "Check out"
7
+ - pattern: "Check-out date"
8
+ - pattern: "Depart"
9
+ - pattern: "Departure"
10
+ - pattern: "Departure date"
@@ -0,0 +1,6 @@
1
+ # Units of a number of nights (duration-mismatch). A count in one of them is compared with the days from check-in to check-out.
2
+ id: stay-night
3
+ language: en
4
+ entries:
5
+ - pattern: "night"
6
+ - pattern: "nights"
@@ -0,0 +1,7 @@
1
+ # Headings of the nights column of a stay table (duration-mismatch).
2
+ id: stay-nights-column
3
+ language: en
4
+ entries:
5
+ - pattern: "Nights"
6
+ - pattern: "No. of nights"
7
+ - pattern: "Number of nights"
@@ -0,0 +1,9 @@
1
+ # What may stand between a number of nights and a number of days ("2 days, 1 night"), where the days are one more than the nights (duration-mismatch).
2
+ id: stay-pair-joiner
3
+ language: en
4
+ entries:
5
+ - pattern: ","
6
+ - pattern: "/"
7
+ - pattern: "and"
8
+ - pattern: ", and"
9
+ - pattern: "&"