Module suggest

Module suggest 

Source
Expand description

Spelling suggestions for unknown words.

This module provides fuzzy matching to suggest corrections for misspelled words in the input. It uses Levenshtein distance to find similar words from a known vocabulary list.

When the parser encounters an unknown word, this module can suggest “Did you mean X?” alternatives based on edit distance.

Constants§

KNOWN_WORDS

Functions§

find_similar
levenshtein
Compute the Levenshtein edit distance between two strings.