def enforce_character_limit(sequence, character_limit):
    """
    Truncate the sequence such that the words inside it fit inside the character limit.

    Args:
        - sequence (list of str) - The sequence of words that need to be truncated
        - character_limit (int) - the number of characters that can be in our final text sequence

    Returns:
        A list of str, where the number of characters in the strings (plus spaces) fit inside character_limit.
    """
    final_sequence = []
    character_length = 0
    for word in sequence:
        # Add the length of the word plus one space.
        # This overestimates the length, but that's fine.
        character_length = character_length + len(word) + 1
        if character_length > character_limit:
            break
        final_sequence.append(word)

    return final_sequence