def marital_status_from_string(str):
    """Convert marital status to one of ['single', 'partner', 'married', 'separated', 'widowed']."""
    marital_status_dict = {
        'Single': 'single',
        'Significant other': 'partner',
        'Life Partner': 'partner',
        'Married': 'married',
        'Divorced': 'separated',
        'Legally Separated': 'separated',
        'Separated': 'separated',
        'Widowed': 'widowed'
    }
    return marital_status_dict.get(str, 'other')