import re


def clean_(doc):
    """
    Parameters:
        - `doc`
            a list of words
    
    Returns: a documents with new lines and consecutive spaces replaced by single spaces
    """
    new_doc = [re.sub(r'\s+', ' ', word) for word in doc]
    # More filters if necessary
    return new_doc