18 lines
527 B
Ruby
18 lines
527 B
Ruby
require_relative 'DictionaryGenerator'
|
|
require_relative 'SentenceGenerator'
|
|
|
|
|
|
love_file = File.open("love_story.txt","r").read
|
|
our_file = File.open("our_song.txt","r").read
|
|
shouldve_file = File.open('shouldve_said_no.txt','r').read
|
|
|
|
text = love_file + our_file + shouldve_file
|
|
|
|
@dictionary = DictionaryGenerator.new(2)
|
|
@dictionary.insert_text text
|
|
|
|
@sentenceGen = SentenceGenerator.new(@dictionary)
|
|
puts "-------------------------------------"
|
|
puts @sentenceGen.generate_sentence()
|
|
puts "-------------------------------------"
|