def linear_item_score(i):
    """Function weights events based on their position in a sequence. Output is normalized to the range [0:1]. For the
       long sequences of events (index 10+) it returns zero.

    Parameters
    ----------
    i : int
        Item position.

    Returns
    -------
    result : float
             Linear rank.
    """
    result = 1 - (0.1 * i) if i < 10 else 0
    result = result / 0.9
    return result