Browse Source

all words that exist in intact list will be capitalised

master
Your Name 3 years ago
parent
commit
92f510c727
  1. 2
      api.py

2
api.py

@ -53,6 +53,8 @@ def build_word_dict():
for item in wordList: for item in wordList:
if item not in intact: if item not in intact:
item = item.lower() item = item.lower()
if item.upper() in (word.upper() for word in intact):
item = item.capitalize()
if (len(item)-1) >= y: if (len(item)-1) >= y:
addKey = str(y) + item[y] addKey = str(y) + item[y]
if addKey not in toChooseFrom.keys(): if addKey not in toChooseFrom.keys():

Loading…
Cancel
Save