def get_sentences(n)
      sentences = []
      
      n.times do
        sentence = @dict.get_start_words
        
        while nw = @dict.get(sentence[-@dict.order, @dict.order])
          sentence << nw
        end
        
        sentences << (sentence[0...-1].join(" ").gsub(/\s([,;:])/, '\1') << sentence.last)
      end
      
      sentences
    end
def get_sentences(n)
      sentences = []
      
      n.times do
        sentence = @dict.get_start_words
        
        while nw = @dict.get(sentence[-@dict.order, @dict.order])
          sentence << nw
        end
        
        sentences << (sentence[0...-1].join(" ").gsub(/\s([,;:])/, '\1') << sentence.last)
      end
      
      sentences
    end
Initializes the generator

 @example Create a new generator
   MarkovChains::Generator.new(text)

 @param Text source to generate sentences from

 Returns a given number of randonly generated sentences

 @example Get 5 sentences
   get_sentences(5)

 @param n [int] number of sentences to generate
 @return Array conataining generated sentences