liveBook · Manning

Spelling correction

Spelling correction is the identification of misspelled words or tokens and the generation or selection of likely intended correctly spelled replacements.

How 2 Manning books explain it

AI-Powered Search

Spelling correction is the identification of misspelled terms and the generation of replacements with their likely conventional spellings.

How it is used
Improves search relevance by generating domain-specific replacements for misspelled query terms.
How deep it goes
Traces an implementation from query collection through tokenization, quantiles, candidate matching, and edit-distance filtering.
Examples
Uses product queries such as moden, latop, tosheba, and multiterm variants including hp toucpad.
What you can do after
Build it from scratch with SQL, Python, NLTK, pandas, quantiles, and edit-distance rules.

Read how AI-Powered Search explains spelling correction →

Learn AI-Assisted Python Programming, Second Edition

A spelling suggestion is a proposed correctly spelled word corresponding to a misspelled input.

How it is used
Organizes a spell-checking task into input, candidate processing, and user-facing output.
How deep it goes
Explains functional decomposition and candidate filtering, but defers detailed correction algorithms.
Examples
Uses sucessful, thourough, acceptible, and carf with an English word-list file.
What you can do after
Build it from scratch as a Python program that reads a word list and prints possible corrections.

Read how Learn AI-Assisted Python Programming, Second Edition explains spelling correction →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.