def print_name(name, word_count_threshold=7, break_point_ratio=0.6):
    """Splits name of item in legend into 2 lines
    if word count exceeds threshold"""
    words = name.split(" ")
    word_count = len(words)

    if word_count > word_count_threshold:

        position = round(word_count*break_point_ratio)
        words.insert(position, "<br>")

        return ' '.join(words)
    else:
        return name