def create_dictionary(timestamp, original_sentence, sequence_switched, err_message, suggestion_list):
    """Create Dictionary Function

    Generates and exports a dictionary object with relevant data for website interaction to take place.
    """
    if len(suggestion_list) != 0:
        err_message_str = "Possible error: " + err_message + "\n \n"
        new_dictionary = {
            "timestamp": timestamp,
            "original_sentence": original_sentence,
            "masked_sentence": sequence_switched,
            "err_message": err_message,
            "possible_corrections": suggestion_list
        }
        return new_dictionary

    else:
        return {}