@chaffjs/lang-en 0.20.0 → 0.22.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.
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../src/definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAwB9C,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,KAAG,OAAsC,CAAC;AAE3F,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,KAAG,MAAM,GAAG,SACuC,CAAC;AAMrG,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,KAAG,OAAO,EAW/C,CAAC"}
1
+ {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../src/definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAwB9C,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,KAAG,OAAsC,CAAC;AAE3F,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,KAAG,MAAM,GAAG,SACuC,CAAC;AASrG,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,KAAG,OAAO,EAY/C,CAAC"}
@@ -22,6 +22,8 @@ export const definitionScopeDepth = (text) => DEFINITION_SCOPE.test(text) ? WIDE
22
22
  /** "has the meaning given in section 3" points at a definition elsewhere instead of making one. */
23
23
  const POINTER = /^ has the meaning given (?:in|by)\b/u;
24
24
  const isPointer = (text, end) => POINTER.test(text.slice(end - " has the meaning".length));
25
+ /** ("Seller") has no word that says it defines: the same parentheses quote an example ("silently fails"). */
26
+ const BARE = /^\(["“]/u;
25
27
  export const definitions = (text) => DEFINITIONS.flatMap((pattern) => [...text.matchAll(pattern)].flatMap((match) => {
26
28
  const term = match.groups?.["term"];
27
29
  if (term === undefined)
@@ -30,6 +32,7 @@ export const definitions = (text) => DEFINITIONS.flatMap((pattern) => [...text.m
30
32
  const inline = match[0].startsWith("(");
31
33
  const namesAParty = inline && APPLIES.test(text);
32
34
  const scope = isPointer(text, end) || namesAParty ? { scope: "local" } : {};
33
- return [{ start: match.index, end, attrs: { term, ...scope, ...(inline ? { placement: "inline" } : {}) } }];
35
+ const bare = BARE.test(match[0]) ? { form: "bare" } : {};
36
+ return [{ start: match.index, end, attrs: { term, ...scope, ...(inline ? { placement: "inline" } : {}), ...bare } }];
34
37
  }));
35
38
  //# sourceMappingURL=definitions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../src/definitions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAEvD,oEAAoE;AAEpE,MAAM,WAAW,GAAG;IAClB,mFAAmF;IACnF,4DAA4D;IAC5D,iEAAiE;CAClE,CAAC;AAEF;;;GAGG;AACH,MAAM,gBAAgB,GAAG,+GAA+G,CAAC;AACzI,iHAAiH;AACjH,MAAM,OAAO,GAAG,2BAA2B,CAAC;AAC5C,0HAA0H;AAC1H,MAAM,WAAW,GAA2C;IAC1D,CAAC,4BAA4B,EAAE,UAAU,CAAC;IAC1C,CAAC,+BAA+B,EAAE,aAAa,CAAC;CACjD,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,IAAY,EAAW,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAE3F,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,IAAY,EAAsB,EAAE,CACvE,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAErG,mGAAmG;AACnG,MAAM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,EAAE,CAC9B,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;IAC5C,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,EAAE,CAAC;IAClC,MAAM,GAAG,GAAG,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1C,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACxC,MAAM,WAAW,GAAG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,MAAM,KAAK,GAAG,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5E,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACzD,OAAO,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,EAAE,CAAC,CAAC;AACvH,CAAC,CAAC,CACH,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The tagger reads "A heading counts" as article + gerund + plural noun, but "heading" is also a noun, so "counts" may be its
3
+ * verb. AlsoNoun=Yes says so. The dictionary gives most gerunds a noun reading too (the running of), so a gerund that is
4
+ * also an adjective (missing, growing) stays a modifier: "a missing values" is a slip.
5
+ */
6
+ export declare const gerundFeatures: (surface: string, tagsOf: (word: string) => readonly string[] | undefined) => Readonly<Record<string, string>>;
7
+ //# sourceMappingURL=gerund.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gerund.d.ts","sourceRoot":"","sources":["../src/gerund.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,MAAM,EAAE,GAAG,SAAS,KAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAIxI,CAAC"}
package/dist/gerund.js ADDED
@@ -0,0 +1,14 @@
1
+ // An -ing form the dictionary knows as a noun and not as an adjective (heading, finding, setting) can head a noun phrase.
2
+ const COMMON_NOUN_TAGS = new Set(["NN", "NNS"]);
3
+ const ADJECTIVE_TAGS = new Set(["JJ", "JJR", "JJS"]);
4
+ /**
5
+ * The tagger reads "A heading counts" as article + gerund + plural noun, but "heading" is also a noun, so "counts" may be its
6
+ * verb. AlsoNoun=Yes says so. The dictionary gives most gerunds a noun reading too (the running of), so a gerund that is
7
+ * also an adjective (missing, growing) stays a modifier: "a missing values" is a slip.
8
+ */
9
+ export const gerundFeatures = (surface, tagsOf) => {
10
+ const tags = tagsOf(surface.toLowerCase()) ?? [];
11
+ const nounOnly = tags.some((tag) => COMMON_NOUN_TAGS.has(tag)) && !tags.some((tag) => ADJECTIVE_TAGS.has(tag));
12
+ return nounOnly ? { VerbForm: "Ger", AlsoNoun: "Yes" } : { VerbForm: "Ger" };
13
+ };
14
+ //# sourceMappingURL=gerund.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gerund.js","sourceRoot":"","sources":["../src/gerund.ts"],"names":[],"mappings":"AAAA,0HAA0H;AAE1H,MAAM,gBAAgB,GAAwB,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;AACrE,MAAM,cAAc,GAAwB,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;AAE1E;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAe,EAAE,MAAuD,EAAoC,EAAE;IAC3I,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;IACjD,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,gBAAgB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/G,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AAC/E,CAAC,CAAC"}
package/dist/pos.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"pos.d.ts","sourceRoot":"","sources":["../src/pos.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAkF5C,eAAO,MAAM,IAAI,GAAI,KAAK,MAAM,KAAG,MAAiE,CAAC;AAkJrG,eAAO,MAAM,OAAO,QAAO,IAI1B,CAAC;AAEF,eAAO,MAAM,OAAO,QAAO,OAAoC,CAAC;AA2ChE,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,KAAG,KAAK,EAAE,GAAG,SAMjD,CAAC"}
1
+ {"version":3,"file":"pos.d.ts","sourceRoot":"","sources":["../src/pos.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAmF5C,eAAO,MAAM,IAAI,GAAI,KAAK,MAAM,KAAG,MAAiE,CAAC;AAkJrG,eAAO,MAAM,OAAO,QAAO,IAI1B,CAAC;AAEF,eAAO,MAAM,OAAO,QAAO,OAAoC,CAAC;AA2ChE,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,KAAG,KAAK,EAAE,GAAG,SAMjD,CAAC"}
package/dist/pos.js CHANGED
@@ -5,6 +5,7 @@ import { blankLongRuns } from "./long-runs.js";
5
5
  import { lowercasedAt, properNounChecked, rereadAt, sentenceInitialCommonWord } from "./proper-noun.js";
6
6
  import { isStativeParticiple, stativeVocabulary } from "./stative-participle.js";
7
7
  import { isEmphasisedAdverb } from "./emphasis.js";
8
+ import { gerundFeatures } from "./gerund.js";
8
9
  const require = createRequire(import.meta.url);
9
10
  const isRecord = (value) => typeof value === "object" && value !== null;
10
11
  const isCallable = (value) => typeof value === "function";
@@ -174,7 +175,7 @@ const featuresOf = (tagged, at) => {
174
175
  if (entry === undefined)
175
176
  return {};
176
177
  if (entry.pos === "VBG")
177
- return { features: { VerbForm: "Ger" } };
178
+ return { features: gerundFeatures(entry.value, state.vocabulary) };
178
179
  if (entry.pos !== "VBN")
179
180
  return withOtherReading(entry, nounOrDeterminerFeatures(entry));
180
181
  return { features: isPassive(tagged, at) ? { VerbForm: "Part", Voice: "Pass" } : { VerbForm: "Part" } };
package/dist/pos.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"pos.js","sourceRoot":"","sources":["../src/pos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,QAAQ,EAAE,yBAAyB,EAA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CAAC,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAC1F,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAuB,EAAE;IAC5D,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC;IAC3B,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC3C,qDAAqD;IACrD,MAAM,KAAK,GAAG,mBAAmB,CAAC,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;IAClE,OAAO,MAAM,CAAC,KAAK,EAAE,uBAAuB,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;AACtF,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ # Weekdays and months, which English always capitalises. Read by calendar-name-case, which points at one written in lower
2
+ # case ("on monday"). May, March and August are left out, since "may", "march" and "august" are also ordinary words;
3
+ # abbreviations (mon, jan) are left out, since they are also used as short keys in data.
4
+ id: calendar-name
5
+ language: en
6
+ entries:
7
+ - pattern: Monday
8
+ - pattern: Tuesday
9
+ - pattern: Wednesday
10
+ - pattern: Thursday
11
+ - pattern: Friday
12
+ - pattern: Saturday
13
+ - pattern: Sunday
14
+ - pattern: January
15
+ - pattern: February
16
+ - pattern: April
17
+ - pattern: June
18
+ - pattern: July
19
+ - pattern: September
20
+ - pattern: October
21
+ - pattern: November
22
+ - pattern: December
@@ -78,3 +78,59 @@ entries:
78
78
  rewrite: say what was right
79
79
  - pattern: the ball is in your court
80
80
  rewrite: say what the reader must do next
81
+ - pattern: bang for the buck
82
+ rewrite: say what it costs and what it returns
83
+ - pattern: bang for your buck
84
+ rewrite: say what it costs and what it returns
85
+ - pattern: the new normal
86
+ rewrite: say what is now usual
87
+ - pattern: go the extra mile
88
+ rewrite: say what extra was done
89
+ - pattern: no-brainer
90
+ rewrite: say why the choice is clear
91
+ - pattern: double-edged sword
92
+ rewrite: name the gain and the cost
93
+ - pattern: at the drop of a hat
94
+ rewrite: at once
95
+ - pattern: in a nutshell
96
+ rewrite: in short, or give the summary
97
+ - pattern: a drop in the bucket
98
+ rewrite: say how small, against what
99
+ - pattern: get the ball rolling
100
+ rewrite: start, and say what starts
101
+ - pattern: on the back burner
102
+ rewrite: say it is postponed, and until when
103
+ - pattern: leverage synergies
104
+ rewrite: name the combined gain
105
+ - pattern: reinvent the wheel
106
+ rewrite: name what already exists
107
+ - pattern: the proof is in the pudding
108
+ rewrite: name the evidence
109
+ - pattern: stand the test of time
110
+ rewrite: say how long it has lasted
111
+ - pattern: in the grand scheme of things
112
+ rewrite: say what it is compared with
113
+ - pattern: avoid like the plague
114
+ rewrite: avoid
115
+ - pattern: since the dawn of time
116
+ rewrite: say since when
117
+ - pattern: easier said than done
118
+ rewrite: say what makes it hard
119
+ - pattern: silver lining
120
+ rewrite: name the benefit
121
+ - pattern: tried and true
122
+ rewrite: say how it was tested
123
+ - pattern: jump on the bandwagon
124
+ rewrite: say who followed and why
125
+ - pattern: nip it in the bud
126
+ rewrite: stop it early, and say how
127
+ - pattern: the lion's share
128
+ rewrite: most, or give the share
129
+ - pattern: a blessing in disguise
130
+ rewrite: name the benefit
131
+ - pattern: ahead of the curve
132
+ rewrite: say who is ahead, and by how much
133
+ - pattern: move the goalposts
134
+ rewrite: say what changed
135
+ - pattern: light at the end of the tunnel
136
+ rewrite: say when it ends
@@ -0,0 +1,41 @@
1
+ # Words comparative-without-baseline reads: a comparison that names nothing to compare with ("The new engine is faster.").
2
+ # more: the word that makes a comparative of an adjective ("is more efficient.").
3
+ # comparative: one-word comparatives read when they close a clause after a verb ("is faster.", "runs better,").
4
+ # baseline: words that name what is compared with. One in the same sentence or the one before, and the comparison has
5
+ # its baseline.
6
+ # condition: a word before the comparative that puts it under a condition or a hypothesis ("if it looks better", "would be
7
+ # easier"); the comparison is then with the case without it.
8
+ id: comparative-baseline
9
+ language: en
10
+ entries:
11
+ - { pattern: more, group: more }
12
+ - { pattern: faster, group: comparative }
13
+ - { pattern: better, group: comparative }
14
+ - { pattern: quicker, group: comparative }
15
+ - { pattern: easier, group: comparative }
16
+ - { pattern: simpler, group: comparative }
17
+ - { pattern: cheaper, group: comparative }
18
+ - { pattern: safer, group: comparative }
19
+ - { pattern: smarter, group: comparative }
20
+ - { pattern: stronger, group: comparative }
21
+ - { pattern: smoother, group: comparative }
22
+ - { pattern: than, group: baseline }
23
+ - { pattern: before, group: baseline }
24
+ - { pattern: previous, group: baseline }
25
+ - { pattern: previously, group: baseline }
26
+ - { pattern: earlier, group: baseline }
27
+ - { pattern: prior, group: baseline }
28
+ - { pattern: old, group: baseline }
29
+ - { pattern: older, group: baseline }
30
+ - { pattern: original, group: baseline }
31
+ - { pattern: existing, group: baseline }
32
+ - { pattern: compared, group: baseline }
33
+ - { pattern: versus, group: baseline }
34
+ - { pattern: vs, group: baseline }
35
+ - { pattern: if, group: condition }
36
+ - { pattern: unless, group: condition }
37
+ - { pattern: would, group: condition }
38
+ - { pattern: "'d", group: condition }
39
+ - { pattern: could, group: condition }
40
+ - { pattern: might, group: condition }
41
+ - { pattern: may, group: condition }
@@ -0,0 +1,8 @@
1
+ # The ways of writing an ellipsis in English. ellipsis-consistency points at the one a document uses less; none is
2
+ # called right. Matched as written, longest first, and only where no other dot or ellipsis character touches it.
3
+ id: ellipsis
4
+ language: en
5
+ entries:
6
+ - pattern: …
7
+ - pattern: "..."
8
+ - pattern: ". . ."
@@ -52,6 +52,7 @@ entries:
52
52
  - pattern: emoji
53
53
  - pattern: enum
54
54
  - pattern: env
55
+ - pattern: eval
55
56
  - pattern: facto
56
57
  - pattern: favicon
57
58
  - pattern: fide
@@ -0,0 +1,26 @@
1
+ # Decorative figures: a mechanism or a step described as magic or a spell instead of said ("works like magic", "a
2
+ # one-line incantation"). Read by figurative-density, per length of the document: one is style, a pile hides what happens.
3
+ # "Game-changer" and "tapestry" are in ai-tell and not listed again.
4
+ id: figurative-phrase
5
+ language: en
6
+ entries:
7
+ - pattern: like magic
8
+ rewrite: say what happens automatically
9
+ - pattern: as if by magic
10
+ rewrite: say what happens automatically
11
+ - pattern: magically
12
+ rewrite: say what does it
13
+ - pattern: magical
14
+ rewrite: say what it does
15
+ - pattern: incantation
16
+ rewrite: say what the command does
17
+ - pattern: like a charm
18
+ rewrite: say what worked and how you checked
19
+ - pattern: like clockwork
20
+ rewrite: give the schedule or the rate
21
+ - pattern: silver bullet
22
+ rewrite: say what it fixes and what it does not
23
+ - pattern: secret sauce
24
+ rewrite: name the method
25
+ - pattern: superpower
26
+ rewrite: name the capability
@@ -0,0 +1,13 @@
1
+ # Heading labels that say nothing about the section. numbered-generic-heading points at a heading that is only one of
2
+ # these and a number ("Benefit 1", "Tip 2"). Step, lesson, reason and feature labels are left out: in a procedure, a course,
3
+ # an argument or a specification the numbered unit is itself the content and is cited by its number.
4
+ id: generic-heading-label
5
+ language: en
6
+ entries:
7
+ - pattern: Benefit
8
+ - pattern: Advantage
9
+ - pattern: Disadvantage
10
+ - pattern: Point
11
+ - pattern: Key point
12
+ - pattern: Tip
13
+ - pattern: Takeaway
@@ -175,3 +175,241 @@ entries:
175
175
  instead_of: response
176
176
  - pattern: accesible
177
177
  instead_of: accessible
178
+ - pattern: acommodate
179
+ instead_of: accommodate
180
+ - pattern: accomodation
181
+ instead_of: accommodation
182
+ - pattern: adress
183
+ instead_of: address
184
+ - pattern: apparant
185
+ instead_of: apparent
186
+ - pattern: aquire
187
+ instead_of: acquire
188
+ - pattern: aquired
189
+ instead_of: acquired
190
+ - pattern: availible
191
+ instead_of: available
192
+ - pattern: avaliable
193
+ instead_of: available
194
+ - pattern: beleived
195
+ instead_of: believed
196
+ - pattern: cemetary
197
+ instead_of: cemetery
198
+ - pattern: changable
199
+ instead_of: changeable
200
+ - pattern: collegue
201
+ instead_of: colleague
202
+ - pattern: comittee
203
+ instead_of: committee
204
+ - pattern: commitee
205
+ instead_of: committee
206
+ - pattern: comparision
207
+ instead_of: comparison
208
+ - pattern: concensus
209
+ instead_of: consensus
210
+ - pattern: consistant
211
+ instead_of: consistent
212
+ - pattern: convienient
213
+ instead_of: convenient
214
+ - pattern: convienence
215
+ instead_of: convenience
216
+ - pattern: critisism
217
+ instead_of: criticism
218
+ - pattern: definitly
219
+ instead_of: definitely
220
+ - pattern: desparate
221
+ instead_of: desperate
222
+ - pattern: developement
223
+ instead_of: development
224
+ - pattern: dilemna
225
+ instead_of: dilemma
226
+ - pattern: diffrent
227
+ instead_of: different
228
+ - pattern: dissapear
229
+ instead_of: disappear
230
+ - pattern: dissappear
231
+ instead_of: disappear
232
+ - pattern: efficent
233
+ instead_of: efficient
234
+ - pattern: embarassed
235
+ instead_of: embarrassed
236
+ - pattern: enviromental
237
+ instead_of: environmental
238
+ - pattern: equiptment
239
+ instead_of: equipment
240
+ - pattern: excellant
241
+ instead_of: excellent
242
+ - pattern: excercise
243
+ instead_of: exercise
244
+ - pattern: explaination
245
+ instead_of: explanation
246
+ - pattern: familar
247
+ instead_of: familiar
248
+ - pattern: feasable
249
+ instead_of: feasible
250
+ - pattern: flourescent
251
+ instead_of: fluorescent
252
+ - pattern: foriegn
253
+ instead_of: foreign
254
+ - pattern: fullfill
255
+ instead_of: fulfill
256
+ - pattern: furthur
257
+ instead_of: further
258
+ - pattern: guarentee
259
+ instead_of: guarantee
260
+ - pattern: happend
261
+ instead_of: happened
262
+ - pattern: hierachy
263
+ instead_of: hierarchy
264
+ - pattern: imediately
265
+ instead_of: immediately
266
+ - pattern: immediatley
267
+ instead_of: immediately
268
+ - pattern: implmentation
269
+ instead_of: implementation
270
+ - pattern: incidently
271
+ instead_of: incidentally
272
+ - pattern: independantly
273
+ instead_of: independently
274
+ - pattern: indispensible
275
+ instead_of: indispensable
276
+ - pattern: intial
277
+ instead_of: initial
278
+ - pattern: intresting
279
+ instead_of: interesting
280
+ - pattern: irrelevent
281
+ instead_of: irrelevant
282
+ - pattern: langauge
283
+ instead_of: language
284
+ - pattern: liason
285
+ instead_of: liaison
286
+ - pattern: maintenence
287
+ instead_of: maintenance
288
+ - pattern: mischievious
289
+ instead_of: mischievous
290
+ - pattern: neccessarily
291
+ instead_of: necessarily
292
+ - pattern: neice
293
+ instead_of: niece
294
+ - pattern: occassionally
295
+ instead_of: occasionally
296
+ - pattern: ocurred
297
+ instead_of: occurred
298
+ - pattern: occurrance
299
+ instead_of: occurrence
300
+ - pattern: oppurtunity
301
+ instead_of: opportunity
302
+ - pattern: oppertunity
303
+ instead_of: opportunity
304
+ - pattern: paralell
305
+ instead_of: parallel
306
+ - pattern: parrallel
307
+ instead_of: parallel
308
+ - pattern: parliment
309
+ instead_of: parliament
310
+ - pattern: particulary
311
+ instead_of: particularly
312
+ - pattern: peice
313
+ instead_of: piece
314
+ - pattern: percieve
315
+ instead_of: perceive
316
+ - pattern: permision
317
+ instead_of: permission
318
+ - pattern: persue
319
+ instead_of: pursue
320
+ - pattern: posess
321
+ instead_of: possess
322
+ - pattern: possesion
323
+ instead_of: possession
324
+ - pattern: possibilty
325
+ instead_of: possibility
326
+ - pattern: preceeding
327
+ instead_of: preceding
328
+ - pattern: priviledge
329
+ instead_of: privilege
330
+ - pattern: probaly
331
+ instead_of: probably
332
+ - pattern: proccess
333
+ instead_of: process
334
+ - pattern: pronounciation
335
+ instead_of: pronunciation
336
+ - pattern: questionaire
337
+ instead_of: questionnaire
338
+ - pattern: realy
339
+ instead_of: really
340
+ - pattern: recieves
341
+ instead_of: receives
342
+ - pattern: recieving
343
+ instead_of: receiving
344
+ - pattern: reccomend
345
+ instead_of: recommend
346
+ - pattern: reccommend
347
+ instead_of: recommend
348
+ - pattern: refrence
349
+ instead_of: reference
350
+ - pattern: religous
351
+ instead_of: religious
352
+ - pattern: remeber
353
+ instead_of: remember
354
+ - pattern: resistence
355
+ instead_of: resistance
356
+ - pattern: rythm
357
+ instead_of: rhythm
358
+ - pattern: seige
359
+ instead_of: siege
360
+ - pattern: seperation
361
+ instead_of: separation
362
+ - pattern: shedule
363
+ instead_of: schedule
364
+ - pattern: sieze
365
+ instead_of: seize
366
+ - pattern: similiar
367
+ instead_of: similar
368
+ - pattern: sincerly
369
+ instead_of: sincerely
370
+ - pattern: sofware
371
+ instead_of: software
372
+ - pattern: speach
373
+ instead_of: speech
374
+ - pattern: specificaly
375
+ instead_of: specifically
376
+ - pattern: strenght
377
+ instead_of: strength
378
+ - pattern: succesfully
379
+ instead_of: successfully
380
+ - pattern: sucessfully
381
+ instead_of: successfully
382
+ - pattern: successfull
383
+ instead_of: successful
384
+ - pattern: sufficent
385
+ instead_of: sufficient
386
+ - pattern: suprise
387
+ instead_of: surprise
388
+ - pattern: supress
389
+ instead_of: suppress
390
+ - pattern: temperture
391
+ instead_of: temperature
392
+ - pattern: tendancy
393
+ instead_of: tendency
394
+ - pattern: tounge
395
+ instead_of: tongue
396
+ - pattern: unecessary
397
+ instead_of: unnecessary
398
+ - pattern: unneccessary
399
+ instead_of: unnecessary
400
+ - pattern: unforseen
401
+ instead_of: unforeseen
402
+ - pattern: unfortunatly
403
+ instead_of: unfortunately
404
+ - pattern: usally
405
+ instead_of: usually
406
+ - pattern: vaccuum
407
+ instead_of: vacuum
408
+ - pattern: vehical
409
+ instead_of: vehicle
410
+ - pattern: visable
411
+ instead_of: visible
412
+ - pattern: wich
413
+ instead_of: which
414
+ - pattern: withold
415
+ instead_of: withhold
@@ -29,3 +29,33 @@ entries:
29
29
  instead_of: height
30
30
  - pattern: could care less
31
31
  instead_of: couldn't care less
32
+ - pattern: nucular
33
+ instead_of: nuclear
34
+ - pattern: excetera
35
+ instead_of: et cetera
36
+ - pattern: for all intensive purposes
37
+ instead_of: for all intents and purposes
38
+ - pattern: case and point
39
+ instead_of: case in point
40
+ - pattern: self-depreciating
41
+ instead_of: self-deprecating
42
+ - pattern: free reign
43
+ instead_of: free rein
44
+ - pattern: sneak peak
45
+ instead_of: sneak peek
46
+ - pattern: peaked my interest
47
+ instead_of: piqued my interest
48
+ - pattern: peaked your interest
49
+ instead_of: piqued your interest
50
+ - pattern: deep-seeded
51
+ instead_of: deep-seated
52
+ - pattern: baited breath
53
+ instead_of: bated breath
54
+ - pattern: statue of limitations
55
+ instead_of: statute of limitations
56
+ - pattern: doggy-dog world
57
+ instead_of: dog-eat-dog world
58
+ - pattern: all of the sudden
59
+ instead_of: all of a sudden
60
+ - pattern: between you and I
61
+ instead_of: between you and me
@@ -81,3 +81,83 @@ entries:
81
81
  rewrite: cooperation
82
82
  - pattern: the reason is because
83
83
  rewrite: the reason is that
84
+ - pattern: advance warning
85
+ rewrite: warning
86
+ - pattern: completely eliminate
87
+ rewrite: eliminate
88
+ - pattern: completely eliminated
89
+ rewrite: eliminated
90
+ - pattern: exact same
91
+ rewrite: same
92
+ - pattern: final conclusion
93
+ rewrite: conclusion
94
+ - pattern: foreign imports
95
+ rewrite: imports
96
+ - pattern: over exaggerate
97
+ rewrite: exaggerate
98
+ - pattern: postpone until later
99
+ rewrite: postpone
100
+ - pattern: unintended mistake
101
+ rewrite: mistake
102
+ - pattern: unintentional mistake
103
+ rewrite: mistake
104
+ - pattern: usual custom
105
+ rewrite: custom
106
+ - pattern: cooperate together
107
+ rewrite: cooperate
108
+ - pattern: cooperated together
109
+ rewrite: cooperated
110
+ - pattern: connect together
111
+ rewrite: connect
112
+ - pattern: connected together
113
+ rewrite: connected
114
+ - pattern: integrate together
115
+ rewrite: integrate
116
+ - pattern: integrated together
117
+ rewrite: integrated
118
+ - pattern: attach together
119
+ rewrite: attach
120
+ - pattern: descend down
121
+ rewrite: descend
122
+ - pattern: ascend up
123
+ rewrite: ascend
124
+ - pattern: HIV virus
125
+ rewrite: HIV
126
+ - pattern: LCD display
127
+ rewrite: LCD
128
+ - pattern: ISBN number
129
+ rewrite: ISBN
130
+ - pattern: small in size
131
+ rewrite: small
132
+ - pattern: large in size
133
+ rewrite: large
134
+ - pattern: few in number
135
+ rewrite: few
136
+ - pattern: surrounded on all sides
137
+ rewrite: surrounded
138
+ - pattern: armed gunman
139
+ rewrite: gunman
140
+ - pattern: fellow colleague
141
+ rewrite: colleague
142
+ - pattern: frozen ice
143
+ rewrite: ice
144
+ - pattern: hollow tube
145
+ rewrite: tube
146
+ - pattern: important essentials
147
+ rewrite: essentials
148
+ - pattern: interdependent on each other
149
+ rewrite: interdependent
150
+ - pattern: old adage
151
+ rewrite: adage
152
+ - pattern: passing fad
153
+ rewrite: fad
154
+ - pattern: past memories
155
+ rewrite: memories
156
+ - pattern: regular routine
157
+ rewrite: routine
158
+ - pattern: same identical
159
+ rewrite: identical
160
+ - pattern: visible to the eye
161
+ rewrite: visible
162
+ - pattern: both alike
163
+ rewrite: alike
@@ -0,0 +1,32 @@
1
+ # Unit symbols written after a number (5 GB, 5GB). unit-spacing-consistency points at the way a document uses less: with
2
+ # a space between the number and the symbol, or without. Only symbols: a unit written as a word (5 hours) always takes a
3
+ # space. One-letter symbols (m, s, g) are left out, since "5s" and "1990s" are also plurals and decades. The percent sign
4
+ # is left out too: many styles that space units write 10% unspaced. Matched as written, case and all.
5
+ id: unit-symbol
6
+ language: en
7
+ entries:
8
+ - pattern: KB
9
+ - pattern: kB
10
+ - pattern: MB
11
+ - pattern: GB
12
+ - pattern: TB
13
+ - pattern: PB
14
+ - pattern: Kbps
15
+ - pattern: Mbps
16
+ - pattern: Gbps
17
+ - pattern: km
18
+ - pattern: cm
19
+ - pattern: mm
20
+ - pattern: kg
21
+ - pattern: mg
22
+ - pattern: ms
23
+ - pattern: Hz
24
+ - pattern: kHz
25
+ - pattern: MHz
26
+ - pattern: GHz
27
+ - pattern: kW
28
+ - pattern: kWh
29
+ - pattern: mL
30
+ - pattern: px
31
+ - pattern: dpi
32
+ - pattern: fps
@@ -29,3 +29,12 @@ entries:
29
29
  - pattern: best efforts
30
30
  - pattern: to some extent
31
31
  - pattern: from time to time
32
+ - pattern: as soon as practicable
33
+ - pattern: where necessary
34
+ - pattern: if necessary
35
+ - pattern: as far as possible
36
+ - pattern: to the extent practicable
37
+ - pattern: in due course
38
+ - pattern: at some point
39
+ - pattern: shortly
40
+ - pattern: expeditiously
@@ -28,3 +28,29 @@ entries:
28
28
  - pattern: research has shown
29
29
  - pattern: critics say
30
30
  - pattern: according to some
31
+ - pattern: experts claim
32
+ - pattern: experts suggest
33
+ - pattern: scientists say
34
+ - pattern: scientists believe
35
+ - pattern: research suggests
36
+ - pattern: studies suggest
37
+ - pattern: studies have found
38
+ - pattern: research indicates
39
+ - pattern: it is believed that
40
+ - pattern: it is thought that
41
+ - pattern: it is reported that
42
+ - pattern: many believe
43
+ - pattern: some argue
44
+ - pattern: some say
45
+ - pattern: some would say
46
+ - pattern: critics argue
47
+ - pattern: observers say
48
+ - pattern: sources say
49
+ - pattern: many would argue
50
+ - pattern: it has been suggested
51
+ - pattern: it is often argued
52
+ - pattern: it is commonly known
53
+ - pattern: it is well known that
54
+ - pattern: everyone knows
55
+ - pattern: according to experts
56
+ - pattern: according to many
@@ -48,3 +48,43 @@ entries:
48
48
  rewrite: can
49
49
  - pattern: until such time as
50
50
  rewrite: until
51
+ - pattern: in light of the fact that
52
+ rewrite: because
53
+ - pattern: on account of the fact that
54
+ rewrite: because
55
+ - pattern: for the reason that
56
+ rewrite: because
57
+ - pattern: given the fact that
58
+ rewrite: given that, or because
59
+ - pattern: with the exception of
60
+ rewrite: except
61
+ - pattern: in the majority of cases
62
+ rewrite: usually
63
+ - pattern: a small number of
64
+ rewrite: a few
65
+ - pattern: at an early date
66
+ rewrite: soon
67
+ - pattern: by means of
68
+ rewrite: by
69
+ - pattern: in a manner similar to
70
+ rewrite: like
71
+ - pattern: in the vicinity of
72
+ rewrite: near
73
+ - pattern: in excess of
74
+ rewrite: more than
75
+ - pattern: at all times
76
+ rewrite: always
77
+ - pattern: has the capacity to
78
+ rewrite: can
79
+ - pattern: have the capacity to
80
+ rewrite: can
81
+ - pattern: in an effort to
82
+ rewrite: to
83
+ - pattern: with the result that
84
+ rewrite: so that
85
+ - pattern: during the course of
86
+ rewrite: during
87
+ - pattern: during the time that
88
+ rewrite: while
89
+ - pattern: take into consideration
90
+ rewrite: consider
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chaffjs/lang-en",
3
- "version": "0.20.0",
3
+ "version": "0.22.0",
4
4
  "description": "English language adapter for chaff",
5
5
  "license": "MIT",
6
6
  "author": "isamu",
@@ -31,6 +31,9 @@ export const definitionScopeDepth = (text: string): number | undefined =>
31
31
  const POINTER = /^ has the meaning given (?:in|by)\b/u;
32
32
  const isPointer = (text: string, end: number): boolean => POINTER.test(text.slice(end - " has the meaning".length));
33
33
 
34
+ /** ("Seller") has no word that says it defines: the same parentheses quote an example ("silently fails"). */
35
+ const BARE = /^\(["“]/u;
36
+
34
37
  export const definitions = (text: string): Mention[] =>
35
38
  DEFINITIONS.flatMap((pattern) =>
36
39
  [...text.matchAll(pattern)].flatMap((match) => {
@@ -40,6 +43,7 @@ export const definitions = (text: string): Mention[] =>
40
43
  const inline = match[0].startsWith("(");
41
44
  const namesAParty = inline && APPLIES.test(text);
42
45
  const scope = isPointer(text, end) || namesAParty ? { scope: "local" } : {};
43
- return [{ start: match.index, end, attrs: { term, ...scope, ...(inline ? { placement: "inline" } : {}) } }];
46
+ const bare = BARE.test(match[0]) ? { form: "bare" } : {};
47
+ return [{ start: match.index, end, attrs: { term, ...scope, ...(inline ? { placement: "inline" } : {}), ...bare } }];
44
48
  }),
45
49
  );
package/src/gerund.ts ADDED
@@ -0,0 +1,15 @@
1
+ // An -ing form the dictionary knows as a noun and not as an adjective (heading, finding, setting) can head a noun phrase.
2
+
3
+ const COMMON_NOUN_TAGS: ReadonlySet<string> = new Set(["NN", "NNS"]);
4
+ const ADJECTIVE_TAGS: ReadonlySet<string> = new Set(["JJ", "JJR", "JJS"]);
5
+
6
+ /**
7
+ * The tagger reads "A heading counts" as article + gerund + plural noun, but "heading" is also a noun, so "counts" may be its
8
+ * verb. AlsoNoun=Yes says so. The dictionary gives most gerunds a noun reading too (the running of), so a gerund that is
9
+ * also an adjective (missing, growing) stays a modifier: "a missing values" is a slip.
10
+ */
11
+ export const gerundFeatures = (surface: string, tagsOf: (word: string) => readonly string[] | undefined): Readonly<Record<string, string>> => {
12
+ const tags = tagsOf(surface.toLowerCase()) ?? [];
13
+ const nounOnly = tags.some((tag) => COMMON_NOUN_TAGS.has(tag)) && !tags.some((tag) => ADJECTIVE_TAGS.has(tag));
14
+ return nounOnly ? { VerbForm: "Ger", AlsoNoun: "Yes" } : { VerbForm: "Ger" };
15
+ };
package/src/pos.ts CHANGED
@@ -6,6 +6,7 @@ import { blankLongRuns } from "./long-runs.ts";
6
6
  import { lowercasedAt, properNounChecked, rereadAt, sentenceInitialCommonWord } from "./proper-noun.ts";
7
7
  import { isStativeParticiple, stativeVocabulary } from "./stative-participle.ts";
8
8
  import { isEmphasisedAdverb } from "./emphasis.ts";
9
+ import { gerundFeatures } from "./gerund.ts";
9
10
 
10
11
  const require = createRequire(import.meta.url);
11
12
 
@@ -206,7 +207,7 @@ const withOtherReading = (entry: Tagged, found: Features): Features => {
206
207
  const featuresOf = (tagged: readonly Tagged[], at: number): Features => {
207
208
  const entry = tagged[at];
208
209
  if (entry === undefined) return {};
209
- if (entry.pos === "VBG") return { features: { VerbForm: "Ger" } };
210
+ if (entry.pos === "VBG") return { features: gerundFeatures(entry.value, state.vocabulary) };
210
211
  if (entry.pos !== "VBN") return withOtherReading(entry, nounOrDeterminerFeatures(entry));
211
212
  return { features: isPassive(tagged, at) ? { VerbForm: "Part", Voice: "Pass" } : { VerbForm: "Part" } };
212
213
  };