Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Word-frequency/PicoLisp/word-frequency.l
Normal file
15
Task/Word-frequency/PicoLisp/word-frequency.l
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
(setq *Delim " ^I^J^M-_.,\"'*[]?!&@#$%^\(\):;")
|
||||
(setq *Skip (chop *Delim))
|
||||
|
||||
(de word+ NIL
|
||||
(prog1
|
||||
(lowc (till *Delim T))
|
||||
(while (member (peek) *Skip) (char)) ) )
|
||||
|
||||
(off B)
|
||||
(in "135-0.txt"
|
||||
(until (eof)
|
||||
(let W (word+)
|
||||
(if (idx 'B W T) (inc (car @)) (set W 1)) ) ) )
|
||||
(for L (head 10 (flip (by val sort (idx 'B))))
|
||||
(println L (val L)) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue