@atlaskit/editor-plugin-autocomplete 0.1.0 → 0.3.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/CHANGELOG.md +16 -0
- package/afm-cc/tsconfig.json +2 -1
- package/afm-jira/tsconfig.json +2 -1
- package/afm-products/tsconfig.json +2 -1
- package/build/tsconfig.json +20 -0
- package/build/url-module.d.ts +8 -0
- package/dist/cjs/autocompletePlugin.js +18 -5
- package/dist/cjs/autocompletePluginType.js +5 -1
- package/dist/cjs/pm-plugins/autocomplete-plugin.js +368 -0
- package/dist/cjs/pm-plugins/ghost-text-decoration.js +39 -0
- package/dist/cjs/pm-plugins/scoring-pipeline.js +256 -0
- package/dist/cjs/pm-plugins/slow-lane-client.js +199 -0
- package/dist/cjs/pm-plugins/text-predictor.js +796 -0
- package/dist/es2019/autocompletePlugin.js +20 -6
- package/dist/es2019/autocompletePluginType.js +1 -0
- package/dist/es2019/pm-plugins/autocomplete-plugin.js +368 -0
- package/dist/es2019/pm-plugins/ghost-text-decoration.js +33 -0
- package/dist/es2019/pm-plugins/scoring-pipeline.js +221 -0
- package/dist/es2019/pm-plugins/slow-lane-client.js +157 -0
- package/dist/es2019/pm-plugins/text-predictor.js +631 -0
- package/dist/esm/autocompletePlugin.js +18 -5
- package/dist/esm/autocompletePluginType.js +1 -0
- package/dist/esm/pm-plugins/autocomplete-plugin.js +362 -0
- package/dist/esm/pm-plugins/ghost-text-decoration.js +33 -0
- package/dist/esm/pm-plugins/scoring-pipeline.js +252 -0
- package/dist/esm/pm-plugins/slow-lane-client.js +192 -0
- package/dist/esm/pm-plugins/text-predictor.js +793 -0
- package/dist/types/autocompletePluginType.d.ts +6 -3
- package/dist/types/pm-plugins/autocomplete-plugin.d.ts +36 -0
- package/dist/types/pm-plugins/ghost-text-decoration.d.ts +7 -0
- package/dist/types/pm-plugins/scoring-pipeline.d.ts +33 -0
- package/dist/types/pm-plugins/slow-lane-client.d.ts +46 -0
- package/dist/types/pm-plugins/text-predictor.d.ts +90 -0
- package/dist/types-ts4.5/autocompletePluginType.d.ts +6 -3
- package/dist/types-ts4.5/pm-plugins/autocomplete-plugin.d.ts +36 -0
- package/dist/types-ts4.5/pm-plugins/ghost-text-decoration.d.ts +7 -0
- package/dist/types-ts4.5/pm-plugins/scoring-pipeline.d.ts +33 -0
- package/dist/types-ts4.5/pm-plugins/slow-lane-client.d.ts +46 -0
- package/dist/types-ts4.5/pm-plugins/text-predictor.d.ts +90 -0
- package/package.json +2 -2
- package/src/autocompletePlugin.tsx +25 -5
- package/src/autocompletePluginType.ts +14 -3
- package/src/pm-plugins/autocomplete-plugin/package.json +15 -0
- package/src/pm-plugins/autocomplete-plugin.ts +443 -0
- package/src/pm-plugins/data/combined_l2_l3_pos_tags.json +73571 -3
- package/src/pm-plugins/data/ghost_pos_tags.json +43 -3
- package/src/pm-plugins/data/grammar_transitions_10k.json +46 -3
- package/src/pm-plugins/data/l3_vocabulary.json +20002 -3
- package/src/pm-plugins/data/vocabulary_10k.json +38794 -3
- package/src/pm-plugins/data/word_index_10k.json +7760 -3
- package/src/pm-plugins/ghost-text-decoration.ts +44 -0
- package/src/pm-plugins/scoring-pipeline.ts +294 -0
- package/src/pm-plugins/slow-lane-client/package.json +15 -0
- package/src/pm-plugins/slow-lane-client.ts +222 -0
- package/src/pm-plugins/text-predictor/package.json +15 -0
- package/src/pm-plugins/text-predictor.ts +780 -0
- package/tsconfig.app.json +12 -3
- package/tsconfig.json +4 -1
|
@@ -1,3 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
{
|
|
2
|
+
"a": ["DET"], "an": ["DET"], "the": ["DET"],
|
|
3
|
+
"this": ["DET", "PRON"], "that": ["DET", "PRON", "SCONJ"],
|
|
4
|
+
"these": ["DET", "PRON"], "those": ["DET", "PRON"],
|
|
5
|
+
|
|
6
|
+
"my": ["DET"], "your": ["DET"], "his": ["DET"], "her": ["DET"],
|
|
7
|
+
"its": ["DET"], "our": ["DET"], "their": ["DET"],
|
|
8
|
+
|
|
9
|
+
"in": ["ADP"], "on": ["ADP"], "at": ["ADP"], "for": ["ADP"],
|
|
10
|
+
"with": ["ADP"], "about": ["ADP"], "of": ["ADP"], "by": ["ADP"],
|
|
11
|
+
"from": ["ADP"], "as": ["ADP", "SCONJ"], "into": ["ADP"],
|
|
12
|
+
"through": ["ADP"], "after": ["ADP"], "over": ["ADP"],
|
|
13
|
+
"between": ["ADP"], "out": ["ADP"], "against": ["ADP"],
|
|
14
|
+
"during": ["ADP"], "without": ["ADP"], "before": ["ADP"],
|
|
15
|
+
"under": ["ADP"], "around": ["ADP"], "among": ["ADP"],
|
|
16
|
+
|
|
17
|
+
"to": ["PART", "ADP"],
|
|
18
|
+
"not": ["PART", "ADV"],
|
|
19
|
+
|
|
20
|
+
"i": ["PRON"], "you": ["PRON"], "he": ["PRON"], "she": ["PRON"],
|
|
21
|
+
"it": ["PRON"], "we": ["PRON"], "they": ["PRON"],
|
|
22
|
+
"me": ["PRON"], "him": ["PRON"], "us": ["PRON"], "them": ["PRON"],
|
|
23
|
+
"what": ["PRON"], "who": ["PRON"], "which": ["PRON"], "whom": ["PRON"],
|
|
24
|
+
|
|
25
|
+
"and": ["CCONJ"], "or": ["CCONJ"], "but": ["CCONJ"],
|
|
26
|
+
"so": ["ADV", "CCONJ"], "because": ["SCONJ"], "if": ["SCONJ"],
|
|
27
|
+
"when": ["SCONJ", "ADV"], "while": ["SCONJ"], "although": ["SCONJ"],
|
|
28
|
+
"though": ["SCONJ"], "since": ["SCONJ", "ADP"], "unless": ["SCONJ"],
|
|
29
|
+
|
|
30
|
+
"is": ["VERB"], "am": ["VERB"], "are": ["VERB"], "was": ["VERB"],
|
|
31
|
+
"were": ["VERB"], "be": ["VERB"], "been": ["VERB"],
|
|
32
|
+
"has": ["VERB"], "have": ["VERB"], "had": ["VERB"],
|
|
33
|
+
"do": ["VERB"], "does": ["VERB"], "did": ["VERB"],
|
|
34
|
+
|
|
35
|
+
"can": ["VERB"], "could": ["VERB"], "will": ["VERB"], "would": ["VERB"],
|
|
36
|
+
"shall": ["VERB"], "should": ["VERB"], "may": ["VERB"], "might": ["VERB"],
|
|
37
|
+
"must": ["VERB"],
|
|
38
|
+
|
|
39
|
+
"very": ["ADV"], "too": ["ADV"], "always": ["ADV"], "never": ["ADV"],
|
|
40
|
+
"just": ["ADV"], "really": ["ADV"], "also": ["ADV"], "only": ["ADV"],
|
|
41
|
+
"well": ["ADV"], "even": ["ADV"], "still": ["ADV"], "now": ["ADV"],
|
|
42
|
+
"then": ["ADV"]
|
|
43
|
+
}
|
|
@@ -1,3 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
{
|
|
2
|
+
"transitions": {
|
|
3
|
+
"DET": {
|
|
4
|
+
"allowed": ["NOUN", "ADJ", "PROPN"],
|
|
5
|
+
"note": "Determiners (a, the) must be followed by a noun or an adjective describing a noun."
|
|
6
|
+
},
|
|
7
|
+
"ADP": {
|
|
8
|
+
"allowed": ["NOUN", "DET", "ADJ", "PROPN"],
|
|
9
|
+
"note": "Prepositions (of, in) usually lead to a noun phrase."
|
|
10
|
+
},
|
|
11
|
+
"VERB": {
|
|
12
|
+
"allowed": ["NOUN", "DET", "ADJ", "ADP", "ADV", "PROPN", "VERB"]
|
|
13
|
+
},
|
|
14
|
+
"ADV": {
|
|
15
|
+
"allowed": ["VERB", "ADJ", "ADV", "ADP"],
|
|
16
|
+
"note": "Adverbs modify verbs (quickly run), adjectives (so frustrating), or other adverbs."
|
|
17
|
+
},
|
|
18
|
+
"CCONJ": {
|
|
19
|
+
"allowed": ["NOUN", "VERB", "ADJ", "ADV", "PRON", "PROPN", "DET"],
|
|
20
|
+
"note": "Conjunctions (and, but, or) can join almost any parallel structures."
|
|
21
|
+
},
|
|
22
|
+
"ADJ": {
|
|
23
|
+
"allowed": ["NOUN", "ADJ"],
|
|
24
|
+
"note": "Adjectives should almost always stack or end in a noun."
|
|
25
|
+
},
|
|
26
|
+
"NOUN": {
|
|
27
|
+
"allowed": ["VERB", "ADP", "CCONJ", "PUNCT", "NOUN"],
|
|
28
|
+
"note": "Nouns are usually followed by an action (verb) or a relationship (preposition)."
|
|
29
|
+
},
|
|
30
|
+
"PROPN": {
|
|
31
|
+
"allowed": ["VERB", "ADP", "CCONJ", "PUNCT", "NOUN", "PART"]
|
|
32
|
+
},
|
|
33
|
+
"PRON": {
|
|
34
|
+
"allowed": ["VERB", "ADV"],
|
|
35
|
+
"note": "Pronouns (I, we, it) are almost always followed by a verb."
|
|
36
|
+
},
|
|
37
|
+
"PART": {
|
|
38
|
+
"allowed": ["VERB", "ADV"],
|
|
39
|
+
"note": "Particles like 'to' or 'not' usually lead directly into a base verb or adverb (to demonstrate, not typing)."
|
|
40
|
+
},
|
|
41
|
+
"SCONJ": {
|
|
42
|
+
"allowed": ["PRON", "DET", "NOUN", "PROPN", "ADJ"],
|
|
43
|
+
"note": "Subordinating conjunctions (because, if, while) start new clauses, usually followed by a subject."
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|