def _atomise_author(author):
    """
    Convert author from whatever it is to a dictionary representing an
    atom:Person construct.
    """
    if type(author) is dict:
        return author
    elif author.startswith('http://') or author.startswith('www'):
        return {'uri': author}
    elif '@' in author and '.' in author:
        return {'email': author}
    else:
        return {'name': author}
