def fix_name(name: str, ambiguous: bool, compartment: str):
    """Change name for GINSIM compatibility or to remove subscripts.

    Also add compartment to the name in case of ambiguity.
    """
    if ambiguous:
        new_name = name + '_' + compartment
    else:
        new_name = name
    return new_name.replace('_minus_', '-').replace('_plus_', '+').replace(
        '_super', '^').replace('_slash_', '/')
