- question = chunks[0].gsub(/"/, '')
- question = question + "?" if question[-1].chr != "?"
- answers = chunks[1, chunks.length()-1].map { |a| a.gsub(/"/, '') }
-
- params[:duration] = params[:duration].join(' ')
- if params[:duration] == ''
+ # grab the question, removing the leading quote character
+ question = chunks[0][1..-1].strip
+ question << "?" unless question[-1,1] == "?"
+ answers = chunks[1..-1].map { |a| a.strip }
+
+ # if the last answer terminates with a quote character,
+ # there is no time specification, so strip the quote character
+ # and assume default duration
+ if answers.last[-1,1] == quote_character
+ answers.last.chomp!(quote_character)
+ time_word = :for