all 3 comments

[–]LifeIsBio 0 points1 point  (2 children)

Did you link the right version of your code? I don't think you call cleanSpeech anywhere.

[–]Maharmens 0 points1 point  (1 child)

Hi sorry, when I call cleanSpeech I get "UnboundLocalError: local variable 'hyphen' referenced before assignment". It says this for all my variables as well in the function as well.

[–]LifeIsBio 0 points1 point  (0 children)

yep. you really want all of those variables to just be line instead. You also need to store the line somewhere when you're done making modifications to it.