def reducer(words, frequency):
    """
    reduces words to final output frequency list
    :param words:
    :param frequency:
    :return: dict of unique words and their frequencies
    """
    for word in words:
        frequency[word] += 1

    return frequency