def build_model_formula(features_dict: dict, target: str):
    """
    Builds the model formula for glm from modeling based on the features_dict specification.
    Does not included embedded features
    
    :param features_dict: features dictionary
    :param target: dependent variable
    :return: model formula
    :rtype str
    """
    ms = target + '~'
    extra = ''
    for feature in features_dict:
        if features_dict[feature][0] == 'cts':
            ms += extra + feature
        elif features_dict[feature][0] == 'spl':
            ms += extra + 'h(' + feature + ',' + features_dict[feature][1] + ',0)'
        elif features_dict[feature][0] == 'cat':
            ms += extra + 'c(' + feature + ',' + features_dict[feature][2] + ')'
        extra = ' + '
    return ms