def get_semiotic_square_html(num_terms_semiotic_square, semiotic_square):
    '''

    :param num_terms_semiotic_square: int
    :param semiotic_square: SemioticSquare
    :return: str
    '''
    semiotic_square_html = None
    if semiotic_square:
        semiotic_square_viz = HTMLSemioticSquareViz(semiotic_square)
        if num_terms_semiotic_square:
            semiotic_square_html = semiotic_square_viz.get_html(num_terms_semiotic_square)
        else:
            semiotic_square_html = semiotic_square_viz.get_html()
    return semiotic_square_html


    :param num_terms_semiotic_square: int
    :param semiotic_square: SemioticSquare
    :return: str
    
scattertext/__init__.py