@chaffjs/lang-en 0.36.0 → 0.38.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/lexicons.d.ts.map +1 -1
- package/dist/lexicons.js +1 -0
- package/dist/lexicons.js.map +1 -1
- package/lexicons/ai-tell.yaml +1 -7
- package/lexicons/closing-cliche.yaml +2 -0
- package/lexicons/contraction-term.yaml +7 -0
- package/lexicons/contrast-lead.yaml +18 -3
- package/lexicons/extra-word.yaml +1 -0
- package/lexicons/faq-heading.yaml +11 -0
- package/lexicons/honesty-marker.yaml +14 -0
- package/lexicons/notice-phrase.yaml +10 -0
- package/lexicons/opening-conjunction.yaml +7 -0
- package/lexicons/option-choice-label.yaml +8 -0
- package/lexicons/quote-not-attribution.yaml +13 -0
- package/lexicons/request-deadline-section.yaml +1 -0
- package/lexicons/sql-keyword.yaml +28 -0
- package/lexicons/verbatim-lead.yaml +11 -0
- package/package.json +1 -1
- package/src/lexicons.ts +1 -0
package/dist/lexicons.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lexicons.d.ts","sourceRoot":"","sources":["../src/lexicons.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"lexicons.d.ts","sourceRoot":"","sources":["../src/lexicons.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,gBAAgB,CAAC;AA8B5D;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,MAAK,MAAY,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CASpE,CAAC"}
|
package/dist/lexicons.js
CHANGED
|
@@ -20,6 +20,7 @@ const toEntry = (raw) => {
|
|
|
20
20
|
rewrite: typeof rewrite === "string" ? rewrite : undefined,
|
|
21
21
|
...(typeof group === "string" ? { group } : {}),
|
|
22
22
|
...(isStringList(genres) ? { genres } : {}),
|
|
23
|
+
...(raw["heading_only"] === true ? { heading_only: true } : {}),
|
|
23
24
|
};
|
|
24
25
|
};
|
|
25
26
|
/**
|
package/dist/lexicons.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lexicons.js","sourceRoot":"","sources":["../src/lexicons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9E,MAAM,GAAG,GAAG,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;AAE9C,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAoC,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAE5I,MAAM,YAAY,GAAG,CAAC,KAAc,EAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC;AAEpI,MAAM,SAAS,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU,CAAC;AAE/C,MAAM,OAAO,GAAG,CAAC,GAAY,EAA4B,EAAE;IACzD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,OAAO,GAAG,CAAC,SAAS,CAAC,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IAC3E,MAAM,MAAM,GAAG,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC7B,MAAM,OAAO,GAAG,GAAG,CAAC,YAAY,CAAC,CAAC;IAClC,MAAM,OAAO,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC;IAC/B,MAAM,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,CAAC;IAC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,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3C,GAAG,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAChE,CAAC;AACJ,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAc,GAAG,EAA2B,EAAE,CACzE,MAAM,CAAC,WAAW,CAChB,OAAO,CAAC,GAAG,CAAC;KACT,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,QAAQ,CAAC,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1D,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"}
|
package/lexicons/ai-tell.yaml
CHANGED
|
@@ -139,13 +139,7 @@ entries:
|
|
|
139
139
|
weight: 0.5
|
|
140
140
|
- pattern: quietly
|
|
141
141
|
weight: 0.3
|
|
142
|
-
# Honesty markers
|
|
143
|
-
- pattern: if I'm being honest
|
|
144
|
-
weight: 0.5
|
|
145
|
-
- pattern: if I'm honest
|
|
146
|
-
weight: 0.5
|
|
147
|
-
- pattern: my honest take
|
|
148
|
-
weight: 0.5
|
|
142
|
+
# Honesty markers (if I'm being honest, my honest take) are honesty-marker's, which reports one alone.
|
|
149
143
|
# Stock phrases of a generated how-to guide, in no human document of the corpus.
|
|
150
144
|
- pattern: the golden rule of
|
|
151
145
|
weight: 0.3
|
|
@@ -12,6 +12,8 @@ entries:
|
|
|
12
12
|
# Ordinary in the body; as the last line it is the stock send-off.
|
|
13
13
|
- pattern: and go from there
|
|
14
14
|
group: last
|
|
15
|
+
- pattern: give it a try
|
|
16
|
+
group: last
|
|
15
17
|
# A short line such as "Happy brewing!" or "Happy baking!" as the last paragraph.
|
|
16
18
|
- pattern: Happy
|
|
17
19
|
group: signoff
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Words that name contractions themselves. A sentence holding one talks about the forms (Avoid negative contractions like
|
|
2
|
+
# can't and don't.), so contraction-consistency neither counts nor points at the forms in it.
|
|
3
|
+
id: contraction-term
|
|
4
|
+
language: en
|
|
5
|
+
entries:
|
|
6
|
+
- pattern: contraction
|
|
7
|
+
- pattern: contractions
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# A denial that frames a contrast only when a turn (contrast-turn) answers it: "It's not a perk. It's a necessity."
|
|
2
|
-
# Group across: a bare denial that frames a contrast only when the next
|
|
3
|
-
# and denies nothing ("What surprised me wasn't the food. It was the
|
|
4
|
-
# a concession ("I don't always. But ...") or a remark on the whole
|
|
2
|
+
# Group across: a bare denial, contracted or written out (doesn't, does not), that frames a contrast only when the next
|
|
3
|
+
# sentence opens with an across turn (It, They) and denies nothing ("What surprised me wasn't the food. It was the
|
|
4
|
+
# evenings."); a turn later in the same sentence, a concession ("I don't always. But ...") or a remark on the whole
|
|
5
|
+
# sentence ("That's more than ...") does not answer it.
|
|
5
6
|
id: contrast-lead
|
|
6
7
|
language: en
|
|
7
8
|
entries:
|
|
@@ -34,5 +35,19 @@ entries:
|
|
|
34
35
|
group: across
|
|
35
36
|
- pattern: didn't
|
|
36
37
|
group: across
|
|
38
|
+
- pattern: is not
|
|
39
|
+
group: across
|
|
40
|
+
- pattern: was not
|
|
41
|
+
group: across
|
|
42
|
+
- pattern: are not
|
|
43
|
+
group: across
|
|
44
|
+
- pattern: were not
|
|
45
|
+
group: across
|
|
46
|
+
- pattern: do not
|
|
47
|
+
group: across
|
|
48
|
+
- pattern: does not
|
|
49
|
+
group: across
|
|
50
|
+
- pattern: did not
|
|
51
|
+
group: across
|
|
37
52
|
- pattern: not because
|
|
38
53
|
group: across
|
package/lexicons/extra-word.yaml
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Headings of a question-and-answer section (FAQ, Frequently asked questions). The headings under one are the readers'
|
|
2
|
+
# questions, so the structure measures do not count their form (What is, How do) as the writer's stock heading form.
|
|
3
|
+
# Matched as whole words anywhere in the heading, ignoring case.
|
|
4
|
+
id: faq-heading
|
|
5
|
+
language: en
|
|
6
|
+
entries:
|
|
7
|
+
- pattern: faq
|
|
8
|
+
- pattern: faqs
|
|
9
|
+
- pattern: frequently asked questions
|
|
10
|
+
- pattern: questions and answers
|
|
11
|
+
- pattern: q&a
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Markers that flag one sentence as candid. Generated posts and emails asked to sound natural use one; human blog
|
|
2
|
+
# and business documents of the corpus have none. "Honestly" alone is also a manner adverb (live honestly), so only
|
|
3
|
+
# its marker forms are listed: set off by a comma or a question mark, or after "and".
|
|
4
|
+
id: honesty-marker
|
|
5
|
+
language: en
|
|
6
|
+
entries:
|
|
7
|
+
- pattern: honestly,
|
|
8
|
+
- pattern: honestly?
|
|
9
|
+
- pattern: and honestly
|
|
10
|
+
- pattern: if I'm honest
|
|
11
|
+
- pattern: if I'm being honest
|
|
12
|
+
- pattern: if I am honest
|
|
13
|
+
- pattern: if I am being honest
|
|
14
|
+
- pattern: my honest take
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Disclaimer wording a publisher appends to every page (non-endorsement, external links). contraction-consistency does not
|
|
2
|
+
# count the forms of a paragraph that holds one: the wording is the publisher's, fixed, not the writer's register.
|
|
3
|
+
id: notice-phrase
|
|
4
|
+
language: en
|
|
5
|
+
entries:
|
|
6
|
+
- pattern: does not constitute or imply
|
|
7
|
+
- pattern: does not constitute an endorsement
|
|
8
|
+
- pattern: does not constitute endorsement
|
|
9
|
+
- pattern: neither endorses nor guarantees
|
|
10
|
+
- pattern: does not endorse any
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Conjunctions a form or a page writes in capitals at the head of a line (OR, Skip to the topics …; an OR alone between two
|
|
2
|
+
# options). Each is also an acronym (OR: Oregon, operating room), so undefined-acronym leaves it out only there: at the
|
|
3
|
+
# head of a line, before a comma and a capitalised word, or alone on its line. Matched as written.
|
|
4
|
+
id: opening-conjunction
|
|
5
|
+
language: en
|
|
6
|
+
entries:
|
|
7
|
+
- pattern: "OR"
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# A word that names one of numbered choices (duplicate-definition). A model contract sets out ways to write the same clause,
|
|
2
|
+
# "1. Confidential Information (Option A)" then "(Option B)", for one to be chosen. The word followed by one number or letter
|
|
3
|
+
# names a choice ("Options A and B" names clauses that stay whichever is chosen).
|
|
4
|
+
id: option-choice-label
|
|
5
|
+
language: en
|
|
6
|
+
entries:
|
|
7
|
+
- pattern: Option
|
|
8
|
+
- pattern: Alternative
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Shapes in which a word of quote-attribution does not give the quoted words to someone. quote-without-source reads it.
|
|
2
|
+
# example a word before the quotation, in the same sentence, that opens an example (For instance, a user says "…").
|
|
3
|
+
# The writer made the words up to illustrate.
|
|
4
|
+
# thing a word right before the cue that makes its subject a thing (a sign that said "…", a note which read "…"):
|
|
5
|
+
# the words are written on it, and there is nobody to cite.
|
|
6
|
+
id: quote-not-attribution
|
|
7
|
+
language: en
|
|
8
|
+
entries:
|
|
9
|
+
- { pattern: for example, group: example }
|
|
10
|
+
- { pattern: for instance, group: example }
|
|
11
|
+
- { pattern: e.g., group: example }
|
|
12
|
+
- { pattern: that, group: thing }
|
|
13
|
+
- { pattern: which, group: thing }
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Keywords of SQL (ISO/IEC 9075) written in capitals in the prose of a database document (a VIEW, the WHERE clause). They are
|
|
2
|
+
# words, not abbreviations, so there is nothing to expand. DELETE is in http-method. Matched as written.
|
|
3
|
+
id: sql-keyword
|
|
4
|
+
language: en
|
|
5
|
+
entries:
|
|
6
|
+
- pattern: SELECT
|
|
7
|
+
- pattern: INSERT
|
|
8
|
+
- pattern: UPDATE
|
|
9
|
+
- pattern: MERGE
|
|
10
|
+
- pattern: CREATE
|
|
11
|
+
- pattern: ALTER
|
|
12
|
+
- pattern: DROP
|
|
13
|
+
- pattern: TRUNCATE
|
|
14
|
+
- pattern: VIEW
|
|
15
|
+
- pattern: TABLE
|
|
16
|
+
- pattern: INDEX
|
|
17
|
+
- pattern: JOIN
|
|
18
|
+
- pattern: WHERE
|
|
19
|
+
- pattern: FROM
|
|
20
|
+
- pattern: UNION
|
|
21
|
+
- pattern: HAVING
|
|
22
|
+
- pattern: COMMIT
|
|
23
|
+
- pattern: ROLLBACK
|
|
24
|
+
- pattern: GRANT
|
|
25
|
+
- pattern: REVOKE
|
|
26
|
+
- pattern: SCHEMA
|
|
27
|
+
- pattern: CURSOR
|
|
28
|
+
- pattern: TRIGGER
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Words of a lead-in that says the next paragraph is another document's text, word for word ("The entire receipt reads
|
|
2
|
+
# as follows:"). A lead-in ends with a colon; max-sentence-length does not measure the paragraph after it. Matched
|
|
3
|
+
# case-insensitively anywhere in the lead-in.
|
|
4
|
+
id: verbatim-lead
|
|
5
|
+
language: en
|
|
6
|
+
entries:
|
|
7
|
+
- pattern: reads as follows
|
|
8
|
+
- pattern: read as follows
|
|
9
|
+
- pattern: reads in full
|
|
10
|
+
- pattern: reads in part
|
|
11
|
+
- pattern: reads in pertinent part
|
package/package.json
CHANGED
package/src/lexicons.ts
CHANGED
|
@@ -25,6 +25,7 @@ const toEntry = (raw: unknown): LexiconEntry | undefined => {
|
|
|
25
25
|
rewrite: typeof rewrite === "string" ? rewrite : undefined,
|
|
26
26
|
...(typeof group === "string" ? { group } : {}),
|
|
27
27
|
...(isStringList(genres) ? { genres } : {}),
|
|
28
|
+
...(raw["heading_only"] === true ? { heading_only: true } : {}),
|
|
28
29
|
};
|
|
29
30
|
};
|
|
30
31
|
|