-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction9.py
59 lines (43 loc) · 2.19 KB
/
action9.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
import random
class Action9():
"""
generates Action 9 -- the resolution -- which is comprised of paragraph 22,
based on elements in story.py
"""
def __init__(self, our_story):
self.story = our_story
if self.story.ch3['pronoun'] == "I":
self.subject = "I"
self.verb1 = "know"
self.verb2 = "hold"
self.verb3 = "feel"
self.verb4 = "dream"
else:
self.subject = self.story.ch3['first_name']
self.verb1 = "knows"
self.verb2 = "holds"
self.verb3 = "feels"
self.verb4 = "dreams"
def gen_par22(self):
# But < I > knew it couldn't be. < I > < know > it can't be.
s1 = "But " + self.story.ch3['pronoun'] + " knew it couldn't be. " + \
self.story.ch3['pronoun'].capitalize() + " " + self.verb1 + " it can't be."
# The < stone > < box > sits on < my > < bookshelf > and is always < cool >.
s2 = "The " + self.story.symbol['adj'] + " " + self.story.symbol['noun'] + \
" sits on " + self.story.ch3['possessive'] + " " + self.story.symbol['assoc_noun'] + \
" and is always " + self.story.symbol['adj_temp'] + "."
# It's < heavy > and < light > at the same time.
s3 = "It's " + self.story.symbol['adj_weight'] + " and " + \
self.story.symbol['adj_weight_opposite2'] + " at the same time."
# < I > still < dream >, always < dream >, but maybe they're about something else?
s4 = self.subject + " still " + self.verb4 + ", always " + self.verb4 + \
", but maybe they're about something else?"
# When < I > hold it, < I > feel < hopeful > .
s5 = "When " + self.story.ch3['pronoun'] + " " + self.verb2 + " the " + self.story.symbol['noun'] + \
" " + self.story.ch3['pronoun'] + " " + self.verb3 + " " + \
self.story.theme['resolution_adj'] + "."
p22 = s1 + " " + s2 + " " + s3 + " " + s4 + " " + s5
return p22
def gen_action9(self):
action9 = self.gen_par22()
return action9