spelling vocabulary
Factor documentation > Factor handbook > Vocabulary index


Summary
Peter Norvig's spelling corrector

Meta-data
Tags:examples
Authors:John Benediktsson


Words

Ordinary words
WordStack effect
(correct)( word dictionary -- word/f )
ALPHABET( -- value )
correct( word -- word/f )
corrections( word dictionary -- words )
default-dictionary( -- counts )
deletes( sequence -- sequence' )
edits1( word -- edits )
edits2( word -- edits )
filter-known( words dictionary -- words' )
inserts( sequence -- sequence' )
load-dictionary( file -- assoc )
replaces( sequence -- sequence' )
splits( word -- sequence )
transposes( sequence -- sequence' )
words( string -- words )


Files
resource:extra/spelling/spelling.factor
resource:extra/spelling/spelling-docs.factor
resource:extra/spelling/spelling-tests.factor