4 ms·
I've thought of a variation on that, if you're spell checking a large text file. Create an index of all the unique words in the file, along with how many each a
by WalterBright 6y ago
I've thought of a variation on that, if you're spell checking a large text file. Create an index of all the unique words in the file, along with how many each appears. Any unique words with a count of 1 are likely to be misspelled.
- ivanhoe 6y agoIt'd probably be better to look for words with small Levenshtein distance that look like a case of typo, because people tend to miss-spell some words repeatedly, especially in larger texts.