wolfgarbe/SymSpell

SymSpell: 1 million times faster spelling correction & fuzzy search through Symmetric Delete spelling correction algorithm

What it solves

SymSpell provides ultra-fast spelling correction and fuzzy string matching. It solves the performance bottleneck of traditional algorithms by using a "Symmetric Delete" approach, which is significantly faster than standard methods that require complex calculations like transposes, replaces, and inserts.

How it works

Instead of calculating expensive edits for every possible typo, SymSpell pre-calculates a dictionary of "deletes." By only deleting characters during both pre-calculation and lookup, it reduces the number of operations required to find a match by orders of magnitude. It supports single-word correction, compound-aware multi-word correction (handling missing or extra spaces), and word segmentation for noisy text (e.g., turning "thequickbrownfox" into "the quick brown fox").

Who it’s for

Developers building applications that require high-performance text processing, such as chatbots, search engines, automated proofreading tools, OCR post-processing, or data cleaning pipelines. It is designed for projects where speed and efficiency are critical.

Highlights

  • Extremely fast: Up to 1 million times faster than traditional spelling correction algorithms.
  • Language-independent: Works with any language, including those with non-Latin characters like Chinese or Cyrillic.
  • Compound-aware: Automatically corrects multi-word strings, including splitting concatenated words or fixing missing spaces.
  • Efficient segmentation: Uses a linear-time triangular matrix approach to segment noisy text without spaces.
  • Flexible integration: Available as a .NET library (NuGet) and supports various platforms including Windows, Linux, macOS, iOS, and Android.

Related

  • Project
  • Project
  • Project
  • Project