def is_punctuation(self, character): """Determines of 'character' is punctuation""" return character in ['!', '?', '.', ',', ';', ':', '"', "'"]