spelling: use ?download-to.
parent
1701fe3f59
commit
9ef4a4aab3
|
@ -59,9 +59,8 @@ CONSTANT: ALPHABET "abcdefghijklmnopqrstuvwxyz"
|
||||||
ascii file-contents words histogram ;
|
ascii file-contents words histogram ;
|
||||||
|
|
||||||
MEMO: default-dictionary ( -- counts )
|
MEMO: default-dictionary ( -- counts )
|
||||||
"big.txt" temp-file dup exists?
|
URL" http://norvig.com/big.txt" "big.txt" temp-file
|
||||||
[ URL" http://norvig.com/big.txt" over download-to ] unless
|
[ ?download-to ] [ load-dictionary ] bi ;
|
||||||
load-dictionary ;
|
|
||||||
|
|
||||||
: (correct) ( word dictionary -- word/f )
|
: (correct) ( word dictionary -- word/f )
|
||||||
corrections ?first ;
|
corrections ?first ;
|
||||||
|
|
Loading…
Reference in New Issue