Simplify has_punctuation function

This pull request has two changes in it.

1. I added a few more punctuation marks to the `known_punctuation` constant.
2. I removed the `is_punctuation` function and simplified the `has_punctuation` method.