ai-nevermore 0.0.2 → 0.0.4

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/README.md CHANGED
@@ -51,7 +51,7 @@ Roadmap
51
51
 
52
52
  - [x] raw output mode
53
53
  - [x] stdin, stdout support
54
- - [ ] custom dictionary
54
+ - [x] custom dictionary
55
55
  - [ ] self randomizing dictionary
56
56
 
57
57
  Development
package/bin/nevermore CHANGED
@@ -39,7 +39,13 @@ yargs(hideBin(process.argv))
39
39
  //TODO: custom index
40
40
  //TODO: self index
41
41
  const { index, root } = await computeIndexKeys(input);
42
- const { html, css } = await generateHTMLAndCSS(root, index);
42
+ let idx = index;
43
+ if(argv['custom-dictionary']){
44
+ const result = await readFile(argv['custom-dictionary']);
45
+ idx = result.toString();
46
+ }
47
+ //const { index, root } = await computeIndexKeys(input);
48
+ const { html, css } = await generateHTMLAndCSS(root, idx);
43
49
  if(argv['unified-output']){
44
50
  const output = formatHTML(html, css, argv['raw-output']);
45
51
  await writeFile(argv['unified-output'], output);
@@ -77,6 +83,10 @@ yargs(hideBin(process.argv))
77
83
  type: 'number',
78
84
  default: 12,
79
85
  description: 'The size of the font in pixels'
86
+ }).option('custom-dictionary', {
87
+ alias: 'd',
88
+ type: 'string',
89
+ description: 'A json map of replacement words'
80
90
  }).option('font', {
81
91
  alias: 'f',
82
92
  type: 'string',
@@ -0,0 +1,224 @@
1
+ {
2
+ "a": "superfluously",
3
+ "midnight": "barbarossa",
4
+ "while": "malefic",
5
+ "i": "rhodium",
6
+ "weary": "willowware",
7
+ "over": "deathbed",
8
+ "volume": "mannerism",
9
+ "lore": "tragicomical",
10
+ "there": "sylvanus",
11
+ "tapping": "harvard",
12
+ "as": "connectivity",
13
+ "one": "incrust",
14
+ "at": "throstle",
15
+ "chamber": "armeria",
16
+ "door": "up-to-date",
17
+ "visitor": "adjectivally",
18
+ "nothing": "ceratonia",
19
+ "more": "assessor",
20
+ "remember": "sls",
21
+ "it": "convallaria",
22
+ "in": "joss",
23
+ "december": "ablate",
24
+ "separate": "hotcake",
25
+ "dying": "sternutative",
26
+ "ember": "allargando",
27
+ "ghost": "underwrite",
28
+ "floor": "mucor",
29
+ "morrow": "pugnacity",
30
+ "borrow": "litigator",
31
+ "surcease": "redirect",
32
+ "sorrow": "primogenitor",
33
+ "lost": "watchful",
34
+ "maiden": "irula",
35
+ "name": "coptis",
36
+ "here": "selenicereus",
37
+ "rustling": "maroc",
38
+ "purple": "esidrix",
39
+ "curtain": "cordaites",
40
+ "me": "chaenactis",
41
+ "felt": "jauntily",
42
+ "so": "flavoring",
43
+ "now": "calgary",
44
+ "still": "uniqueness",
45
+ "beating": "foreshank",
46
+ "heart": "encyclopedia",
47
+ "repeating": "tutelage",
48
+ "entrance": "tetrapod",
49
+ "soul": "slantways",
50
+ "then": "despotic",
51
+ "no": "timorously",
52
+ "longer": "mind-set",
53
+ "sir": "spilogale",
54
+ "or": "elettaria",
55
+ "madam": "cloister",
56
+ "forgiveness": "penciled",
57
+ "implore": "doctorow",
58
+ "fact": "berberidaceae",
59
+ "darkness": "chacma",
60
+ "deep": "trespassing",
61
+ "long": "kadai",
62
+ "dreaming": "warmed",
63
+ "mortal": "paunchy",
64
+ "dream": "liberalisation",
65
+ "silence": "nonwoody",
66
+ "stillness": "impolite",
67
+ "token": "galvaniser",
68
+ "word": "turpitude",
69
+ "an": "reprint",
70
+ "echo": "inflexibility",
71
+ "back": "historian",
72
+ "turning": "labiodental",
73
+ "burning": "fay",
74
+ "window": "growling",
75
+ "lattice": "vasopressin",
76
+ "let": "unconquerable",
77
+ "see": "bastardise",
78
+ "mystery": "underactive",
79
+ "explore": "liquidambar",
80
+ "be": "tracheophyta",
81
+ "moment": "clayey",
82
+ "wind": "streptolysin",
83
+ "open": "sardinian",
84
+ "shutter": "keynes",
85
+ "flirt": "out-of-doors",
86
+ "flutter": "palaeoanthropology",
87
+ "raven": "terefah",
88
+ "days": "menses",
89
+ "yore": "deduce",
90
+ "least": "codling",
91
+ "obeisance": "re-address",
92
+ "he": "lanternfish",
93
+ "minute": "ashy",
94
+ "mien": "unbuttoned",
95
+ "lord": "antifreeze",
96
+ "lady": "self-indulgence",
97
+ "above": "knox",
98
+ "bust": "arborolatry",
99
+ "pallas": "beech",
100
+ "sat": "eradication",
101
+ "ebony": "affricative",
102
+ "bird": "nga",
103
+ "fancy": "roofed",
104
+ "smiling": "scaramouche",
105
+ "grave": "brunei",
106
+ "stern": "balmy",
107
+ "decorum": "ceratostomataceae",
108
+ "countenance": "silvervine",
109
+ "crest": "technologist",
110
+ "thou": "boulder",
111
+ "art": "shiv",
112
+ "craven": "fat",
113
+ "ancient": "stomachic",
114
+ "wandering": "heartfelt",
115
+ "shore": "clapping",
116
+ "tell": "cuckoldry",
117
+ "night": "undset",
118
+ "s": "dullard",
119
+ "much": "fovea",
120
+ "fowl": "pupil",
121
+ "hear": "flashpoint",
122
+ "discourse": "actuarial",
123
+ "answer": "monogynist",
124
+ "little": "thought-provoking",
125
+ "meaning": "yon",
126
+ "relevancy": "panama",
127
+ "bore": "dustcloth",
128
+ "help": "curtness",
129
+ "living": "paramecium",
130
+ "human": "mishegaas",
131
+ "being": "sorely",
132
+ "seeing": "m-1",
133
+ "beast": "kayak",
134
+ "sitting": "technophobic",
135
+ "spoke": "bobwhite",
136
+ "feather": "watertown",
137
+ "till": "reflect",
138
+ "have": "ribonuclease",
139
+ "will": "autotrophic",
140
+ "leave": "suggester",
141
+ "reply": "dilutant",
142
+ "stock": "whatchamacallum",
143
+ "store": "crepitation",
144
+ "master": "steuben",
145
+ "disaster": "pleopod",
146
+ "fast": "impermeable",
147
+ "burden": "unspotted",
148
+ "hope": "low-priced",
149
+ "melancholy": "untruth",
150
+ "straight": "washout",
151
+ "seat": "tenability",
152
+ "front": "portwatcher",
153
+ "velvet": "pyrographic",
154
+ "sinking": "optic",
155
+ "thinking": "reorganisation",
156
+ "croaking": "solderer",
157
+ "guessing": "nakedwood",
158
+ "syllable": "bend",
159
+ "eyes": "plucky",
160
+ "bosom": "sabicu",
161
+ "core": "radiograph",
162
+ "head": "ampere-second",
163
+ "ease": "unliterary",
164
+ "reclining": "full-blood",
165
+ "cushion": "azotaemia",
166
+ "lining": "ringed",
167
+ "lamp": "solidago",
168
+ "light": "lycoperdaceae",
169
+ "o": "invoke",
170
+ "er": "scoreless",
171
+ "violet": "catalyst",
172
+ "gloating": "hypnoid",
173
+ "press": "baseborn",
174
+ "air": "mina",
175
+ "unseen": "squinter",
176
+ "censer": "guru",
177
+ "foot": "account",
178
+ "falls": "intrusive",
179
+ "wretch": "leoncita",
180
+ "god": "kentuckian",
181
+ "lent": "rhabdomyosarcoma",
182
+ "sent": "bihari",
183
+ "respite": "alliterate",
184
+ "quaff": "taiwanese",
185
+ "oh": "scholar",
186
+ "kind": "slavery",
187
+ "forget": "gaggle",
188
+ "prophet": "ex-directory",
189
+ "thing": "automatonlike",
190
+ "evil": "devolvement",
191
+ "devil": "grouseberry",
192
+ "tempter": "ravaged",
193
+ "tempest": "friend",
194
+ "desolate": "windless",
195
+ "desert": "tantalise",
196
+ "land": "holographical",
197
+ "home": "undernourishment",
198
+ "horror": "cobra",
199
+ "balm": "cercarial",
200
+ "heaven": "hydnum",
201
+ "bends": "patronizingly",
202
+ "us": "application",
203
+ "adore": "autoloader",
204
+ "laden": "wintun",
205
+ "clasp": "reredos",
206
+ "sign": "esterify",
207
+ "parting": "sulphate",
208
+ "fiend": "buckwheat",
209
+ "get": "dimensional",
210
+ "black": "interpenetration",
211
+ "plume": "unpaved",
212
+ "lie": "arouser",
213
+ "loneliness": "flagging",
214
+ "quit": "caul",
215
+ "take": "pastrami",
216
+ "beak": "resource",
217
+ "out": "self-supporting",
218
+ "form": "crustose",
219
+ "off": "refueling",
220
+ "demon": "tigerish",
221
+ "streaming": "expiable",
222
+ "shadow": "palaeozoology",
223
+ "floating": "supper"
224
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-nevermore",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "keywords": [
5
5
  "adversarial",
6
6
  "content",