def _weight(entry):
    """
    Sum a power of frequency.
    Word frequencies have a skew with a long tail toward infrequent.
    """
    weight = 500 * entry[0] ** 0.25
    for i in range(3, len(entry), 2):
        weight -= (entry[i] / 100.0) ** 4 * 100
    return weight