Textonyms: Difference between revisions
m
→{{header|Ruby}}
(→{{header|Ruby}}: use tr and group_by) |
|||
Line 2,748:
<lang ruby>
CHARS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
NUMS = "22233344455566677778889999" * 2
dict = "unixdict.txt"
textonyms = File.open(
puts "There are #{File.readlines(dict).size} words in #{dict} which can be represented by the digit key mapping.
|