def get_longest_keyword_list(keyword_matrix: list) -> int:
    """
        Calculates the longest keyword list in preparation to make the dataframe
    """

    longest_keyword_list = 0
    for lists in keyword_matrix:
        if len(lists) > longest_keyword_list:
            longest_keyword_list = len(lists)
    return longest_keyword_list