nltk.text_type.swapcase

text_type.swapcase() → unicode

Return a copy of S with uppercase characters converted to lowercase and vice versa.