def format_decomposition_string(decomposition_string, delimiter=";"):
    """Returns a formatted text string representation of a query decomposition
        for manually reviewing HIT results.
    
    Parameters
    ----------
    decomposition_string : str
        decompositiong string with delimited steps 
    delimiter : str
        delimiter at the end of decomposition steps
    
    Returns
    -------
    str
        Returns formatted text string, numbered steps, each step in a new line
    """
    text_decomposition = ""
    # remove last delimiter
    if decomposition_string[-1] == delimiter:
        decomposition_string = decomposition_string[:-1]
    # break into steps
    steps = decomposition_string.split(delimiter)
    for i in range(len(steps)):
        text_decomposition += '\n\t' + str(i+1) + '. ' + steps[i]
    return text_decomposition