Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
barrust committed Feb 24, 2018
1 parent 8dda14a commit d6987ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spellchecker/spellchecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def P(self, word, N=None):

def correction(self, word):
"Most probable spelling correction for word."
return max(self.candidates(word), key=P)
return max(self.candidates(word), key=self.P)

def candidates(self, word):
"Generate possible spelling corrections for word."
Expand Down

0 comments on commit d6987ab

Please sign in to comment.