1. A method comprising, by one or more computing devices: receiving, from a client system of a first user of an online social network, a search query comprising one or more n-grams; determining, for each n-gram, if a contextual speller model indicates the n-gram is misspelled, wherein the contextual speller model is based at least on a standard language model and social-networking data associated with the first user; identifying, for each misspelled n-gram, one or more variant-tokens based at least on the search query and the contextual speller model; generating one or more unique combinations of the n-grams and variant-tokens, wherein each unique combination comprises a variant-token corresponding to each misspelled n-gram; calculating a relevance-score for each unique combination based at least in part on the search query and the contextual speller model; generating one or more corrected queries, each corrected query comprising a unique combination having a relevance-score greater than a threshold relevance-score; and sending, to the client system of the first user for display in response to receiving the search query, one or more of the corrected queries.