My sentence generator, it's not finished though.
What I am now making is a sentence generator.
I input a sentence, then the program makes another sentence.
But the sentence the program makes has a undeclared word variable 'S'.
I need to declare 'S' to be a english word.
So that when 'S' is used in the two sentences it helps the two sentences make sense.
What I have now in the first sentence is 'M' and 'P', I declare them to English words when I input the sentence.
In the second sentence 'S' is used with 'M'.
I discovered that if 'M' has a letter and vowel and if 'S' has the same letter and vowel the 'S' word makes sense in the sentence.
So my plan is to pass the M word to the search function which compares the 'M' word to a list of words.
I will then try and get a word from the list that has the same letter and vowel as the 'M' word and pass that into 'S'.
The result should be S is the word from the list and the sentence makes sense.
I hope to do this then get my syllogism program to open the two sentences the sentence generator makes and make a sentence conclusion.
This conclusion is then passed into the sentence generator which makes another sentence and those two sentences are opened by the syllogism program.
And after say 20 cycles of this I can read the results in a text file to see if it made any sense logically.
remove the txt extension then unzip the folder to get the code.
Why am I posting this. I am tired and am hoping when I read this web page tomorrow I will see somebodies idea on how to solve this problem.
I would work on it but I have been at it for over twelve hours so far.