def get_tag_type(tagtype, pairs): 
    """
    Given a list of (word,tag) pairs, return a list of words which are tagged as nouns/verbs/etc
    The tagtype could be 'NN', 'JJ', 'VB', etc
    """
    return [w for (w, tag) in pairs if tag.startswith(tagtype)]