def move_articles_to_front(sName):
    """Moves articles from the end back to the start as is expected
       in the database.

       Reverses move_articles_to_back.
       Used when importing from various formats."""
    if sName.lower().endswith(', the'):
        sName = 'The ' + sName[:-5]
    elif sName.lower().endswith(', an'):
        sName = 'An ' + sName[:-4]
    elif sName.lower().endswith(', a'):
        sName = 'A ' + sName[:-3]
    return sName
