# function to implement shingles for a given text to prepare for one-hot encoding

# Takes in: documents, number of shingles

# Returns: list of documents in the shingled format


def shingling(documents: list, size: int = 1) -> list:
    """
    Shingle the documents into sets of shingles of a given size.

    :param documents: List of documents, where each document is a preprocessed string.
    :param size: Size of each shingle. Default is 1 for tokenization.

    :return: List of sets, where each set contains shingles of the
      corresponding document.
    """

    pass
