-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunction_words.py
More file actions
131 lines (121 loc) · 9.2 KB
/
Copy pathfunction_words.py
File metadata and controls
131 lines (121 loc) · 9.2 KB
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
interjections = ["oh", "wow", "tut-tut", "tsk-tsk", "ugh", "whew", "phew", "yeah", "yea", "shh", "oops", "ouch", "aha",
"yikes"]
generalAdjectivesAdverbs = ["new", "newer", "newest", "old", "older", "oldest", "previous", "good", "well", "better", "best",
"big", "bigger", "biggest", "easy", "easier", "easiest", "fast", "faster", "fastest", "far", "hard", "harder", "hardest",
"least", "own", "large", "larger", "largest", "long", "longer", "longest", "low", "lower", "lowest", "high", "higher",
"highest", "regular", "simple", "simpler", "simplest", "small", "smaller", "smallest", "tiny", "tinier", "tiniest",
"short", "shorter", "shortest", "main", "actual", "nice", "nicer", "nicest", "real", "same", "able", "certain", "usual",
"so-called", "mainly", "mostly", "recent", "anymore", "complete", "lately", "possible", "commonly", "constantly",
"continually", "directly", "easily", "nearly", "slightly", "somewhere", "estimated", "latest", "different", "similar",
"widely", "bad", "worse", "worst", "great", "specific", "available", "average", "awful", "awesome", "basic", "beautiful",
"busy", "current", "entire", "everywhere", "important", "major", "multiple", "normal", "necessary", "obvious", "partly",
"special", "last", "early", "earlier", "earliest", "young", "younger", "youngest", ""]
delexicalizedVerbs = ["seem", "seems", "seemed", "let", "let's", "lets", "make", "makes", "made", "want", "showed", "shown",
"go", "goes", "went", "gone", "take", "takes", "took", "taken", "put", "puts", "use", "used", "try", "tries", "tried", "mean",
"means", "meant", "called", "based", "add", "adds", "added", "contain", "contains", "contained", "consist", "consists",
"consisted", "ensure", "ensures", "ensured"]
intensifiers = ["highly", "very", "really", "extremely", "absolutely", "completely", "totally", "utterly", "quite",
"somewhat", "seriously", "fairly", "fully", "amazingly"]
additionalTransitionWords = ["again", "definitely", "eternally", "expressively", "instead",
"expressly", "immediately", "including", "instantly", "namely", "naturally", "next", "notably", "now", "nowadays",
"ordinarily", "positively", "truly", "ultimately", "uniquely", "usually", "almost", "maybe",
"probably", "granted", "initially", "too", "actually", "already", "e.g", "i.e", "often", "regularly", "simply",
"optionally", "perhaps", "sometimes", "likely", "never", "ever", "else", "inasmuch", "provided", "currently", "incidentally",
"elsewhere", "particular", "recently", "relatively", "f.i", "clearly", "apparently"]
interviewVerbs = ["say", "says", "said", "claimed", "ask", "asks", "asked", "stated", "explain", "explains", "explained",
"think", "thinks", "talks", "talked", "announces", "announced", "tells", "told", "discusses", "discussed", "suggests",
"suggested", "understands", "understood"]
correlativeConjunctions = ["sooner", "just", "only"]
subordinatingConjunctions = ["if", "even"]
coordinatingConjunctions = ["and", "or", "and/or", "yet"]
prepositionalAdverbs = ["back", "within", "forward", "backward", "ahead"]
prepositions = ["in", "from", "with", "under", "throughout", "atop", "for", "on", "of", "to", "aboard", "about",
"above", "abreast", "absent", "across", "adjacent", "after", "against", "along", "alongside", "amid", "mid",
"among", "apropos", "apud", "around", "as", "astride", "at", "ontop", "afore", "tofore", "behind", "ahind",
"below", "ablow", "beneath", "neath", "beside", "between", "atween", "beyond", "ayond", "by", "chez",
"circa", "spite", "down", "except", "into", "less", "like", "minus", "near", "nearer", "nearest", "anear", "notwithstanding",
"off", "onto", "opposite", "out", "outen", "over", "past", "per", "pre", "qua", "sans", "sauf", "sithence", "through",
"thru", "truout", "toward", "underneath", "up", "upon", "upside", "versus", "via", "vis-à-vis", "without", "ago",
"apart", "aside", "aslant", "away", "withal", "towards", "amidst", "amongst", "midst", "whilst"]
continuousVerbs = ["doing", "daring", "having", "appearing", "becoming", "coming", "keeping", "remaining", "staying",
"saying", "asking", "stating", "seeming", "letting", "making", "setting", "showing", "putting", "adding", "going", "using",
"trying", "containing"]
copula = ["appear", "appears", "appeared", "become", "becomes", "became", "come", "comes", "came", "keep", "keeps", "kept",
"remain", "remains", "remained", "stay", "stays", "stayed", "turn", "turns", "turned"]
otherAuxiliaries = ["can", "cannot", "can't", "could", "couldn't", "could've", "dare", "dares", "dared", "do",
"don't", "does", "doesn't", "did", "didn't", "done", "have", "haven't", "had", "hadn't", "has", "hasn't",
"i've", "you've", "we've", "they've", "i'd", "you'd", "he'd", "she'd", "it'd", "we'd", "they'd", "would", "wouldn't",
"would've", "may", "might", "must", "need", "needn't", "needs", "ought", "shall", "shalln't", "shan't", "should",
"shouldn't", "will", "won't", "i'll", "you'll", "he'll", "she'll", "it'll", "we'll", "they'll", "there's", "there're",
"there'll", "here's", "here're", "there'll"]
adverbialGenitives = ["always", "once", "twice", "thrice"]
locativeAdverbs = ["there", "here", "whither", "thither", "hither", "whence", "thence"]
pronominalAdverbs = ["therefor", "therein", "hereby", "hereto",
"wherein", "therewith", "herewith", "wherewith", "thereby"]
interrogativeProAdverbs = ["where", "how", "why", "whether", "wherever", "whyever", "wheresoever", "whensoever", "howsoever",
"whysoever", "whatsoever", "whereso", "whomso", "whenso", "howso", "whyso", "whoso", "whatso"]
interrogativePronouns = ["who", "whom"]
interrogativeDeterminers = ["which", "what", "whose"]
indefinitePronounsPossessive = ["one's", "nobody's", "everyone's", "everybody's", "someone's", "somebody's", "anyone's",
"anybody's", "nothing's", "everything's", "something's", "anything's", "whoever's", "others'", "other's", "another's",
"neither's", "either's"]
indefinitePronouns = ["none", "nobody", "everyone", "everybody", "someone", "somebody", "anyone", "anybody", "nothing",
"everything", "something", "anything", "each", "other", "whatever", "whichever", "whoever", "whomever",
"whomsoever", "whosoever", "others", "neither", "both", "either", "any", "such"]
reflexivePronouns = ["myself", "yourself", "himself", "herself",
"itself", "oneself", "ourselves", "yourselves", "themselves"]
quantifiers = ["all", "some", "many", "lot", "lots", "ton", "tons", "bit", "no", "every", "enough", "little",
"much", "more", "most", "plenty", "several", "few", "fewer", "kind", "kinds"]
possessivePronouns = ["my", "your", "his", "her", "its",
"their", "our", "mine", "yours", "hers", "theirs", "ours"]
demonstrativePronouns = ["this", "that", "these", "those"]
personalPronounsAccusative = ["me", "him", "us", "them"]
personalPronounsNominative = ["i", "you", "he", "she", "it", "we", "they"]
ordinalNumerals = ["first", "second", "third", "fourth", "fifth", "sixth", "seventh", "eighth", "ninth", "tenth",
"eleventh", "twelfth", "thirteenth", "fourteenth", "fifteenth", "sixteenth", "seventeenth", "eighteenth",
"nineteenth", "twentieth"]
cardinalNumerals = ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen",
"fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen", "twenty", "hundred", "hundreds", "thousand", "thousands",
"million", "millions", "billion", "billions"]
articles = ["the", "an", "a"]
function_words_lists = [
articles,
cardinalNumerals,
ordinalNumerals,
personalPronounsAccusative,
personalPronounsNominative,
demonstrativePronouns,
possessivePronouns,
quantifiers,
reflexivePronouns,
indefinitePronouns,
indefinitePronounsPossessive,
interrogativePronouns,
interrogativeProAdverbs,
interrogativeDeterminers,
pronominalAdverbs,
locativeAdverbs,
adverbialGenitives,
otherAuxiliaries,
copula,
continuousVerbs,
prepositionalAdverbs,
prepositions,
correlativeConjunctions,
coordinatingConjunctions,
subordinatingConjunctions,
intensifiers,
interviewVerbs,
additionalTransitionWords,
delexicalizedVerbs,
generalAdjectivesAdverbs,
interjections
]
all_words = []
for wl in function_words_lists:
all_words += wl
fn_word_index = {
word: i for i, word in enumerate(all_words)
}
if __name__ == "__main__":
print(len(word_index))