fix(titlecase): still more words

This commit is contained in:
Sabe Jones 2017-01-22 04:05:19 +00:00
parent 54bfe2c1b5
commit 48644e75c7

View file

@ -15,12 +15,16 @@ except ImportError:
smallwords = [ smallwords = [
"'S", "'S",
' A ', ' A ',
' And ',
' As ',
' At ',
' For ', ' For ',
' From ', ' From ',
' In ', ' In ',
' Of ', ' Of ',
' The ', ' The ',
' To ', ' To ',
' With ',
] ]
for word in smallwords: for word in smallwords:
s = s.replace(word, word.lower()) s = s.replace(word, word.lower())