def get_waretypes(lang='both'):
    """Access the waretypes used in the database

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

    Returns
    -------
    requested_names : dict, list
        A dictionary or list of waretypes. If lang='both', return a dictionary of english:catalan names

    """
    waretypes = {
        'common ware': 'comuna',
        'unknown_waretype': 'desconeguda',
        'transport': 'transport',
        'storage': 'emmagatzematge',
        'fine ware': 'fina',
        'cooking ware': 'cuina',
        'table ware': 'taula',
        'other': 'altre',
        'ritual': 'ritual'
    }

    requested_names = None

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

    return requested_names