def method_missing(method_sym, *args, &block)
      if method_sym.to_s =~ /^generate_(\d*)_word[s]*$/
        generate_n_words($1.to_i)
      elsif method_sym.to_s =~ /^generate_(\d*)_sentence[s]*$/
        generate_n_sentences($1.to_i)
      else
        super
      end
    end
def method_missing(method_sym, *args, &block)
      if method_sym.to_s =~ /^generate_(\d*)_word[s]*$/
        generate_n_words($1.to_i)
      elsif method_sym.to_s =~ /^generate_(\d*)_sentence[s]*$/
        generate_n_sentences($1.to_i)
      else
        super
      end
    end
Dynamically call generate_n_words or generate_n_sentences
 if an Int is substituted for the n in the method call.

 @since 0.1.4
 @example Generate a 40 and a 1 word long string of words.
   markov.generate_40_words
   markov.generate_1_word
 @example Generate 2 sentences
   markov.generate_2_sentences
 @return [String] the sentence generated by the dictionary.