def truncate_down_to_maxlen(split_sentence, maxlen):
    """ function used to truncate a sentence down to maxlen words """
    # truncate it
    truncated_split_sentence = split_sentence[:maxlen]

    # return the rejoined sentence
    return " ".join(truncated_split_sentence)