def top_word(word_count):
    """
    Find top word, surfacing ties. The input should already be sorted by
    count, most first.
    """

    top_words = []
    last_count = 0
    for each in word_count:
        if len(each.split()) < 2:
            # we compress spaces in our word count but sometimes they still
            # show up as a count, we won't list them as a top word though.
            continue
        word = each.split()[1]
        count = int(each.split()[0])
        if count >= last_count:
            top_words.append(word)
            last_count = count
        else:
            break
    return top_words, last_count