@chaffjs/lang-en 0.19.0 → 0.20.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.
@@ -0,0 +1,8 @@
1
+ # Words of magnitude written between an amount's number and its currency ($3 million, 2 billion yen). Matched as written.
2
+ id: amount-multiplier
3
+ language: en
4
+ entries:
5
+ - pattern: thousand
6
+ - pattern: million
7
+ - pattern: billion
8
+ - pattern: trillion
@@ -0,0 +1,20 @@
1
+ # Read by less-for-fewer: "less errors" is "fewer errors". "Less" after a noun or a number means "minus" ("revenue less
2
+ # costs") and is not read.
3
+ # group quantifier: a word for an amount, and the word for a count that takes its place before a countable plural (rewrite).
4
+ # group amount: plurals that name an amount of money rather than things to count ("less earnings", "less costs").
5
+ id: amount-quantifier
6
+ language: en
7
+ entries:
8
+ - { pattern: less, rewrite: fewer, group: quantifier }
9
+ - { pattern: earnings, group: amount }
10
+ - { pattern: proceeds, group: amount }
11
+ - { pattern: revenues, group: amount }
12
+ - { pattern: profits, group: amount }
13
+ - { pattern: sales, group: amount }
14
+ - { pattern: wages, group: amount }
15
+ - { pattern: damages, group: amount }
16
+ - { pattern: funds, group: amount }
17
+ - { pattern: costs, group: amount }
18
+ - { pattern: expenses, group: amount }
19
+ - { pattern: taxes, group: amount }
20
+ - { pattern: fees, group: amount }
@@ -0,0 +1,80 @@
1
+ # Worn phrases (clichés) in English. Read by cliche. Each is a figure of speech worn down to filler: the reader has
2
+ # seen it so often that it says nothing about this document. rewrite says what to write instead. Phrases another rule
3
+ # already reads ("game-changer" in ai-tell, "needless to say" in empty-intensifier, "the bottom line is" in
4
+ # announcing-opener) are left out, so one sentence gets one finding. "State-of-the-art", "cutting-edge" and "going forward"
5
+ # are left out too: papers, notices and terms use them as plain terms (measured on the corpus).
6
+ id: cliche
7
+ language: en
8
+ entries:
9
+ - pattern: at the end of the day
10
+ rewrite: say the conclusion itself
11
+ - pattern: think outside the box
12
+ rewrite: name the new approach
13
+ - pattern: low-hanging fruit
14
+ rewrite: name the easy tasks
15
+ - pattern: move the needle
16
+ rewrite: say what changes, by how much
17
+ - pattern: level playing field
18
+ rewrite: say what is made equal
19
+ - pattern: tip of the iceberg
20
+ rewrite: say what else there is
21
+ - pattern: in the same boat
22
+ rewrite: say what the two share
23
+ - pattern: back to the drawing board
24
+ rewrite: say what is redone
25
+ - pattern: perfect storm
26
+ rewrite: name the causes
27
+ - pattern: hit the ground running
28
+ rewrite: say what starts at once
29
+ - pattern: ballpark figure
30
+ rewrite: estimate
31
+ - pattern: push the envelope
32
+ rewrite: say which limit is passed
33
+ - pattern: best of both worlds
34
+ rewrite: name the two advantages
35
+ - pattern: few and far between
36
+ rewrite: rare
37
+ - pattern: only time will tell
38
+ rewrite: say when it will be known
39
+ - pattern: par for the course
40
+ rewrite: usual
41
+ - pattern: needle in a haystack
42
+ rewrite: say how hard it is to find
43
+ - pattern: when all is said and done
44
+ rewrite: say the conclusion itself
45
+ - pattern: last but not least
46
+ rewrite: finally
47
+ - pattern: it goes without saying
48
+ rewrite: drop it, or say it plainly
49
+ - pattern: first and foremost
50
+ rewrite: first
51
+ - pattern: elephant in the room
52
+ rewrite: name the problem
53
+ - pattern: raise the bar
54
+ rewrite: say what the new standard is
55
+ - pattern: on the same page
56
+ rewrite: agreed
57
+ - pattern: boil the ocean
58
+ rewrite: say what is too large to do
59
+ - pattern: take it to the next level
60
+ rewrite: say what improves
61
+ - pattern: in this day and age
62
+ rewrite: today
63
+ - pattern: whole new ball game
64
+ rewrite: say what changed
65
+ - pattern: writing on the wall
66
+ rewrite: name the sign
67
+ - pattern: touch base
68
+ rewrite: talk, meet or call
69
+ - pattern: circle back
70
+ rewrite: return to it, with a date
71
+ - pattern: paradigm shift
72
+ rewrite: name the change
73
+ - pattern: win-win
74
+ rewrite: say what each side gains
75
+ - pattern: think big picture
76
+ rewrite: name the wider goal
77
+ - pattern: hit the nail on the head
78
+ rewrite: say what was right
79
+ - pattern: the ball is in your court
80
+ rewrite: say what the reader must do next
@@ -0,0 +1,22 @@
1
+ # How an amount's currency is written. group says which currency, position on which side of the number ($20 before,
2
+ # 20 dollars after). One currency can be written several ways, so currency-notation-consistency checks that one
3
+ # document does not mix them. "pounds" is left out: it is also a weight. Matched as written.
4
+ id: currency-notation
5
+ language: en
6
+ entries:
7
+ - { pattern: "$", position: before, group: USD }
8
+ - { pattern: "US$", position: before, group: USD }
9
+ - { pattern: "USD", position: before, group: USD }
10
+ - { pattern: "USD", position: after, group: USD }
11
+ - { pattern: "dollars", position: after, group: USD }
12
+ - { pattern: "¥", position: before, group: JPY }
13
+ - { pattern: "JPY", position: before, group: JPY }
14
+ - { pattern: "JPY", position: after, group: JPY }
15
+ - { pattern: "yen", position: after, group: JPY }
16
+ - { pattern: "€", position: before, group: EUR }
17
+ - { pattern: "EUR", position: before, group: EUR }
18
+ - { pattern: "EUR", position: after, group: EUR }
19
+ - { pattern: "euros", position: after, group: EUR }
20
+ - { pattern: "£", position: before, group: GBP }
21
+ - { pattern: "GBP", position: before, group: GBP }
22
+ - { pattern: "GBP", position: after, group: GBP }
@@ -0,0 +1,35 @@
1
+ # Read by dangling-participle: a sentence that opens with a participle phrase and whose subject is an empty "it" or
2
+ # "there" ("Having reviewed the code, it is ready.").
3
+ # group subject: the empty subjects after the comma.
4
+ # group exempt: openings read as fixed phrases, not as an action someone did ("Given the data", "Based on", "Generally
5
+ # speaking"). Matched word by word from the start of the sentence, without case.
6
+ id: dangling-participle
7
+ language: en
8
+ entries:
9
+ - { pattern: it, group: subject }
10
+ - { pattern: there, group: subject }
11
+ - { pattern: given, group: exempt }
12
+ - { pattern: based, group: exempt }
13
+ - { pattern: considering, group: exempt }
14
+ - { pattern: assuming, group: exempt }
15
+ - { pattern: regarding, group: exempt }
16
+ - { pattern: concerning, group: exempt }
17
+ - { pattern: including, group: exempt }
18
+ - { pattern: excluding, group: exempt }
19
+ - { pattern: following, group: exempt }
20
+ - { pattern: according, group: exempt }
21
+ - { pattern: provided, group: exempt }
22
+ - { pattern: providing, group: exempt }
23
+ - { pattern: depending, group: exempt }
24
+ - { pattern: judging, group: exempt }
25
+ - { pattern: compared, group: exempt }
26
+ - { pattern: granted, group: exempt }
27
+ - { pattern: barring, group: exempt }
28
+ - { pattern: speaking, group: exempt }
29
+ - { pattern: having said that, group: exempt }
30
+ - { pattern: generally speaking, group: exempt }
31
+ - { pattern: strictly speaking, group: exempt }
32
+ - { pattern: broadly speaking, group: exempt }
33
+ - { pattern: that said, group: exempt }
34
+ - { pattern: seeing as, group: exempt }
35
+ - { pattern: seeing that, group: exempt }
@@ -0,0 +1,25 @@
1
+ # Words that end in a full stop of their own (abbreviations). A heading ending in one does not end with a mark, so
2
+ # heading-end-punctuation-mix leaves it out of the comparison. Matched as the heading's last word, case as written.
3
+ id: heading-end-word
4
+ language: en
5
+ entries:
6
+ - pattern: etc.
7
+ - pattern: Inc.
8
+ - pattern: Ltd.
9
+ - pattern: Co.
10
+ - pattern: Corp.
11
+ - pattern: vs.
12
+ - pattern: e.g.
13
+ - pattern: i.e.
14
+ - pattern: No.
15
+ - pattern: St.
16
+ - pattern: Dr.
17
+ - pattern: Jr.
18
+ - pattern: Sr.
19
+ - pattern: Mr.
20
+ - pattern: Ms.
21
+ - pattern: Mrs.
22
+ - pattern: U.S.
23
+ - pattern: U.K.
24
+ - pattern: a.m.
25
+ - pattern: p.m.
@@ -0,0 +1,31 @@
1
+ # Words and phrases that formal English treats as nonstandard, and the standard form (instead_of). Read by nonstandard-word.
2
+ # Only forms that a usage guide rejects outright: "irregardless" is not a word in formal writing, "comprised of" mixes
3
+ # "comprises" and "is composed of". Misspellings are in known-misspelling, homophone slips ("could of") in homophone-slip.
4
+ # Self-compiled; not copied from any published list.
5
+ id: nonstandard-word
6
+ language: en
7
+ entries:
8
+ - pattern: irregardless
9
+ instead_of: regardless
10
+ - pattern: is comprised of
11
+ instead_of: comprises
12
+ - pattern: are comprised of
13
+ instead_of: comprise
14
+ - pattern: be comprised of
15
+ instead_of: comprise
16
+ - pattern: comprises of
17
+ instead_of: comprises
18
+ - pattern: comprising of
19
+ instead_of: comprising
20
+ - pattern: anyways
21
+ instead_of: anyway
22
+ - pattern: supposably
23
+ instead_of: supposedly
24
+ - pattern: conversate
25
+ instead_of: converse
26
+ - pattern: on accident
27
+ instead_of: by accident
28
+ - pattern: heighth
29
+ instead_of: height
30
+ - pattern: could care less
31
+ instead_of: couldn't care less
@@ -0,0 +1,6 @@
1
+ # Marks that attach a numbered note to a word in the text (※1 in Japanese). English writes notes as Markdown footnotes
2
+ # ([^1]), which footnote-mismatch reads without a list, or as superscripts that plain text does not keep, so there are
3
+ # none; the list exists so both languages name the same lists.
4
+ id: note-mark
5
+ language: en
6
+ entries: []
@@ -0,0 +1,47 @@
1
+ # Short words written with a full stop before a number they label (vol. 28, H.R. 5376, approx. 40). The sentence
2
+ # splitter may end a sentence at that full stop, so the number after one of these does not open a sentence. Read by
3
+ # numeral-sentence-start, compared without case and without the full stop.
4
+ id: numeral-reference-label
5
+ language: en
6
+ entries:
7
+ - pattern: vol
8
+ - pattern: vols
9
+ - pattern: no
10
+ - pattern: nos
11
+ - pattern: pt
12
+ - pattern: pts
13
+ - pattern: ch
14
+ - pattern: chs
15
+ - pattern: fig
16
+ - pattern: figs
17
+ - pattern: p
18
+ - pattern: pp
19
+ - pattern: para
20
+ - pattern: paras
21
+ - pattern: sec
22
+ - pattern: sect
23
+ - pattern: art
24
+ - pattern: eq
25
+ - pattern: eqs
26
+ - pattern: approx
27
+ - pattern: ca
28
+ - pattern: est
29
+ - pattern: ref
30
+ - pattern: refs
31
+ - pattern: rev
32
+ - pattern: ver
33
+ - pattern: ed
34
+ - pattern: eds
35
+ - pattern: ex
36
+ - pattern: cf
37
+ - pattern: al
38
+ - pattern: tbl
39
+ - pattern: tbls
40
+ - pattern: subsec
41
+ - pattern: subsecs
42
+ - pattern: sch
43
+ - pattern: reg
44
+ - pattern: regs
45
+ - pattern: cl
46
+ - pattern: exh
47
+ - pattern: supp
@@ -0,0 +1,13 @@
1
+ # The letters written after a number to make it an ordinal (1st, 22nd, 113th), and the ending of the number each one
2
+ # goes with (group). The longest ending that the number ends in decides: 11, 12 and 13 take "th" though they end in 1,
3
+ # 2 and 3; an empty group is every other number. "2d" and "3d" (legal citations) are not ordinals read here.
4
+ id: ordinal-suffix
5
+ language: en
6
+ entries:
7
+ - { pattern: "st", group: "1" }
8
+ - { pattern: "nd", group: "2" }
9
+ - { pattern: "rd", group: "3" }
10
+ - { pattern: "th", group: "11" }
11
+ - { pattern: "th", group: "12" }
12
+ - { pattern: "th", group: "13" }
13
+ - { pattern: "th", group: "" }
@@ -0,0 +1,12 @@
1
+ # Marks written between two numbers to make a range (10–20, 10-20). range-notation-consistency checks that one
2
+ # document does not mix them. "to" and "through" are left out: prose writes them beside a table's dash on purpose,
3
+ # and "from 10 to 20" also says a change. A hyphen (group: ambiguous) also joins
4
+ # the parts of a number (section 2-3, NSF 13-542), so it makes a range only when a unit or a word follows (6-12 years,
5
+ # 10-20%). Matched as written.
6
+ id: range-notation
7
+ language: en
8
+ entries:
9
+ - pattern: –
10
+ - { pattern: "-", group: ambiguous }
11
+ - pattern: "~"
12
+ - pattern: 〜
@@ -0,0 +1,8 @@
1
+ # The two words that open a restrictive relative clause ("the file which contains", "the file that contains"). Read by
2
+ # which-that-consistency, which counts each group in a document and points at the fewer. Neither is wrong: American
3
+ # usage guides prefer "that", British ones accept both.
4
+ id: restrictive-relative
5
+ language: en
6
+ entries:
7
+ - { pattern: which, group: which }
8
+ - { pattern: that, group: that }
@@ -0,0 +1,11 @@
1
+ # The words between a percentage and the group it is a share of (share-whole), and on which side of the percentage
2
+ # the group is written: "62% of all respondents" puts it after.
3
+ id: share-whole-link
4
+ language: en
5
+ entries:
6
+ - { pattern: "of", position: after }
7
+ - { pattern: "of the", position: after }
8
+ - { pattern: "of all", position: after }
9
+ - { pattern: "of all the", position: after }
10
+ - { pattern: "of our", position: after }
11
+ - { pattern: "of its", position: after }
@@ -0,0 +1,20 @@
1
+ # Groups of people or things a percentage can be a share of ("62% of respondents"). A share of one of these cannot
2
+ # pass 100%. Words that also take a growth or a ratio ("of last year", "of the budget") are left out.
3
+ id: share-whole
4
+ language: en
5
+ entries:
6
+ - pattern: respondents
7
+ - pattern: participants
8
+ - pattern: employees
9
+ - pattern: users
10
+ - pattern: customers
11
+ - pattern: students
12
+ - pattern: households
13
+ - pattern: voters
14
+ - pattern: members
15
+ - pattern: patients
16
+ - pattern: adults
17
+ - pattern: children
18
+ - pattern: applicants
19
+ - pattern: companies
20
+ - pattern: population
@@ -0,0 +1,8 @@
1
+ # Words written before a step's number (Step 3). A heading that starts with one and a number, or an item of a numbered
2
+ # list, is a step; when the text says "see step 5" and no step has that number, step-reference-missing reports it.
3
+ # Matched as written.
4
+ id: step-word
5
+ language: en
6
+ entries:
7
+ - pattern: Step
8
+ - pattern: step
@@ -0,0 +1,8 @@
1
+ # Headings of a table of contents. The list items under one are matched against the document's headings
2
+ # (toc-heading-mismatch). Matched regardless of case.
3
+ id: toc-heading
4
+ language: en
5
+ entries:
6
+ - pattern: Table of Contents
7
+ - pattern: Contents
8
+ - pattern: TOC
@@ -0,0 +1,126 @@
1
+ # Uncomparable adjectives given a degree ("very unique", "more unanimous"). Read by uncomparable-graded.
2
+ # An adjective here names a state that is there or not, so a grade says nothing more. "Almost", "nearly" and "truly" are
3
+ # left out: "almost unique" and "nearly impossible" say how close, which is a real claim. rewrite is the form without the grade.
4
+ id: uncomparable-graded
5
+ language: en
6
+ entries:
7
+ - pattern: very unique
8
+ rewrite: unique
9
+ - pattern: more unique
10
+ rewrite: unique
11
+ - pattern: most unique
12
+ rewrite: unique
13
+ - pattern: so unique
14
+ rewrite: unique
15
+ - pattern: rather unique
16
+ rewrite: unique
17
+ - pattern: somewhat unique
18
+ rewrite: unique
19
+ - pattern: extremely unique
20
+ rewrite: unique
21
+ - pattern: really unique
22
+ rewrite: unique
23
+ - pattern: fairly unique
24
+ rewrite: unique
25
+ - pattern: less unique
26
+ rewrite: unique
27
+ - pattern: very unanimous
28
+ rewrite: unanimous
29
+ - pattern: more unanimous
30
+ rewrite: unanimous
31
+ - pattern: most unanimous
32
+ rewrite: unanimous
33
+ - pattern: so unanimous
34
+ rewrite: unanimous
35
+ - pattern: rather unanimous
36
+ rewrite: unanimous
37
+ - pattern: somewhat unanimous
38
+ rewrite: unanimous
39
+ - pattern: extremely unanimous
40
+ rewrite: unanimous
41
+ - pattern: really unanimous
42
+ rewrite: unanimous
43
+ - pattern: fairly unanimous
44
+ rewrite: unanimous
45
+ - pattern: less unanimous
46
+ rewrite: unanimous
47
+ - pattern: very infinite
48
+ rewrite: infinite
49
+ - pattern: more infinite
50
+ rewrite: infinite
51
+ - pattern: most infinite
52
+ rewrite: infinite
53
+ - pattern: so infinite
54
+ rewrite: infinite
55
+ - pattern: rather infinite
56
+ rewrite: infinite
57
+ - pattern: somewhat infinite
58
+ rewrite: infinite
59
+ - pattern: extremely infinite
60
+ rewrite: infinite
61
+ - pattern: really infinite
62
+ rewrite: infinite
63
+ - pattern: fairly infinite
64
+ rewrite: infinite
65
+ - pattern: less infinite
66
+ rewrite: infinite
67
+ - pattern: very impossible
68
+ rewrite: impossible
69
+ - pattern: more impossible
70
+ rewrite: impossible
71
+ - pattern: most impossible
72
+ rewrite: impossible
73
+ - pattern: so impossible
74
+ rewrite: impossible
75
+ - pattern: rather impossible
76
+ rewrite: impossible
77
+ - pattern: somewhat impossible
78
+ rewrite: impossible
79
+ - pattern: extremely impossible
80
+ rewrite: impossible
81
+ - pattern: really impossible
82
+ rewrite: impossible
83
+ - pattern: fairly impossible
84
+ rewrite: impossible
85
+ - pattern: less impossible
86
+ rewrite: impossible
87
+ - pattern: very inevitable
88
+ rewrite: inevitable
89
+ - pattern: more inevitable
90
+ rewrite: inevitable
91
+ - pattern: most inevitable
92
+ rewrite: inevitable
93
+ - pattern: so inevitable
94
+ rewrite: inevitable
95
+ - pattern: rather inevitable
96
+ rewrite: inevitable
97
+ - pattern: somewhat inevitable
98
+ rewrite: inevitable
99
+ - pattern: extremely inevitable
100
+ rewrite: inevitable
101
+ - pattern: really inevitable
102
+ rewrite: inevitable
103
+ - pattern: fairly inevitable
104
+ rewrite: inevitable
105
+ - pattern: less inevitable
106
+ rewrite: inevitable
107
+ - pattern: very irrevocable
108
+ rewrite: irrevocable
109
+ - pattern: more irrevocable
110
+ rewrite: irrevocable
111
+ - pattern: most irrevocable
112
+ rewrite: irrevocable
113
+ - pattern: so irrevocable
114
+ rewrite: irrevocable
115
+ - pattern: rather irrevocable
116
+ rewrite: irrevocable
117
+ - pattern: somewhat irrevocable
118
+ rewrite: irrevocable
119
+ - pattern: extremely irrevocable
120
+ rewrite: irrevocable
121
+ - pattern: really irrevocable
122
+ rewrite: irrevocable
123
+ - pattern: fairly irrevocable
124
+ rewrite: irrevocable
125
+ - pattern: less irrevocable
126
+ rewrite: irrevocable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chaffjs/lang-en",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "English language adapter for chaff",
5
5
  "license": "MIT",
6
6
  "author": "isamu",