def prettify(text)
      pretty = abbreviate(text) { |short| short.sub!(/[[:punct:]]+\z/, '') }
      sanitize pretty
    end
def prettify(text)
      pretty = abbreviate(text) { |short| short.sub!(/[[:punct:]]+\z/, '') }
      sanitize pretty
    end
Abbreviates the given text, removes any trailing punctuation except for
 the ellipsis appended if the text was truncated, and sanitizes the text
 for delivery to IRC.

 @param text [String] the text to process
 @return [String] the processed text