from typing import OrderedDict


def duplicate_word_removal(data: list) -> list:
    """
    Removes duplicate words

    :param data: The list of dictionaries of the form
    :type: [{"Header":"", "Header_keywords": [], "Paragraph_keywords": [], slides:[int]}]
    :return: The list of dictionaries with duplicate keywords removed of the form
    :rtype: [{"Header":"", "Header_keywords": [], "Paragraph_keywords": [], slides:[int]}]

    """
    for dictionary in data:
        ordered_headers = list(OrderedDict.fromkeys(dictionary['Header_keywords']))
        dictionary['Header_keywords'] = ordered_headers

        ordered_paragraph = list(OrderedDict.fromkeys(dictionary['Paragraph_keywords']))
        dictionary['Paragraph_keywords'] = ordered_paragraph
    return data