Hi, Am Donnerstag, 10. Feb 2005, 09:26:39 +0900 schrieb Bill Guindon: > On Thu, 10 Feb 2005 09:14:14 +0900, Jordi Bunster <jordi / bunster.org> wrote: > > Does anyone have one of those algorithms that convert a phone number to > > a word, using /usr/share/dict/words, for example? > > Sounds like it would make a good ruby quiz, and Friday's coming. words = %w(zero one two ...) number.scan( /[0-9]/).map { |x| words[ x.to_i] }.join ' ' A nice quiz would be saying numbers in French. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de