Ano… Scleepts from Japan! Second Life has a fun one that uses Yahoo’s API to hunt down gradual vowel endurance. Who can hold out the “oo” in “Google” for the longest? Here you go:
require 'open-uri'
appid = 'g(sustained)gle'
uri = "http://api.search.yahoo.co.jp/WebSearchService/V1/webSearch?appid=#{appid}&query="
regexp = /totalResultsAvailable="(\d+)"/
i = 1
while true
query = "g#{'o' * i}gle"
if match = open(uri + query).read.match(regexp)
puts "#{$1}\t#{query}"
if $1.to_i.zero?
puts i
break
end
end
i += 1
end