From 92f510c727c411fa7b6b9d0a296ff820a430f28e Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 27 Jan 2021 20:25:21 +0100 Subject: [PATCH] all words that exist in intact list will be capitalised --- api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api.py b/api.py index fe5b0df..b06ef93 100644 --- a/api.py +++ b/api.py @@ -53,6 +53,8 @@ def build_word_dict(): for item in wordList: if item not in intact: item = item.lower() + if item.upper() in (word.upper() for word in intact): + item = item.capitalize() if (len(item)-1) >= y: addKey = str(y) + item[y] if addKey not in toChooseFrom.keys():