-
Notifications
You must be signed in to change notification settings - Fork 0
/
generate_word_lists.py
25 lines (21 loc) · 1.1 KB
/
generate_word_lists.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
import pprint
pp = pprint.PrettyPrinter(indent=0)
import language_filter
from first_line import word_generator as first_line
from second_line import word_generator as second_line
from third_line import word_generator as third_line
first_line_words = first_line.find_words()
filtered_first_line_words = language_filter.filter_words(first_line_words)
with open("./first_line/corpus.py", "w") as first_line_corpus:
first_line_corpus.write("beluga_sevruga=")
first_line_corpus.write(pp.pformat(filtered_first_line_words))
second_line_words = second_line.summon_seas()
filtered_second_line_words = language_filter.filter_words(second_line_words)
with open("./second_line/corpus.py", "w") as second_line_corpus:
second_line_corpus.write("caspian_sea=")
second_line_corpus.write(pp.pformat(filtered_second_line_words))
third_line_words = third_line.steal_voices()
filtered_third_line_words = language_filter.filter_words(third_line_words)
with open("./third_line/corpus_one.py", "w") as third_line_corpus:
third_line_corpus.write("larynxes=")
third_line_corpus.write(pp.pformat(filtered_third_line_words))