def identify_errors(tokens, dictionary):
    """Compare words in documents to words in dictionary. 

    Args:
        tokens (list): List of all tokens in the document.
        dictionary (set): The set of approved words.
    Returns:
        set : Returns the set of tokens in the documents that are not 
            also dictionary words.
    """
    return set(tokens).difference(dictionary)