all words that exist in intact list will be capitalised
This commit is contained in:
parent
f2b07b31ef
commit
92f510c727
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…
Reference in New Issue
Block a user