A method and system to generate variants, including misspells from query
log context usage are provided. Usage context obtained from the query
logs is utilized to facilitate similarity determination. A Similarity
Graph generation process generates a Similarity Graph, which is
transformed to provide variants having varying edit distances. The
transformed Similarity Graph is loaded into a hash table and provides
query corrections in a search engine or related terms when bidding on
keyword in an advertising system.