-
Notifications
You must be signed in to change notification settings - Fork 0
/
BMovieConstants.py
323 lines (285 loc) · 16.7 KB
/
BMovieConstants.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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
#!/usr/bin/env python
#//**********************************************************************
#//
#// constants
#//
#//**********************************************************************
adjectiveActionHero = 0
adjectiveActionVillain = 1
adjectiveAge = 2
adjectiveBaseHero = 3
adjectiveBaseVillain = 4
adjectiveGeographic = 5
adjectiveHero = 6
adjectiveHeroNongeographic = 7
adjectiveMentalHero = 8
adjectiveMentalVillain = 9
adjectiveNumber = 10
adjectiveObject = 11
adjectiveObjectBase = 12
adjectivePhysicalHero = 13
adjectivePhysicalVillain = 14
adjectivePlace = 15
adjectivePlaceBase = 16
adjectiveTexture = 17
adjectiveTime = 18
adjectiveVillain = 19
adjectiveVillainNongeographic = 20
adjectiveVocationHero = 21
adjectiveVocationVillain = 22
adverbVerb = 100
adverbAdjective = 101
# all verb phrases are transitive for now, prepositions included where appropriate, the final descriptor refers to the object
verbPhrasePresentSingularCharacter = 200
verbPhrasePresentSingularObject = 201
verbPhrasePresentSingularPlace = 202
verbPhrasePresentSingularGoing = 203
verbPhrasePresentSingularAttacking = 204
verbPhrasePresentSingularFinding = 205
verbPhrasePresentPluralCharacter = 300
verbPhrasePresentPluralObject = 301
verbPhrasePresentPluralPlace = 302
verbPhrasePresentPluralGoing = 303
verbPhrasePresentPluralAttacking = 304
verbPhrasePresentPluralFinding = 305
verbPhrasePastCharacter = 400
verbPhrasePastObject = 401
verbPhrasePastPlace = 402
verbPhrasePastGoing = 403
verbPhrasePastAttacking = 404
verbPhrasePastFinding = 405
verbPhraseFutureCharacter = 500
verbPhraseFutureObject = 501
verbPhraseFuturePlace = 502
verbPhraseGerundCharacter = 600
verbPhraseGerundObject = 601
verbPhraseGerundPlace = 602
namePlaceCommon = 700
namePlaceProper = 701
namePlaceProperSimple = 702
namePlaceProperArticle = 703
namePlaceArchitectureSingular = 704
namePlaceArchitecturePlural = 705
namePlaceGeographySingular = 706
namePlaceGeographyPlural = 707
namePlaceTerritorySingular = 708
namePlaceTerritoryPlural = 709
nameHeroSingularCommon = 800
nameHeroSingularProper = 801
nameHeroSingularProperSimple = 802
nameHeroSingularProperSimplePossessive = 803
nameHeroSingularLeader = 804
nameHeroPluralLeader = 805
nameHeroPluralCommon = 806
nameHeroPluralGeographicCommon = 807
nameHeroPluralProper = 808
nameHeroPluralProperSimple = 809
nameHeroPluralProperSimplePossessive = 810
nameVillainGeneric = 900
nameVillainSingularCommon = 901
nameVillainSingularGeneric = 902
nameVillainSingularProper = 903
nameVillainSingularProperSimple = 904
nameVillainSingularProperSimplePossessive = 905
nameVillainSingularLeader = 906
nameVillainPluralLeader = 907
nameVillainPluralCommon = 908
nameVillainPluralGeographicCommon = 909
nameVillainPluralProper = 910
nameVillainPluralProperSimple = 911
nameVillainPluralProperSimplePossessive = 912
nameGroupDescription = 1000
nameGroupTypePrepend = 1001
nameGroupTypeAppend = 1002
nameGroupPrepend = 1003
nameGroupAppend = 1004
nameAnimalPlural = 1100
nameAnimalSingular = 1101
nameConcept = 1102
nameConceptNegative = 1103
nameConceptPositive = 1104
nameConceptNeutral = 1105
nameDirection = 1106
nameEventEpoch = 1107
nameEventPlural = 1108
nameEventSingular = 1109
nameEventSingularNeutral = 1110
nameEventSingularPositive = 1111
nameEventSingularNegative = 1112
nameEventStoryPlural = 1113
nameEventStorySingular = 1114
nameModifier = 1115
namePlaceModifier = 1116
nameTimePlural = 1117
nameTimeSingular = 1118
nameVehiclePlural = 1119
nameVehicleSingular = 1120
nameTechnologySingular = 1121
nameTitleHero = 1122
nameTitleVillain = 1123
nameWeaponPlural = 1124
nameWeaponSingular = 1125
nameObjectPluralCommon = 1200
nameObjectPluralCommon1 = 1201
nameObjectProper = 1202
nameObjectProperSimple = 1203
nameObjectSingularCommon = 1204
nameObjectSingularCommon1 = 1205
namePossessionHeroSingular = 1300
namePossessionVillainSingular = 1301
namePossessionHeroPlural = 1302
namePossessionVillainPlural = 1303
prepositionalPhraseSingularCommon = 1400
prepositionalPhraseSingularProper = 1401
prepositionalPhrasePluralCommon = 1402
prepositionalPhrasePluralProper = 1403
prepositionalPhraseEvent = 1404
wordTypeDescriptions = {
adjectiveActionHero : 'adjectiveActionHero',
adjectiveActionVillain : 'adjectiveActionVillain',
adjectiveAge : 'adjectiveAge',
adjectiveBaseHero : 'adjectiveBaseHero',
adjectiveBaseVillain : 'adjectiveBaseVillain',
adjectiveGeographic : 'adjectiveGeographic',
adjectiveHero : 'adjectiveHero',
adjectiveHeroNongeographic : 'adjectiveHeroNongeographic',
adjectiveMentalHero : 'adjectiveMentalHero',
adjectiveMentalVillain : 'adjectiveMentalVillain',
adjectiveNumber : 'adjectiveNumber',
adjectiveObject : 'adjectiveObject',
adjectiveObjectBase : 'adjectiveObjectBase',
adjectivePhysicalHero : 'adjectivePhysicalHero',
adjectivePhysicalVillain : 'adjectivePhysicalVillain',
adjectivePlace : 'adjectivePlace',
adjectivePlaceBase : 'adjectivePlaceBase',
adjectiveTexture : 'adjectiveTexture',
adjectiveTime : 'adjectiveTime',
adjectiveVillain : 'adjectiveVillain',
adjectiveVillainNongeographic : 'adjectiveVillainNongeographic',
adjectiveVocationHero : 'adjectiveVocationHero',
adjectiveVocationVillain : 'adjectiveVocationVillain',
adverbVerb : 'adverbVerb',
adverbAdjective : 'adverbAdjective',
verbPhrasePresentSingularCharacter : 'verbPhrasePresentSingularCharacter',
verbPhrasePresentSingularObject : 'verbPhrasePresentSingularObject',
verbPhrasePresentSingularPlace : 'verbPhrasePresentSingularPlace',
verbPhrasePresentSingularGoing : 'verbPhrasePresentSingularGoing',
verbPhrasePresentSingularAttacking : 'verbPhrasePresentSingularAttacking',
verbPhrasePresentSingularFinding : 'verbPhrasePresentSingularFinding',
verbPhrasePresentPluralCharacter : 'verbPhrasePresentPluralCharacter',
verbPhrasePresentPluralObject : 'verbPhrasePresentPluralObject',
verbPhrasePresentPluralPlace : 'verbPhrasePresentPluralPlace',
verbPhrasePresentPluralGoing : 'verbPhrasePresentPluralGoing',
verbPhrasePresentPluralAttacking : 'verbPhrasePresentPluralAttacking',
verbPhrasePresentPluralFinding : 'verbPhrasePresentPluralFinding',
verbPhrasePastCharacter : 'verbPhrasePastCharacter',
verbPhrasePastObject : 'verbPhrasePastObject',
verbPhrasePastPlace : 'verbPhrasePastPlace',
verbPhrasePastGoing : 'verbPhrasePastGoing',
verbPhrasePastAttacking : 'verbPhrasePastAttacking',
verbPhrasePastFinding : 'verbPhrasePastFinding',
verbPhraseFutureCharacter : 'verbPhraseFutureCharacter',
verbPhraseFutureObject : 'verbPhraseFutureObject',
verbPhraseFuturePlace : 'verbPhraseFuturePlace',
verbPhraseGerundCharacter : 'verbPhraseGerundCharacter',
verbPhraseGerundObject : 'verbPhraseGerundObject',
verbPhraseGerundPlace : 'verbPhraseGerundPlace',
namePlaceCommon : 'namePlaceCommon',
namePlaceProper : 'namePlaceProper',
namePlaceProperSimple : 'namePlaceProperSimple',
namePlaceProperArticle : 'namePlaceProperArticle',
namePlaceArchitectureSingular : 'namePlaceArchitectureSingular',
namePlaceArchitecturePlural : 'namePlaceArchitecturePlural',
namePlaceGeographySingular : 'namePlaceGeographySingular',
namePlaceGeographyPlural : 'namePlaceGeographyPlural',
namePlaceTerritorySingular : 'namePlaceTerritorySingular',
namePlaceTerritoryPlural : 'namePlaceTerritoryPlural',
nameHeroSingularCommon : 'nameHeroSingularCommon',
nameHeroSingularProper : 'nameHeroSingularProper',
nameHeroSingularProperSimple : 'nameHeroSingularProperSimple',
nameHeroSingularProperSimplePossessive : 'nameHeroSingularProperSimplePossessive',
nameHeroSingularLeader : 'nameHeroSingularLeader',
nameHeroPluralLeader : 'nameHeroPluralLeader',
nameHeroPluralCommon : 'nameHeroPluralCommon',
nameHeroPluralGeographicCommon : 'nameHeroPluralGeographicCommon',
nameHeroPluralProper : 'nameHeroPluralProper',
nameHeroPluralProperSimple : 'nameHeroPluralProperSimple',
nameHeroPluralProperSimplePossessive : 'nameHeroPluralProperSimplePossessive',
nameVillainGeneric : 'nameVillainGeneric',
nameVillainSingularCommon : 'nameVillainSingularCommon',
nameVillainSingularGeneric : 'nameVillainSingularGeneric',
nameVillainSingularProper : 'nameVillainSingularProper',
nameVillainSingularProperSimple : 'nameVillainSingularProperSimple',
nameVillainSingularProperSimplePossessive : 'nameVillainSingularProperSimplePossessive',
nameVillainSingularLeader : 'nameVillainSingularLeader',
nameVillainPluralLeader : 'nameVillainPluralLeader',
nameVillainPluralCommon : 'nameVillainPluralCommon',
nameVillainPluralGeographicCommon : 'nameVillainPluralGeographicCommon',
nameVillainPluralProper : 'nameVillainPluralProper',
nameVillainPluralProperSimple : 'nameVillainPluralProperSimple',
nameVillainPluralProperSimplePossessive : 'nameVillainPluralProperSimplePossessive',
nameGroupDescription : 'nameGroupDescription',
nameGroupTypePrepend : 'nameGroupTypePrepend',
nameGroupTypeAppend : 'nameGroupTypeAppend',
nameGroupPrepend : 'nameGroupPrepend',
nameGroupAppend : 'nameGroupAppend',
nameAnimalPlural : 'nameAnimalPlural',
nameAnimalSingular : 'nameAnimalSingular',
nameConcept : 'nameConcept',
nameConceptNegative : 'nameConceptNegative',
nameConceptPositive : 'nameConceptPositive',
nameConceptNeutral : 'nameConceptNeutral',
nameDirection : 'nameDirection',
nameEventEpoch : 'nameEventEpoch',
nameEventPlural : 'nameEventPlural',
nameEventSingular : 'nameEventSingular',
nameEventSingularNeutral : 'nameEventSingularNeutral',
nameEventSingularPositive : 'nameEventSingularPositive',
nameEventSingularNegative : 'nameEventSingularNegative',
nameEventStoryPlural : 'nameEventStoryPlural',
nameEventStorySingular : 'nameEventStorySingular',
nameModifier : 'nameModifier',
namePlaceModifier : 'namePlaceModifier',
nameTimePlural : 'nameTimePlural',
nameTimeSingular : 'nameTimeSingular',
nameTechnologySingular : 'nameTechnologySingular',
nameVehiclePlural : 'nameVehiclePlural',
nameVehicleSingular : 'nameVehicleSingular',
nameTitleHero : 'nameTitleHero',
nameTitleVillain : 'nameTitleVillain',
nameWeaponPlural : 'nameWeaponPlural',
nameWeaponSingular : 'nameWeaponSingular',
nameObjectPluralCommon : 'nameObjectPluralCommon',
nameObjectPluralCommon1 : 'nameObjectPluralCommon1',
nameObjectProper : 'nameObjectProper',
nameObjectProperSimple : 'nameObjectProperSimple',
nameObjectSingularCommon : 'nameObjectSingularCommon',
nameObjectSingularCommon1 : 'nameObjectSingularCommon1',
namePossessionHeroSingular : 'namePossessionHeroSingular',
namePossessionVillainSingular : 'namePossessionVillainSingular',
namePossessionHeroPlural : 'namePossessionHeroPlural',
namePossessionVillainPlural : 'namePossessionVillainPlural',
prepositionalPhraseSingularCommon : 'prepositionalPhraseSingularCommon',
prepositionalPhraseSingularProper : 'prepositionalPhraseSingularProper',
prepositionalPhrasePluralCommon : 'prepositionalPhrasePluralCommon',
prepositionalPhrasePluralProper : 'prepositionalPhrasePluralProper',
prepositionalPhraseEvent : 'prepositionalPhraseEvent',
}
#//**********************************************************************
#//
#// replaceList
#//
#//**********************************************************************
replaceList = [
"A A", "An A",
"A E", "An E",
"A I", "An I",
"A O", "An O",
"A U", "An U",
"An Uni", "A Uni",
"A Hour", "An Hour",
"In The Edge", "On The Edge",
" ,", ",",
" :", ":",
"- ", "-",
]