@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.
- package/dist/emphasis.d.ts +14 -1
- package/dist/emphasis.d.ts.map +1 -1
- package/dist/emphasis.js +41 -1
- package/dist/emphasis.js.map +1 -1
- package/dist/pos.d.ts.map +1 -1
- package/dist/pos.js +13 -4
- package/dist/pos.js.map +1 -1
- package/lexicons/address-label.yaml +15 -0
- package/lexicons/battery-label.yaml +50 -0
- package/lexicons/battery-unit.yaml +18 -0
- package/lexicons/capacity-exception.yaml +28 -0
- package/lexicons/capacity-label.yaml +10 -0
- package/lexicons/clock-range-joiner.yaml +12 -0
- package/lexicons/contact-label.yaml +11 -0
- package/lexicons/count-frame.yaml +9 -0
- package/lexicons/count-hedge.yaml +11 -1
- package/lexicons/date-change-word.yaml +5 -0
- package/lexicons/date-now-word.yaml +7 -0
- package/lexicons/dated-pair-label.yaml +14 -0
- package/lexicons/event-aside.yaml +15 -0
- package/lexicons/event-date-label.yaml +12 -0
- package/lexicons/event-deadline-word.yaml +11 -0
- package/lexicons/event-registration-word.yaml +18 -0
- package/lexicons/headcount-label.yaml +21 -0
- package/lexicons/headcount-unit.yaml +22 -0
- package/lexicons/item-amount.yaml +34 -0
- package/lexicons/item-at-hand.yaml +15 -0
- package/lexicons/item-list-heading.yaml +21 -0
- package/lexicons/item-use.yaml +74 -0
- package/lexicons/layout-code.yaml +13 -0
- package/lexicons/layout-label.yaml +14 -0
- package/lexicons/layout-room.yaml +16 -0
- package/lexicons/measure-per-mark.yaml +8 -0
- package/lexicons/measure-value-lead.yaml +8 -0
- package/lexicons/model-code-label.yaml +17 -0
- package/lexicons/name-joiner.yaml +9 -0
- package/lexicons/name-label.yaml +10 -0
- package/lexicons/name-quote.yaml +7 -0
- package/lexicons/name-stem-suffix.yaml +12 -0
- package/lexicons/name-title-joiner.yaml +9 -0
- package/lexicons/period-after-term.yaml +25 -0
- package/lexicons/period-deadline.yaml +27 -0
- package/lexicons/period-overview-heading.yaml +10 -0
- package/lexicons/period-term-label.yaml +12 -0
- package/lexicons/phone-label.yaml +1 -0
- package/lexicons/place-word.yaml +7 -1
- package/lexicons/proper-name-word.yaml +55 -0
- package/lexicons/quantity-bound-label.yaml +13 -0
- package/lexicons/quantity-change-word.yaml +47 -0
- package/lexicons/quantity-range-word.yaml +6 -0
- package/lexicons/range-band-heading.yaml +16 -0
- package/lexicons/range-band-unit.yaml +34 -0
- package/lexicons/range-band-word.yaml +49 -0
- package/lexicons/rent-label.yaml +14 -0
- package/lexicons/rent-multiple-label.yaml +11 -0
- package/lexicons/rent-multiple-word.yaml +44 -0
- package/lexicons/requirement-heading.yaml +22 -0
- package/lexicons/requirement-item-ending.yaml +6 -0
- package/lexicons/requirement-length-unit.yaml +10 -0
- package/lexicons/requirement-length-word.yaml +14 -0
- package/lexicons/retention-bound.yaml +25 -0
- package/lexicons/retention-length-mark.yaml +7 -0
- package/lexicons/retention-length-modifier.yaml +6 -0
- package/lexicons/retention-object-mark.yaml +5 -0
- package/lexicons/retention-unit.yaml +5 -0
- package/lexicons/retention-verb.yaml +12 -0
- package/lexicons/return-clause.yaml +16 -0
- package/lexicons/return-item.yaml +7 -0
- package/lexicons/return-label.yaml +10 -0
- package/lexicons/return-type-word.yaml +16 -0
- package/lexicons/return-verb.yaml +6 -0
- package/lexicons/scaled-unit-form.yaml +59 -0
- package/lexicons/servings-column.yaml +26 -0
- package/lexicons/session-count-unit.yaml +10 -0
- package/lexicons/session-total.yaml +11 -0
- package/lexicons/stamp-order-label.yaml +25 -0
- package/lexicons/step-time-not-own.yaml +36 -0
- package/lexicons/step-time-total.yaml +9 -0
- package/lexicons/total-label-qualifier.yaml +33 -0
- package/lexicons/travel-time-word.yaml +38 -0
- package/lexicons/unit-area.yaml +48 -0
- package/lexicons/unit-context.yaml +36 -0
- package/lexicons/unit-equivalent-hedge.yaml +11 -0
- package/lexicons/unit-item-link.yaml +5 -0
- package/lexicons/unit-length.yaml +3 -0
- package/lexicons/unit-pressure.yaml +12 -0
- package/lexicons/unit-temperature.yaml +20 -0
- package/lexicons/unit-volume.yaml +33 -0
- package/lexicons/unit-zero.yaml +12 -0
- package/lexicons/unscaled-amount.yaml +12 -0
- package/lexicons/use-count-word.yaml +49 -0
- package/lexicons/use-interval-word.yaml +21 -0
- package/lexicons/walk-rate.yaml +23 -0
- package/lexicons/walk-word.yaml +20 -0
- package/lexicons/working-hours-break.yaml +10 -0
- package/lexicons/working-hours-total.yaml +11 -0
- package/package.json +1 -1
- package/src/emphasis.ts +53 -2
- package/src/pos.ts +11 -5
|
@@ -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,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,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,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,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,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,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,38 @@
|
|
|
1
|
+
# The words that make a length of time a travel time (connection-time-short). Group travel names a move: a length in
|
|
2
|
+
# the same sentence ("25 minutes by Metro", "allow 45 minutes") is read as the time it takes. Group bound makes a length
|
|
3
|
+
# an upper limit ("within 10 minutes"), which is not used. position says on which side of the length a bound is written.
|
|
4
|
+
# Matched as whole words, case aside.
|
|
5
|
+
id: travel-time-word
|
|
6
|
+
language: en
|
|
7
|
+
entries:
|
|
8
|
+
- { pattern: "travel", group: travel }
|
|
9
|
+
- { pattern: "travel time", group: travel }
|
|
10
|
+
- { pattern: "transfer", group: travel }
|
|
11
|
+
- { pattern: "connection", group: travel }
|
|
12
|
+
- { pattern: "minimum connection time", group: travel }
|
|
13
|
+
- { pattern: "allow", group: travel }
|
|
14
|
+
- { pattern: "walk", group: travel }
|
|
15
|
+
- { pattern: "walking", group: travel }
|
|
16
|
+
- { pattern: "on foot", group: travel }
|
|
17
|
+
- { pattern: "drive", group: travel }
|
|
18
|
+
- { pattern: "driving", group: travel }
|
|
19
|
+
- { pattern: "by car", group: travel }
|
|
20
|
+
- { pattern: "by Metro", group: travel }
|
|
21
|
+
- { pattern: "by subway", group: travel }
|
|
22
|
+
- { pattern: "by underground", group: travel }
|
|
23
|
+
- { pattern: "by Tube", group: travel }
|
|
24
|
+
- { pattern: "by rail", group: travel }
|
|
25
|
+
- { pattern: "by train", group: travel }
|
|
26
|
+
- { pattern: "train", group: travel }
|
|
27
|
+
- { pattern: "coach", group: travel }
|
|
28
|
+
- { pattern: "bus", group: travel }
|
|
29
|
+
- { pattern: "shuttle", group: travel }
|
|
30
|
+
- { pattern: "taxi", group: travel }
|
|
31
|
+
- { pattern: "cab", group: travel }
|
|
32
|
+
- { pattern: "within", position: before, group: bound }
|
|
33
|
+
- { pattern: "up to", position: before, group: bound }
|
|
34
|
+
- { pattern: "under", position: before, group: bound }
|
|
35
|
+
- { pattern: "less than", position: before, group: bound }
|
|
36
|
+
- { pattern: "no more than", position: before, group: bound }
|
|
37
|
+
- { pattern: "at most", position: before, group: bound }
|
|
38
|
+
- { pattern: "or less", position: after, group: bound }
|
|
@@ -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,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
|
|
@@ -24,3 +24,36 @@ entries:
|
|
|
24
24
|
weight: 1
|
|
25
25
|
- pattern: "gallon"
|
|
26
26
|
weight: 3.785411784
|
|
27
|
+
# Kitchen measures carry two factors: the US measure (tablespoon 14.8 mL, teaspoon 4.9 mL, cup 240 mL, the US legal cup) and the metric one (15, 5 and 250 mL); either may match.
|
|
28
|
+
- pattern: "tablespoons"
|
|
29
|
+
weight: 0.0147868
|
|
30
|
+
- pattern: "tablespoons"
|
|
31
|
+
weight: 0.015
|
|
32
|
+
- pattern: "tablespoon"
|
|
33
|
+
weight: 0.0147868
|
|
34
|
+
- pattern: "tablespoon"
|
|
35
|
+
weight: 0.015
|
|
36
|
+
- pattern: "tbsp"
|
|
37
|
+
weight: 0.0147868
|
|
38
|
+
- pattern: "tbsp"
|
|
39
|
+
weight: 0.015
|
|
40
|
+
- pattern: "teaspoons"
|
|
41
|
+
weight: 0.00492892
|
|
42
|
+
- pattern: "teaspoons"
|
|
43
|
+
weight: 0.005
|
|
44
|
+
- pattern: "teaspoon"
|
|
45
|
+
weight: 0.00492892
|
|
46
|
+
- pattern: "teaspoon"
|
|
47
|
+
weight: 0.005
|
|
48
|
+
- pattern: "tsp"
|
|
49
|
+
weight: 0.00492892
|
|
50
|
+
- pattern: "tsp"
|
|
51
|
+
weight: 0.005
|
|
52
|
+
- pattern: "cups"
|
|
53
|
+
weight: 0.24
|
|
54
|
+
- pattern: "cups"
|
|
55
|
+
weight: 0.25
|
|
56
|
+
- pattern: "cup"
|
|
57
|
+
weight: 0.24
|
|
58
|
+
- pattern: "cup"
|
|
59
|
+
weight: 0.25
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Units whose zero is not the base unit's zero (unit-mismatch). weight is what this unit reads when the base unit reads 0 (0 °C is 32 °F). A value converts to the base unit as (value − weight) × factor.
|
|
2
|
+
id: unit-zero
|
|
3
|
+
language: en
|
|
4
|
+
entries:
|
|
5
|
+
- pattern: "°F"
|
|
6
|
+
weight: 32
|
|
7
|
+
- pattern: "℉"
|
|
8
|
+
weight: 32
|
|
9
|
+
- pattern: "degrees Fahrenheit"
|
|
10
|
+
weight: 32
|
|
11
|
+
- pattern: "degrees F"
|
|
12
|
+
weight: 32
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Amounts left to the cook, which need not grow with the number of servings (scaled-quantity-mismatch). A row with a cell that
|
|
2
|
+
# holds one of these is not compared.
|
|
3
|
+
id: unscaled-amount
|
|
4
|
+
language: en
|
|
5
|
+
entries:
|
|
6
|
+
- pattern: "to taste"
|
|
7
|
+
- pattern: "as needed"
|
|
8
|
+
- pattern: "as required"
|
|
9
|
+
- pattern: "a pinch"
|
|
10
|
+
- pattern: "a dash"
|
|
11
|
+
- pattern: "optional"
|
|
12
|
+
- pattern: "to serve"
|