It then creates the minor premise and the conclusion of the syllogism.
The program is built so that if the first answer it makes is wrong, you mark it zero and then try the syllogism again and it then gives you a different answer. You do this until your happy with the answer then you mark it one.
I made this program for my artificial intelligence project, but i don't know what to do next. So I'm hoping by posting this you can try the program out and give me some ideas of what to do next with my program.
Here are some examples of the program running:
Type 1 to run the program
1
Enter a sentence, all lower case.
Rename X and Y with words, the new word must have both a letter and vowel in it.
Formats of sentences:
A.)X are Y
B.)some X is Y
C.)some X are not Y
some dog is here
__________________________________________
Type Celarent (EAE-1) or Celaront (EAE-1) Syllogism pattern
No M is P
S are M
Celarent
some dog is here.
bloodhound are dog.
some bloodhound is here
Celaront
some dog is here.
bloodhound are dog.
Some bloodhound are not here
Felapton
some dog is here.
bloodhound are dog.
Some dog are not here
__________________________________________
Was the syllogism logical? 1 for yes, 0 for no: 1
Close program? 1 for yes, 0 for no: 0
Enter a sentence, all lower case.
Rename X and Y with words, the new word must have both a letter and vowel in it.
Formats of sentences:
A.)X are Y
B.)some X is Y
C.)some X are not Y
some bad is here
__________________________________________
Type Celarent (EAE-1) or Celaront (EAE-1) Syllogism pattern
No M is P
S are M
Celarent
some bad is here.
backstabber are bad.
some backstabber is here
Celaront
some bad is here.
backstabber are bad.
Some backstabber are not here
Felapton
some bad is here.
backstabber are bad.
Some bad are not here
__________________________________________
Was the syllogism logical? 1 for yes, 0 for no: 1
Close program? 1 for yes, 0 for no: 1
Press any key to continue . . .
I have updated this post and the attached file. To open it, remove the txt extension and unzip it.