diff --git a/api.py b/api.py index ae3a53b..49b27cb 100644 --- a/api.py +++ b/api.py @@ -50,6 +50,8 @@ def build_word_dict(): for y in range(len(current)): charNeeded = current[y] for item in wordList: + if item not in intact: + item = item.lower() if (len(item)-1) >= y: addKey = str(y) + item[y] if addKey not in toChooseFrom.keys(): @@ -185,8 +187,11 @@ def api_args(): testKey = str(y) + current[y] # print(current[y],random.choice(toChooseFrom[testKey])) api_phrase.append(random.choice(toChooseFrom[testKey])) + api_phrase[0] = api_phrase[0].capitalize() api_phrase_str_word = ' '.join(api_phrase) + print('api_phrase_str_word: ',api_phrase_str_word) api_phrase_str = api_phrase_str + '\\n' + api_phrase_str_word + print('api_phrase_str: ',api_phrase_str) api_phrase_str_word = '' api_phrase_str = api_phrase_str[2:] diff --git a/intact_words.py b/intact_words.py new file mode 100644 index 0000000..2e9e91d --- /dev/null +++ b/intact_words.py @@ -0,0 +1 @@ +intact = ["Black","Indigenous"] diff --git a/queermottoapi.db b/queermottoapi.db index 6144c16..1ac8e94 100644 Binary files a/queermottoapi.db and b/queermottoapi.db differ