def get_vesselparts(lang='both'):
    """Access the vessel parts used in the database

    Parameters
    ----------
    lang : {'both', 'eng', 'cat'}
        The language you need for the output

    Returns
    -------
    requested_names : dict, list
        If language is 'both', then a dict is returned; otherwise a list
    """
    vessel_parts = {
        'base': 'base',
        'body': 'cos',
        'carination': 'carinada',
        'handle': 'nansa',
        'lid': 'tapa',
        'neck': 'coll',
        'other_vesselpart': 'altra part',
        'rim': 'vora',
        'shoulder': 'espatlla',
        'unknown_vesselpart': 'part desconeguda'
    }

    requested_names = None

    if lang == 'both':
        requested_names = vessel_parts
    elif lang == 'eng':
        requested_names = list(vessel_parts.keys())
    elif lang == 'cat':
        requested_names = list(vessel_parts.values())

    return requested_names