write a function in Word.rb to get correct option