def _format_chord(chord):
    """Get root and attribute of chord."""
    split_idx = 1 if len(chord) == 1 or chord[1] != 'b' else 2
    root = chord[:split_idx]
    attribute = chord[split_idx:]
    return root, attribute