def final_score_calculator(score_list):
    """Returns final Levenshtein Word Score

    Iterates through all the scores for the various queries. Final score is
    calculated by averaging the ratio of the score with the word length of
    the ground truth. A given score is capped at 1.
    """
    final_score = 0.0
    for item in score_list:
        word_len = len(item[0])
        curr_score = item[1]
        curr_final = float(curr_score / word_len)
        if curr_final > 1:
            # Cap error score at 1
            curr_final = 1
        final_score += curr_final
    return float(final_score / len(score_list))