Handbook
Glossary
corrections ( word dictionary -- words )
Vocabulary
spelling
Inputs
word
an
object
dictionary
an
object
Outputs
words
an
object
Definition
USING:
arrays
assocs
sequences
sorting
;
IN:
spelling
::
corrections
( word dictionary -- words )
word
1array
dictionary
filter-known
[
word
edits1
dictionary
filter-known
]
when-empty
[
word
edits2
dictionary
filter-known
]
when-empty
[
dictionary
at
]
sort-by
reverse!
;