Respell pitches does not work for keys with many flats or sharps
1: Take a very tonal professional well-spelled piece with 4 or 5 sharps or flats
2: respell pitches
3: save result
4: compare 2 scores and observe that the algorithm is only about 85% accurate for all notes.
An example is attached, from the open well tempered clavier project prelude and fugue n.18 in G# minor. There are well over 200 mistakes made, or 83% accuracy over all pitches.
In the paper the algorithm that is implemented promises >95% accuracy.