# File railties/lib/rails_generator/commands.rb, line 409def find_synonyms(word)require'open-uri'require'timeout'timeout(5)doopen(SYNONYM_LOOKUP_URI%word)do|stream|# Grab words linked to dictionary entries as possible synonymsdata=stream.read.gsub(" ","").scan(/<a href="webwn.*?">([\w ]*?)<\/a>/s).uniqendendrescueExceptionreturnnilend