import string


def _ispunct(a_word):
    """Check if word consists only of punctuation characters.

    Args:
      a_word (str): word to check

    Returns:
      bool: True if word consists only of punctuation characters,
        False otherwise

    """
    return all(c in string.punctuation for c in a_word)