Created
February 13, 2009 10:06
-
-
Save norio/63829 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def say(text) | |
system "say #{text}" | |
end | |
n = %w(zero ichi knee sun yon go loku shechi hachi koo ju) | |
say 'de-wa-- e-ma-ka-ra-- sun-no-buy-su-tow-- sun-gha-tsuku-- suu-g-no-tohki-da-que-- ahoo-knee-nari-masu' | |
(1..40).each do |i| | |
text = i <= 10 ? n[i] : i < 20 ? "ju #{n[i%10]}" : i%10 == 0 ? "#{n[i/10]} ju" : "#{n[i/10]} ju #{n[i%10]}" | |
text = "-v Hysterical #{text}" if i%3 == 0 or "#{i}".include?('3') | |
say text | |
end | |
say 'hey-- o-morou!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment