Implementation of basic spell suggester like Google’s “Did you mean?”

“Search” has become an implicit part of any web application. There are many packages, libraries, software and extensions out there which help implementing a functional and custom search engine for our web application. However, only a few of those are really intelligent enough to detect a wrong spelling and provide a probable suggestion.