def _set_language_risk_icon(risk):
    """
    Function to find the index risk level icon for language type risk.

    :param float risk: the Software language type risk factor.
    :return: _index
    :rtype: int
    """

    _index = 0

    if risk == 1.0:
        _index = 1
    elif risk > 1.0 and risk <= 1.2:
        _index = 2
    elif risk > 1.2:
        _index = 3

    return _index