git @ Cat's Eye Technologies The-Swallows / 11625c4
Use pronouns. Cat's Eye Technologies 11 years ago
1 changed file(s) with 10 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
104104
105105 character = event.participants[0]
106106 if character == self.character: # same character doing stuff
107 if event.phrase.startswith('<1>'):
108 event.phrase = '<he-1>' + event.phrase[3:]
109
107110 if (self.events[-1].phrase == '<1> made <his-1> way to <2>' and
108111 event.phrase == '<1> went to <2>'):
109112 self.events[-1].participants[1] = event.participants[1]
111114 event.phrase == '<1> went to <2>'):
112115 self.events[-1].phrase = '<1> made <his-1> way to <2>'
113116 self.events[-1].participants[1] = event.participants[1]
117 elif (self.events[-1].phrase == '<he-1> made <his-1> way to <2>' and
118 event.phrase == '<he-1> went to <2>'):
119 self.events[-1].participants[1] = event.participants[1]
120 elif (self.events[-1].phrase == '<he-1> went to <2>' and
121 event.phrase == '<he-1> went to <2>'):
122 self.events[-1].phrase = '<he-1> made <his-1> way to <2>'
123 self.events[-1].participants[1] = event.participants[1]
114124 else:
115125 self.events.append(event)
116126 else: # new character doing stuff
117127 self.character = character
118128 self.events.append(event)
119
120 # if event.phrase.startswith('<1>'):
121 # event.phrase = '<he-1>' + event.phrase[3:]
122 # self.events.append(event)
123129
124130
125131 ### OBJECTS ###