summaryrefslogtreecommitdiff
path: root/data/sample-grammars/genre-fiction.gram
blob: 92437d79fdd1ada3cf397a80939d63b3d87fbf66 (plain)
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
[genre-fict] in a [setting] a young [person] stumbles across a(n) [place] [genre-fict2]

# Uncomment me when we're done testing, because this rule takes a while to
# generate
pragma initial-rule [genre-fict]
pragma export-rule  [genre-fict]

[genre-fict2] which spurs him into conflict with [antagonist] [genre-fict3]

[genre-fict3] with the help of a [female] and her [gear] culminating in [genre-fict4]

[genre-fict4] culminating in [climax] . This is [title]

[setting] [setting-adj] [setting-dest]

[setting-adj] néo-noir
	alternate-history
	ancient
	dystopian
	metaphorical
	anachronistic
	leather-clad
	coal-powered
	dragon-filled
	shrill

[setting-dest] America
	japan
	soviet Russia
	Victorian Britain
	medieval Europe
	Aztec empire
	Atlantis
	Terraformed mars
	Antarctica
	one-way spaceflight
	outer rim world
	set from road warrior

[person] flying message courier
	student of metaphysics
	milquetoast office drone
	schlub with mild OCD
	farm boy with dreams
	techno-obsessed geek
	brooding loner
	wisecracking mercenary
	idealistic revolutionary
	journeyman inventor
	collector of oddities
	author self-insert

[place] [place-pref] [place-suff]

[place-pref] magic
	arcane
	dusty
	crazy
	alien
	enchanted
	otherworldly
	dream-inducing
	encrypted
	time-traveling
	exiled
	talking

[place-suff] diadem
	prophecy
	tome
	old man
	artifact
	sword
	portal
	drug
	data feed
	soldier
	angel
	fish

[antagonist] a megalomaniacal dictator
	a government conspiracy
	a profit-obsessed corporation
	a sneering wizard
	supernatural monsters
	computer viruses made real
	murderous robots
	an army led by a sadist
	forces that encourage conformity
	a charismatic politician on the rise
	humanity’s selfish nature
	his own insecurity vis-a-vis girls

[female] [female]
	[female] [fem-suffix]
	[fem-prefix] [female]
	[fem-prefix] [female] [fem-suffix]

[fem-prefix] sarcastic
	tomboyish
	shape-shifting
	leather-clad
	bookish
	cherubic

[female] female
	girl

[fem-suffix] techno-geek
	mechanic
	assassin
	in shades
	who’s always loved him
	scholar with mousy brown hair
	with pigtails and spunk
	who inexplicably becomes attracted to the damaged protagonist for unstated reasons

[gear] wacky pet
	welding gear
	closet full of assault rifles
	reference book
	cleavage
	facility with magic
	condescending tone
	discomfort in formal wear
	propensity for being captured

[climax] a fistfight atop a tower
	a daring rescue preceding a giant explosion
	a heroic sacrifice that no one will ever remember
	a philosophical argument punctuated by violence
	a false victory with the promise of future danger
	the invocation of a spell at the last possible moment
	eternal love professed without irony
	the land restored to health
	authorial preaching through the mouths of the characters
	convoluted nonsense that squanders the reader’s goodwill
	wish-fulfillment solutions to real-world problems
	a cliffhanger for the sake of prompting a series

[title] [tit-1] [tit-2]

[tit-1] chrono
	neuro
	aero
	cosmo
	reve
	necro
	cyber
	astro
	psycho
	steam
	meta
	black

[tit-2] punk
	mech
	noiac
	(o)poli
	naut
	phage
	droid
	bot
	blade
	tron
	cancer
	War