def w_is_typed(tokens):
    """ Check whether a sequence of commands includes a type specifier. """
    return (
        'type' in tokens or
        'answerblock' in tokens or
        'drawbox' in tokens or
        'answerfigure' in tokens
    )