def padding(corpus, logger=None):
    """
    Performs padding on the already tokenized documents

    Args:
        corpus (list): A list of strings where elements are the tokens from your document.
        logger (Logger):

    Returns:
        A list of strings where elements are all at equal length

    """

    new_list = sorted(corpus, key=len)
    max_length = len(new_list[-1])
    for i in corpus:
        i.extend(("<PAD>",) * (max_length - len(i)))

    return corpus