Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Letter-frequency/SenseTalk/letter-frequency.sensetalk
Normal file
11
Task/Letter-frequency/SenseTalk/letter-frequency.sensetalk
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
put file "~/Documents/addresses.csv" into source
|
||||
|
||||
repeat with each character of source
|
||||
if it is a controlChar then next repeat -- skip control characters
|
||||
if it is a lowercase then put "." after it -- make keys distinct
|
||||
add 1 to counts.(it)
|
||||
end repeat
|
||||
|
||||
repeat with each (theChar, count) in counts
|
||||
put char 1 of theChar & " —> " & count
|
||||
end repeat
|
||||
Loading…
Add table
Add a link
Reference in a new issue