handle UnboundLocalError in ar_spelling_checker

#4

You forgot to initialize tmp_corrections, when if not word in vocab: becomes false, exception occur at line 127:
UnboundLocalError: local variable 'tmp_corrections' referenced before assignment

mohamedabdullah changed pull request status to merged

Sign up or log in to comment