def reduce_text(text, allowed_text_df, allowed_text_column):
    """
    A function to reduce an input document to include only words contained in the allowed_text_df (with values in the allowed_text_columns)
    :param text: A string of words in the text, separated by commas.  This should be handled automatically by the input from the make_text_encoded_features function
    :param allowed_text_df: The optional DataFrame containing the curated vocabulary of terms
    :param allowed_text_column: The column in keyword_df which contains the words
    :return: A list with the reduced text
    """
    text_list_ = text.split(',')
    text_reduced_list_ = [x for x in text_list_ if x in allowed_text_df[allowed_text_column].values]

    return text_reduced_list_