def convert_falselike_to_bool(input_item, convert_int=False, convert_float=
    False):
    """Converts false-like values ("false", 0, FALSE", "FALSCH", etc) to python boolean False.

    Taken from korbinian python package by Mark Teese. This is allowed under the permissive MIT license.

    Parameters
    ----------
    input_item : string or int
        Item to be converted to bool (e.g. "FALSE", 0, "FALSCH" or the equivalent in several languagues)
    convert_float: bool
        Convert floats to bool.
        If True, "0.0" will be converted to True

    Returns
    -------
    return_value : False, or input_item
        If input_item is False-like, returns python bool False. Otherwise, returns the input_item.

    Usage
    -----
    # convert a single value or string
    convert_falselike_to_bool("false")
    # convert a column in a pandas DataFrame
    df["column_name"] = df["column_name"].apply(convert_falselike_to_bool)
    """
    list_False_items = [False, 'False', 'false', 'FALSE', 'F', 'f',
        'falsch', 'FALSCH', 'valse', 'lažna', 'fals', 'NEPRAVDA', 'falsk',
        'vals', 'faux', 'pa vre', 'tsis tseeb', 'hamis', 'palsu', 'uongo',
        'ngeb', 'viltus', 'klaidinga', 'falz', 'falso', 'USANN',
        'wartosc false', 'falošné', 'falskt', 'yanlis', 'sai', 'ffug',
        'VALSE', 'LAŽNA', 'FALS', 'FALSK', 'VALS', 'FAUX', 'PA VRE',
        'TSIS TSEEB', 'HAMIS', 'PALSU', 'UONGO', 'NGEB', 'VILTUS',
        'KLAIDINGA', 'FALZ', 'FALSO', 'WARTOSC FALSE', 'FALOŠNÉ', 'FALSKT',
        'YANLIS', 'SAI', 'FFUG']
    if convert_int:
        list_False_items += [0, '0']
    if convert_float:
        list_False_items += [0.0, '0.0']
    return_value = False if input_item in list_False_items else input_item
    return return_value
