def std_level_prompt(doc):
    """
    Returns the name from the std level names table corresponding
    to the object's intended_std_level (with the word RFC appended in some
    cases), or a prompt requesting that the intended_std_level be set."""
    
    prompt = "*** YOU MUST SELECT AN INTENDED STATUS FOR THIS DRAFT AND REGENERATE THIS TEXT ***"

    if doc.intended_std_level:
       prompt = doc.intended_std_level.name
       if doc.intended_std_level_id in ('inf','exp','hist'):
         prompt = prompt + " RFC"

    return prompt