def precipitation_intensity(precip_intensity, unit):
    """
    Return the precipitation intensity str based on the unit of precipIntensity and precip_intensity.
    If no rate is found, return 'none'
    :type precip_intensity: float
    :param precip_intensity: currently precipIntensity
    :type unit: str
    :param unit: unit for precipIntensity rate ('in/h' or 'mm/h')
    :return: str of precipitation rate. Note: this is appended to and used in special event times
    """
    intensities = {
        'in/h': {
            'very-light': ('very-light', 0.002),
            'light': ('light', 0.017),
            'moderate': ('moderate', 0.1),
            'heavy': ('heavy', 0.4)
        },
        'mm/h': {
            'very-light': ('very-light', 0.051),
            'light': ('light', 0.432),
            'moderate': ('moderate', 2.540),
            'heavy': ('heavy', 5.08)
        }
    }

    if precip_intensity >= intensities[unit]['heavy'][1]:
        return intensities[unit]['heavy'][0]
    elif precip_intensity >= intensities[unit]['moderate'][1]:
        return intensities[unit]['moderate'][0]
    elif precip_intensity >= intensities[unit]['light'][1]:
        return intensities[unit]['light'][0]
    elif precip_intensity >= intensities[unit]['very-light'][1]:
        return intensities[unit]['very-light'][0]
    return 'none'