def handle_keyword_duplicates(item):
    """
    Sometimes keywords are combined together: "Condition, Context,
    Effect: ..." In this case, we remove duplicates and preserve the
    first keyword match.
    """
    values = item.values()
    unique_values = set(values)
    if len(values) == len(unique_values):
        return item
    new_item = dict()
    for key, value in item.items():
        if value in unique_values:
            new_item[key] = value
            unique_values.remove(value)
    return new_item