@chaffjs/lang-en 0.16.0 → 0.18.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/definitions.d.ts.map +1 -1
- package/dist/definitions.js +4 -2
- package/dist/definitions.js.map +1 -1
- package/dist/dictionary.d.ts +2 -0
- package/dist/dictionary.d.ts.map +1 -0
- package/dist/dictionary.js +20 -0
- package/dist/dictionary.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lexicons.d.ts.map +1 -1
- package/dist/lexicons.js +4 -0
- package/dist/lexicons.js.map +1 -1
- package/lexicons/absolute-word.yaml +14 -0
- package/lexicons/abstract-heading.yaml +7 -0
- package/lexicons/age-marker.yaml +10 -0
- package/lexicons/ai-tell.yaml +12 -0
- package/lexicons/approximate-marker.yaml +34 -0
- package/lexicons/article-sound.yaml +83 -0
- package/lexicons/birth-origin.yaml +5 -0
- package/lexicons/bookend-heading.yaml +30 -0
- package/lexicons/chat-citation-marker.yaml +11 -0
- package/lexicons/citation-author-joiner.yaml +11 -0
- package/lexicons/citation-not-author.yaml +40 -0
- package/lexicons/count-counter.yaml +50 -0
- package/lexicons/cushion-phrase.yaml +6 -0
- package/lexicons/date-change-word.yaml +27 -0
- package/lexicons/dictionary.txt +87150 -0
- package/lexicons/double-negative.yaml +25 -0
- package/lexicons/duration-day.yaml +6 -0
- package/lexicons/duration-month.yaml +6 -0
- package/lexicons/duration-week.yaml +6 -0
- package/lexicons/duration-year.yaml +6 -0
- package/lexicons/elapsed-link.yaml +11 -0
- package/lexicons/elapsed-origin.yaml +8 -0
- package/lexicons/elapsed-unit.yaml +6 -0
- package/lexicons/enumeration-frame.yaml +37 -0
- package/lexicons/enumeration-joiner.yaml +9 -0
- package/lexicons/enumeration-negation.yaml +13 -0
- package/lexicons/exception-marker.yaml +10 -0
- package/lexicons/extra-word.yaml +185 -0
- package/lexicons/fact-attribute.yaml +6 -0
- package/lexicons/fact-label-drop.yaml +13 -0
- package/lexicons/fact-label-vague.yaml +16 -0
- package/lexicons/fact-separator.yaml +11 -0
- package/lexicons/fact-value-end.yaml +8 -0
- package/lexicons/figure-in-text.yaml +9 -0
- package/lexicons/figure-noun.yaml +31 -0
- package/lexicons/heading-form.yaml +63 -0
- package/lexicons/heading-number-label.yaml +29 -0
- package/lexicons/homophone-slip.yaml +37 -0
- package/lexicons/known-misspelling.yaml +177 -0
- package/lexicons/label-affix.yaml +7 -0
- package/lexicons/light-verb.yaml +9 -0
- package/lexicons/month-name.yaml +29 -0
- package/lexicons/nominalization-phrase.yaml +27 -0
- package/lexicons/orthographic-variant-distinct.yaml +24 -0
- package/lexicons/paper-section-heading.yaml +18 -0
- package/lexicons/person-form.yaml +9 -0
- package/lexicons/person-not-after.yaml +54 -0
- package/lexicons/person-word.yaml +38 -0
- package/lexicons/place-region.yaml +247 -0
- package/lexicons/placeholder-word.yaml +10 -0
- package/lexicons/pro-con-heading.yaml +15 -0
- package/lexicons/range-frame.yaml +9 -0
- package/lexicons/redundant-expression.yaml +83 -0
- package/lexicons/reference-aside.yaml +21 -0
- package/lexicons/reference-list-heading.yaml +11 -0
- package/lexicons/reference-topic-link.yaml +5 -0
- package/lexicons/reference-topic-vague.yaml +32 -0
- package/lexicons/relative-after.yaml +5 -0
- package/lexicons/relative-before.yaml +5 -0
- package/lexicons/relative-link.yaml +7 -0
- package/lexicons/requirement-either.yaml +5 -0
- package/lexicons/requirement-loophole.yaml +17 -0
- package/lexicons/requirement-marker.yaml +9 -0
- package/lexicons/requirement-modal-must.yaml +7 -0
- package/lexicons/requirement-open-end.yaml +9 -0
- package/lexicons/restating-opener.yaml +22 -0
- package/lexicons/so-opener.yaml +6 -0
- package/lexicons/spelling-ize.yaml +273 -0
- package/lexicons/spelling-variant.yaml +260 -0
- package/lexicons/summary-heading.yaml +13 -0
- package/lexicons/unit-data.yaml +28 -0
- package/lexicons/unit-length.yaml +44 -0
- package/lexicons/unit-mass.yaml +30 -0
- package/lexicons/unit-time.yaml +32 -0
- package/lexicons/unit-volume.yaml +26 -0
- package/lexicons/unnumbered-heading.yaml +27 -0
- package/lexicons/vague-clause-pointer.yaml +10 -0
- package/lexicons/vague-figure-pointer.yaml +14 -0
- package/lexicons/vague-link-text.yaml +20 -0
- package/lexicons/vague-word.yaml +31 -0
- package/lexicons/value-unit.yaml +58 -0
- package/lexicons/very-exception.yaml +17 -0
- package/lexicons/very-intensifier.yaml +6 -0
- package/lexicons/weasel-word.yaml +30 -0
- package/lexicons/word-prefix.yaml +31 -0
- package/lexicons/word-suffix.yaml +81 -0
- package/lexicons/wordy-phrase.yaml +50 -0
- package/package.json +1 -1
- package/src/definitions.ts +4 -2
- package/src/dictionary.ts +22 -0
- package/src/index.ts +2 -0
- package/src/lexicons.ts +4 -0
|
@@ -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,
|
|
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"}
|
package/dist/definitions.js
CHANGED
|
@@ -27,7 +27,9 @@ export const definitions = (text) => DEFINITIONS.flatMap((pattern) => [...text.m
|
|
|
27
27
|
if (term === undefined)
|
|
28
28
|
return [];
|
|
29
29
|
const end = match.index + match[0].length;
|
|
30
|
-
const
|
|
31
|
-
|
|
30
|
+
const inline = match[0].startsWith("(");
|
|
31
|
+
const namesAParty = inline && APPLIES.test(text);
|
|
32
|
+
const scope = isPointer(text, end) || namesAParty ? { scope: "local" } : {};
|
|
33
|
+
return [{ start: match.index, end, attrs: { term, ...scope, ...(inline ? { placement: "inline" } : {}) } }];
|
|
32
34
|
}));
|
|
33
35
|
//# sourceMappingURL=definitions.js.map
|
package/dist/definitions.js.map
CHANGED
|
@@ -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,OA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AAM,KAAK,GAAG,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5E,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,EAAE,CAAC,CAAC;AAC9G,CAAC,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../src/dictionary.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,UAAU,QAAO,WAAW,CAAC,MAAM,CAQ/C,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname, join } from "node:path";
|
|
4
|
+
// The English word list (lexicons/dictionary.txt, built by scripts/en-dictionary.ts). It is large, so it is read only
|
|
5
|
+
// when a rule asks for it, and once.
|
|
6
|
+
const FILE = join(dirname(fileURLToPath(import.meta.url)), "..", "lexicons", "dictionary.txt");
|
|
7
|
+
const loaded = { words: undefined };
|
|
8
|
+
const wordsIn = (text) => new Set(text.split("\n").filter((line) => line !== "" && !line.startsWith("#")));
|
|
9
|
+
export const dictionary = () => {
|
|
10
|
+
if (loaded.words !== undefined)
|
|
11
|
+
return loaded.words;
|
|
12
|
+
try {
|
|
13
|
+
loaded.words = wordsIn(readFileSync(FILE, "utf8"));
|
|
14
|
+
}
|
|
15
|
+
catch (error) {
|
|
16
|
+
throw new Error(`${FILE}: cannot read the English word list`, { cause: error });
|
|
17
|
+
}
|
|
18
|
+
return loaded.words;
|
|
19
|
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dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAkC,eAAe,EAAgC,MAAM,gBAAgB,CAAC;AA2BpH;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,eA8BrB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { sentenceSpans } from "./sentence-split.js";
|
|
|
5
5
|
import { splitAtQuotedStops } from "./quoted-stop.js";
|
|
6
6
|
import { reattachClosingQuotes } from "./closing-quote.js";
|
|
7
7
|
import { structure } from "./structure.js";
|
|
8
|
+
import { dictionary } from "./dictionary.js";
|
|
8
9
|
import { isReady, prepare, tokenize } from "./pos.js";
|
|
9
10
|
import { isJapaneseRun } from "./japanese-run.js";
|
|
10
11
|
// chaff からは型だけを取る。実行時の値依存を作らない。アダプタは単体で動く。
|
|
@@ -57,6 +58,7 @@ export const adapter = {
|
|
|
57
58
|
},
|
|
58
59
|
lexicons: LEXICONS,
|
|
59
60
|
structure,
|
|
61
|
+
dictionary,
|
|
60
62
|
segment: (text) => {
|
|
61
63
|
const quotedStops = sentenceSpans(unmarkNumberStops(unmarkLabelStops(text, LABEL_STOPS))).flatMap((span) => splitAtQuotedStops(text, span));
|
|
62
64
|
const sentences = reattachClosingQuotes(text, quotedStops).map((span) => withLanguage(text.slice(span.start, span.end), span));
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,M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AAC;IAC1E,CAAC;CACF,CAAC"}
|
package/dist/lexicons.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lexicons.d.ts","sourceRoot":"","sources":["../src/lexicons.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"lexicons.d.ts","sourceRoot":"","sources":["../src/lexicons.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,gBAAgB,CAAC;AAwB5D;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,MAAK,MAAY,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CASpE,CAAC"}
|
package/dist/lexicons.js
CHANGED
|
@@ -10,11 +10,15 @@ const toEntry = (raw) => {
|
|
|
10
10
|
return undefined;
|
|
11
11
|
const weight = raw["weight"];
|
|
12
12
|
const instead = raw["instead_of"];
|
|
13
|
+
const rewrite = raw["rewrite"];
|
|
14
|
+
const group = raw["group"];
|
|
13
15
|
return {
|
|
14
16
|
pattern: raw["pattern"],
|
|
15
17
|
weight: typeof weight === "number" ? weight : undefined,
|
|
16
18
|
instead_of: typeof instead === "string" ? instead : undefined,
|
|
17
19
|
position: POSITIONS.find((position) => position === raw["position"]),
|
|
20
|
+
rewrite: typeof rewrite === "string" ? rewrite : undefined,
|
|
21
|
+
...(typeof group === "string" ? { group } : {}),
|
|
18
22
|
};
|
|
19
23
|
};
|
|
20
24
|
/**
|
package/dist/lexicons.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lexicons.js","sourceRoot":"","sources":["../src/lexicons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,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AO,EAAE,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;QAC1D,GAAG,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAChD,CAAC;AACJ,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAc,GAAG,EAA2B,EAAE,CACzE,MAAM,CAAC,WAAW,CAChB,WAAW,CAAC,GAAG,CAAC;KACb,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;KACxC,OAAO,CAAC,CAAC,IAAI,EAAuB,EAAE;IACrC,MAAM,GAAG,GAAY,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IAClE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,OAAO,GAAG,CAAC,IAAI,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAAE,OAAO,EAAE,CAAC;IACjG,OAAO,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC;AAC3F,CAAC,CAAC,CACL,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Words that allow no exception. absolute-exception reads an obligation (must, shall, must not) holding one against a
|
|
2
|
+
# later sentence, in another article, list or paragraph, that makes an exception for the same act.
|
|
3
|
+
#
|
|
4
|
+
# "all" and "every" are not here: they count a set ("made by all or a majority of the arbitrators") more often than they
|
|
5
|
+
# rule out exceptions, and on the corpus statutes they paired with unrelated provisos.
|
|
6
|
+
id: absolute-word
|
|
7
|
+
language: en
|
|
8
|
+
entries:
|
|
9
|
+
- pattern: always
|
|
10
|
+
- pattern: never
|
|
11
|
+
- pattern: under no circumstances
|
|
12
|
+
- pattern: in all cases
|
|
13
|
+
- pattern: without exception
|
|
14
|
+
- pattern: at all times
|
package/lexicons/ai-tell.yaml
CHANGED
|
@@ -5,20 +5,27 @@ language: en
|
|
|
5
5
|
entries:
|
|
6
6
|
- pattern: delve into
|
|
7
7
|
weight: 0.9
|
|
8
|
+
rewrite: look at, or explain
|
|
8
9
|
- pattern: in today's fast-paced world
|
|
9
10
|
weight: 0.9
|
|
11
|
+
rewrite: delete it and start with the point
|
|
10
12
|
- pattern: tapestry
|
|
11
13
|
weight: 0.6
|
|
14
|
+
rewrite: name the parts
|
|
12
15
|
- pattern: it's not just
|
|
13
16
|
weight: 0.7
|
|
14
17
|
- pattern: plays a crucial role
|
|
15
18
|
weight: 0.8
|
|
19
|
+
rewrite: say what it does
|
|
16
20
|
- pattern: navigate the complexities
|
|
17
21
|
weight: 0.8
|
|
22
|
+
rewrite: name the hard part and say how it is handled
|
|
18
23
|
- pattern: a testament to
|
|
19
24
|
weight: 0.7
|
|
25
|
+
rewrite: shows
|
|
20
26
|
- pattern: unlock the potential
|
|
21
27
|
weight: 0.8
|
|
28
|
+
rewrite: say what becomes possible
|
|
22
29
|
- pattern: deep dive
|
|
23
30
|
weight: 0.5
|
|
24
31
|
- pattern: intricate
|
|
@@ -27,10 +34,13 @@ entries:
|
|
|
27
34
|
weight: 0.5
|
|
28
35
|
- pattern: meticulous
|
|
29
36
|
weight: 0.6
|
|
37
|
+
rewrite: careful, and say what was checked
|
|
30
38
|
- pattern: meticulously
|
|
31
39
|
weight: 0.6
|
|
40
|
+
rewrite: carefully, and say what was checked
|
|
32
41
|
- pattern: pivotal
|
|
33
42
|
weight: 0.5
|
|
43
|
+
rewrite: say what depends on it
|
|
34
44
|
- pattern: in the realm of
|
|
35
45
|
weight: 0.6
|
|
36
46
|
- pattern: showcasing
|
|
@@ -85,6 +95,7 @@ entries:
|
|
|
85
95
|
weight: 0.7
|
|
86
96
|
- pattern: seamlessly
|
|
87
97
|
weight: 0.5
|
|
98
|
+
rewrite: say what the reader no longer has to do
|
|
88
99
|
- pattern: empowering
|
|
89
100
|
weight: 0.5
|
|
90
101
|
- pattern: game-changer
|
|
@@ -101,6 +112,7 @@ entries:
|
|
|
101
112
|
weight: 0.5
|
|
102
113
|
- pattern: it's worth noting
|
|
103
114
|
weight: 0.5
|
|
115
|
+
rewrite: delete it and state the point
|
|
104
116
|
- pattern: faces several challenges
|
|
105
117
|
weight: 0.8
|
|
106
118
|
- pattern: despite these challenges
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Marks of a rough figure (duration-mismatch): "about 3 months" is not added to a date. before: written before the number.
|
|
2
|
+
id: approximate-marker
|
|
3
|
+
language: en
|
|
4
|
+
entries:
|
|
5
|
+
- pattern: "about"
|
|
6
|
+
position: before
|
|
7
|
+
- pattern: "approximately"
|
|
8
|
+
position: before
|
|
9
|
+
- pattern: "around"
|
|
10
|
+
position: before
|
|
11
|
+
- pattern: "roughly"
|
|
12
|
+
position: before
|
|
13
|
+
- pattern: "nearly"
|
|
14
|
+
position: before
|
|
15
|
+
- pattern: "almost"
|
|
16
|
+
position: before
|
|
17
|
+
- pattern: "over"
|
|
18
|
+
position: before
|
|
19
|
+
- pattern: "under"
|
|
20
|
+
position: before
|
|
21
|
+
- pattern: "up to"
|
|
22
|
+
position: before
|
|
23
|
+
- pattern: "at least"
|
|
24
|
+
position: before
|
|
25
|
+
- pattern: "at most"
|
|
26
|
+
position: before
|
|
27
|
+
- pattern: "some"
|
|
28
|
+
position: before
|
|
29
|
+
- pattern: "or so"
|
|
30
|
+
position: after
|
|
31
|
+
- pattern: "or more"
|
|
32
|
+
position: after
|
|
33
|
+
- pattern: "or less"
|
|
34
|
+
position: after
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# What sound a word starts with, for "a" and "an" (article-sound). By group:
|
|
2
|
+
# vowel-letter the letters a word starting with which usually takes "an"
|
|
3
|
+
# letter-name-vowel the letters whose name starts with a vowel sound, for a capital read letter by letter ("an MBA", "an X-ray")
|
|
4
|
+
# letter-name-either the letters whose name is said both ways ("an HTTP" and "a HTTP": aitch and haitch)
|
|
5
|
+
# consonant word beginnings spelled with a vowel but said with a consonant ("a user", "a one-off", "a European")
|
|
6
|
+
# vowel word beginnings said with a vowel against the two groups above ("an hour", "an onerous"); checked first
|
|
7
|
+
# word capitals read as a word, not letter by letter ("a NASA probe"); the word's own sound decides.
|
|
8
|
+
# Capitals of four letters or more with a vowel that are not listed may be words, and are not reported
|
|
9
|
+
# either words and capitals said both ways, never reported ("a SQL" and "an SQL", "a historic" and "an historic")
|
|
10
|
+
# Word beginnings match the start of the word, in lower case; capitals match whole.
|
|
11
|
+
id: article-sound
|
|
12
|
+
language: en
|
|
13
|
+
entries:
|
|
14
|
+
- { pattern: a, group: vowel-letter }
|
|
15
|
+
- { pattern: e, group: vowel-letter }
|
|
16
|
+
- { pattern: i, group: vowel-letter }
|
|
17
|
+
- { pattern: o, group: vowel-letter }
|
|
18
|
+
- { pattern: u, group: vowel-letter }
|
|
19
|
+
- { pattern: A, group: letter-name-vowel }
|
|
20
|
+
- { pattern: E, group: letter-name-vowel }
|
|
21
|
+
- { pattern: F, group: letter-name-vowel }
|
|
22
|
+
- { pattern: I, group: letter-name-vowel }
|
|
23
|
+
- { pattern: L, group: letter-name-vowel }
|
|
24
|
+
- { pattern: M, group: letter-name-vowel }
|
|
25
|
+
- { pattern: N, group: letter-name-vowel }
|
|
26
|
+
- { pattern: O, group: letter-name-vowel }
|
|
27
|
+
- { pattern: R, group: letter-name-vowel }
|
|
28
|
+
- { pattern: S, group: letter-name-vowel }
|
|
29
|
+
- { pattern: X, group: letter-name-vowel }
|
|
30
|
+
- { pattern: H, group: letter-name-either }
|
|
31
|
+
- { pattern: one, group: consonant }
|
|
32
|
+
- { pattern: once, group: consonant }
|
|
33
|
+
- { pattern: eu, group: consonant }
|
|
34
|
+
- { pattern: ewe, group: consonant }
|
|
35
|
+
- { pattern: use, group: consonant }
|
|
36
|
+
- { pattern: usa, group: consonant }
|
|
37
|
+
- { pattern: usu, group: consonant }
|
|
38
|
+
- { pattern: uti, group: consonant }
|
|
39
|
+
- { pattern: unique, group: consonant }
|
|
40
|
+
- { pattern: unit, group: consonant }
|
|
41
|
+
- { pattern: univers, group: consonant }
|
|
42
|
+
- { pattern: uniform, group: consonant }
|
|
43
|
+
- { pattern: unif, group: consonant }
|
|
44
|
+
- { pattern: union, group: consonant }
|
|
45
|
+
- { pattern: unicorn, group: consonant }
|
|
46
|
+
- { pattern: unicode, group: consonant }
|
|
47
|
+
- { pattern: unilateral, group: consonant }
|
|
48
|
+
- { pattern: unison, group: consonant }
|
|
49
|
+
- { pattern: unix, group: consonant }
|
|
50
|
+
- { pattern: unanim, group: consonant }
|
|
51
|
+
- { pattern: uran, group: consonant }
|
|
52
|
+
- { pattern: urin, group: consonant }
|
|
53
|
+
- { pattern: utopia, group: consonant }
|
|
54
|
+
- { pattern: ubiq, group: consonant }
|
|
55
|
+
- { pattern: ukulele, group: consonant }
|
|
56
|
+
- { pattern: unesco, group: consonant }
|
|
57
|
+
- { pattern: unicef, group: consonant }
|
|
58
|
+
- { pattern: hour, group: vowel }
|
|
59
|
+
- { pattern: honest, group: vowel }
|
|
60
|
+
- { pattern: honor, group: vowel }
|
|
61
|
+
- { pattern: honour, group: vowel }
|
|
62
|
+
- { pattern: heir, group: vowel }
|
|
63
|
+
- { pattern: oner, group: vowel }
|
|
64
|
+
- { pattern: lval, group: vowel }
|
|
65
|
+
- { pattern: rval, group: vowel }
|
|
66
|
+
- { pattern: NASA, group: word }
|
|
67
|
+
- { pattern: NATO, group: word }
|
|
68
|
+
- { pattern: UNESCO, group: word }
|
|
69
|
+
- { pattern: UNICEF, group: word }
|
|
70
|
+
- { pattern: LAN, group: word }
|
|
71
|
+
- { pattern: SAML, group: word }
|
|
72
|
+
- { pattern: RAM, group: word }
|
|
73
|
+
- { pattern: ROM, group: word }
|
|
74
|
+
- { pattern: SIM, group: word }
|
|
75
|
+
- { pattern: MAC, group: word }
|
|
76
|
+
- { pattern: SQL, group: either }
|
|
77
|
+
- { pattern: FAQ, group: either }
|
|
78
|
+
- { pattern: URL, group: either }
|
|
79
|
+
- { pattern: herb, group: either }
|
|
80
|
+
- { pattern: histor, group: either }
|
|
81
|
+
- { pattern: hotel, group: either }
|
|
82
|
+
- { pattern: homage, group: either }
|
|
83
|
+
- { pattern: hypothe, group: either }
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Headings that bracket the body. Opening with "Introduction" and closing with "Conclusion" is a common shape of
|
|
2
|
+
# generated articles. position: before stands ahead of the body, after behind it. A heading that starts with the
|
|
3
|
+
# phrase matches ("Conclusion: what we learned" too); case is ignored.
|
|
4
|
+
id: bookend-heading
|
|
5
|
+
language: en
|
|
6
|
+
entries:
|
|
7
|
+
- pattern: introduction
|
|
8
|
+
position: before
|
|
9
|
+
- pattern: intro
|
|
10
|
+
position: before
|
|
11
|
+
- pattern: conclusion
|
|
12
|
+
position: after
|
|
13
|
+
- pattern: conclusions
|
|
14
|
+
position: after
|
|
15
|
+
- pattern: in conclusion
|
|
16
|
+
position: after
|
|
17
|
+
- pattern: summary
|
|
18
|
+
position: after
|
|
19
|
+
- pattern: final thoughts
|
|
20
|
+
position: after
|
|
21
|
+
- pattern: closing thoughts
|
|
22
|
+
position: after
|
|
23
|
+
- pattern: wrapping up
|
|
24
|
+
position: after
|
|
25
|
+
- pattern: wrap-up
|
|
26
|
+
position: after
|
|
27
|
+
- pattern: key takeaways
|
|
28
|
+
position: after
|
|
29
|
+
- pattern: takeaways
|
|
30
|
+
position: after
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Marks a chat answer leaves when it is pasted: a tracking value on a link, and citation marks. Matched as written, case and all.
|
|
2
|
+
# Other utm_source values (newsletter, twitter) are left out: people add those too.
|
|
3
|
+
id: chat-citation-marker
|
|
4
|
+
language: en
|
|
5
|
+
entries:
|
|
6
|
+
- pattern: utm_source=chatgpt.com
|
|
7
|
+
- pattern: utm_source=openai
|
|
8
|
+
- pattern: oaicite
|
|
9
|
+
- pattern: contentReference[
|
|
10
|
+
- pattern: †source】
|
|
11
|
+
- pattern: citeturn
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# The words between authors in an author-year citation: group pair joins two authors (Smith and Jones, 2020), and the
|
|
2
|
+
# rest stand for further authors (Smith et al., 2020).
|
|
3
|
+
id: citation-author-joiner
|
|
4
|
+
language: en
|
|
5
|
+
entries:
|
|
6
|
+
- pattern: and
|
|
7
|
+
group: pair
|
|
8
|
+
- pattern: "&"
|
|
9
|
+
group: pair
|
|
10
|
+
- pattern: et al.
|
|
11
|
+
- pattern: et al
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Capitalised words that a year follows without being an author: "(March 2020)", "Spring (2021)". An author-year
|
|
2
|
+
# citation whose first author is one of these is not read as a citation.
|
|
3
|
+
id: citation-not-author
|
|
4
|
+
language: en
|
|
5
|
+
entries:
|
|
6
|
+
- pattern: January
|
|
7
|
+
- pattern: February
|
|
8
|
+
- pattern: March
|
|
9
|
+
- pattern: April
|
|
10
|
+
- pattern: May
|
|
11
|
+
- pattern: June
|
|
12
|
+
- pattern: July
|
|
13
|
+
- pattern: August
|
|
14
|
+
- pattern: September
|
|
15
|
+
- pattern: October
|
|
16
|
+
- pattern: November
|
|
17
|
+
- pattern: December
|
|
18
|
+
- pattern: Jan
|
|
19
|
+
- pattern: Feb
|
|
20
|
+
- pattern: Mar
|
|
21
|
+
- pattern: Apr
|
|
22
|
+
- pattern: Jun
|
|
23
|
+
- pattern: Jul
|
|
24
|
+
- pattern: Aug
|
|
25
|
+
- pattern: Sep
|
|
26
|
+
- pattern: Sept
|
|
27
|
+
- pattern: Oct
|
|
28
|
+
- pattern: Nov
|
|
29
|
+
- pattern: Dec
|
|
30
|
+
- pattern: Spring
|
|
31
|
+
- pattern: Summer
|
|
32
|
+
- pattern: Fall
|
|
33
|
+
- pattern: Autumn
|
|
34
|
+
- pattern: Winter
|
|
35
|
+
- pattern: Since
|
|
36
|
+
- pattern: In
|
|
37
|
+
- pattern: From
|
|
38
|
+
- pattern: Until
|
|
39
|
+
- pattern: Version
|
|
40
|
+
- pattern: Copyright
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Nouns that name what a list holds ("three steps", "two reasons"). Only a number followed by one of these (up to two
|
|
2
2
|
# words may stand between: "three key steps") is read as the count of the list below.
|
|
3
|
+
# Only nouns that name what a list holds. A plural that measures ("three years:", "two hours:", "30 seconds:") or a verb
|
|
4
|
+
# ending in s ("Release 2 includes:") is not an announcement, so "any plural before a colon" is not used. Nouns that are
|
|
5
|
+
# also verbs after a label number ("Section 2 documents:", "Model 4 outputs:") or that measure a degree ("two levels:")
|
|
6
|
+
# are left out too.
|
|
3
7
|
id: count-counter
|
|
4
8
|
language: en
|
|
5
9
|
entries:
|
|
@@ -38,3 +42,49 @@ entries:
|
|
|
38
42
|
- pattern: lessons
|
|
39
43
|
- pattern: takeaways
|
|
40
44
|
- pattern: recommendations
|
|
45
|
+
- pattern: decisions
|
|
46
|
+
- pattern: findings
|
|
47
|
+
- pattern: examples
|
|
48
|
+
- pattern: objectives
|
|
49
|
+
- pattern: priorities
|
|
50
|
+
- pattern: outcomes
|
|
51
|
+
- pattern: problems
|
|
52
|
+
- pattern: challenges
|
|
53
|
+
- pattern: concerns
|
|
54
|
+
- pattern: ideas
|
|
55
|
+
- pattern: suggestions
|
|
56
|
+
- pattern: alternatives
|
|
57
|
+
- pattern: scenarios
|
|
58
|
+
- pattern: deliverables
|
|
59
|
+
- pattern: milestones
|
|
60
|
+
- pattern: responsibilities
|
|
61
|
+
- pattern: topics
|
|
62
|
+
- pattern: themes
|
|
63
|
+
- pattern: considerations
|
|
64
|
+
- pattern: constraints
|
|
65
|
+
- pattern: assumptions
|
|
66
|
+
- pattern: limitations
|
|
67
|
+
- pattern: advantages
|
|
68
|
+
- pattern: disadvantages
|
|
69
|
+
- pattern: strengths
|
|
70
|
+
- pattern: weaknesses
|
|
71
|
+
- pattern: opportunities
|
|
72
|
+
- pattern: conclusions
|
|
73
|
+
- pattern: observations
|
|
74
|
+
- pattern: insights
|
|
75
|
+
- pattern: roles
|
|
76
|
+
- pattern: values
|
|
77
|
+
- pattern: sections
|
|
78
|
+
- pattern: elements
|
|
79
|
+
- pattern: properties
|
|
80
|
+
- pattern: attributes
|
|
81
|
+
- pattern: parameters
|
|
82
|
+
- pattern: tools
|
|
83
|
+
- pattern: services
|
|
84
|
+
- pattern: resources
|
|
85
|
+
- pattern: policies
|
|
86
|
+
- pattern: guidelines
|
|
87
|
+
- pattern: metrics
|
|
88
|
+
- pattern: modes
|
|
89
|
+
- pattern: pillars
|
|
90
|
+
- pattern: exceptions
|
|
@@ -9,3 +9,9 @@ entries:
|
|
|
9
9
|
- pattern: when you get a chance
|
|
10
10
|
- pattern: no rush but
|
|
11
11
|
- pattern: apologies for
|
|
12
|
+
- pattern: hope this email finds you well
|
|
13
|
+
- pattern: hope this message finds you well
|
|
14
|
+
- pattern: hope this finds you well
|
|
15
|
+
- pattern: sorry to trouble
|
|
16
|
+
- pattern: just reaching out
|
|
17
|
+
- pattern: just checking in
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Words that, anywhere in the same sentence as "from … to", make it a change of date rather than a period: "the review
|
|
2
|
+
# moved from March 10, 2026 to March 3, 2026", "the meeting from March 10 to March 3 was postponed".
|
|
3
|
+
id: date-change-word
|
|
4
|
+
language: en
|
|
5
|
+
entries:
|
|
6
|
+
- pattern: moved
|
|
7
|
+
- pattern: move
|
|
8
|
+
- pattern: moving
|
|
9
|
+
- pattern: changed
|
|
10
|
+
- pattern: change
|
|
11
|
+
- pattern: changing
|
|
12
|
+
- pattern: postponed
|
|
13
|
+
- pattern: rescheduled
|
|
14
|
+
- pattern: reschedule
|
|
15
|
+
- pattern: brought forward
|
|
16
|
+
- pattern: bring forward
|
|
17
|
+
- pattern: pushed back
|
|
18
|
+
- pattern: push back
|
|
19
|
+
- pattern: delayed
|
|
20
|
+
- pattern: shifted
|
|
21
|
+
- pattern: advanced
|
|
22
|
+
- pattern: extended
|
|
23
|
+
- pattern: shortened
|
|
24
|
+
- pattern: updated
|
|
25
|
+
- pattern: corrected
|
|
26
|
+
- pattern: revised
|
|
27
|
+
- pattern: amended
|