= private = protected
find_synonyms(word)
Look up synonyms on WordNet. Thanks to Florian Gross (flgr).
# File railties/lib/rails_generator/commands.rb, line 388 def find_synonyms(word) require 'open-uri' require 'timeout' timeout(5) do open(SYNONYM_LOOKUP_URI % word) do |stream| data = stream.read.gsub(" ", " ").gsub("<BR>", "") data.scan(/^Sense \d+\n.+?\n\n/m) end end rescue Exception return nil end