I want to write a "Did you mean" algorithm.
I have a set of words (Just like git commands such as pull, push, clone).
I need to give suggestions whenever users are entering a word out of the set of words.
All the above details are the background of my question :)
I want to copy ;) the code used in the git to implement 'Did you mean' algorithm to accomplish my task.
Do you know the location of the git-source-file containing the 'Did you mean' algorithm?