-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhornswiggle.py
241 lines (225 loc) · 3.65 KB
/
hornswiggle.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
#!/usr/bin/python
import random
"""
Dr. Hornswiggle's Trancendental Ideation Generator
person's X
person's X with X
person's X without X
person's X and X
X = noun
X = adj noun
X = adv adj noun
X = adv adj (and) adj noun
X = adv adj (and) adj descriptor
X = adv adj (and) adj noun descriptor
"""
raw = {
"possessives":"""
Dr. Hornswiggle's
Dr. Hornswoggle's
Prof. Boomquaggle's
Sir Birdzobble's
Madam Drumdrooble's
Mr. Lensfoggle's
Mrs. Cangrooble's
Ms. Rocktobble's
Mx. Ferntibble's
The Reverend Dr. Hefflebottom's
""",
"adverbs":"""
Aesthetically
Dimensionally
Intergalactically
Organically
Entirely
Absolutely
Magnificently
Aesthetically
Superficially
Seldom
Periodically
Pragmatically
Fully
Very
Extremely
Extraordinarily
""",
"prefixes":"""
Anti-
Non-
Pre-
Post-
Semi-
Super-
""",
"adjectives":"""
Fantabulous
Fantubulous
Fantoobulous
Quintessential
Hypothetical
Pre-Owned
Alchemical
Null-Terminated
Skull-Shaped
Automagical
Forgettable
Non-Fungible
Inflammible
Inedible
5-Wheeled
Vacuum-Packed
Benign
Terrible
Supernatural
Quizzical
Cantankerous
Spontaneous
Maritime
Extraordinary
Royal
Alphabetical
Dapper
Dubious
Devious
Non-Binary
Grayscale
Momentous
Trancendental
Additional
Namby-Pamby
Solemn
Angy
Hungy
Precarious
Gargantuan
Monotone
Meddling
Cromulent
Corpulent
Hysterical
""",
"nouns":"""
Calvacade
Cavalcade
Wibblewobble
Album
Albatross
Bean
Artifact
Pantaloon
Composure
Zeitgeist
Object of Interest
Meal Concept
Tincture
Acid
Abomination
Submarine
Telegraph
Vessel
Potion
Butter
Consciousness
Bounty Hunter
Swag
Cumquat
Ringtone
Ideation
Superposition
Machination
Cacophony
Brouhaha
Flibbertigibbet
Malarkey
Codswallop
Rigmarole
Shenanigan
Technobabble
Pandemonium
Tardigrade
Phantasm
Jargon
Mushroom
Buzzard
Marsupial
Wormhole
""",
"descriptors":"""
Box
Generator
Sweeper
Transmogrifier
Grafter
Defragmenter
Governor
Facility
Game
Sandwich
Simulator
Parade
Festival
Contraption
Prototype
Accessory
""",
"conjunctions":"""
, and
, Containing One
, Lacking One
, Sans One
, with Part of One
, Fused with
, with Optional
, with Bonus
""",
"rare postfix":"""
& Knuckles
, Featuring Dante from the Devil May Cry Series
"""
}
lists = {}
for category in raw:
lists[category] = [item for item in raw[category].split("\n") if item != ""]
def automagicalSuperposition(chance):
return random.random() > 1-chance/100
class TrancendentalIdeationGenerator():
def __init__(self):
self.words = []
def add(self, category):
self.words.append(random.choice(lists[category]))
def getStr(self):
return " ".join(self.words).replace("- ", "-").replace(" ,", ",")
def addDimensionallyHypotheticalObjectOfInterest(self):
if automagicalSuperposition(95):
if automagicalSuperposition(40):
self.add("adverbs")
if automagicalSuperposition(25):
self.add("adjectives")
if automagicalSuperposition(80):
self.words.append("and")
if automagicalSuperposition(15):
self.add("prefixes")
self.add("adjectives")
if automagicalSuperposition(80):
self.add("nouns")
if automagicalSuperposition(20):
self.add("descriptors")
if automagicalSuperposition(25):
self.add("descriptors")
else:
self.add("descriptors")
if automagicalSuperposition(15):
self.add("conjunctions")
self.addDimensionallyHypotheticalObjectOfInterest()
def generate(self):
self.add("possessives")
self.addDimensionallyHypotheticalObjectOfInterest()
if automagicalSuperposition(2):
self.add("rare postfix")
if automagicalSuperposition(5):
self.add("rare postfix")
def generate():
words = TrancendentalIdeationGenerator()
words.generate()
return words.getStr()