def wordSetToTokenFunc (wordSet):
    """Takes a set of words and returns a token-level function that returns true if the 
       token is in that set of words."""
    return lambda token : token.lower() in wordSet