My syllogism program is made in the c programming language. Normally syllogisms require twos sentences, but my program requires only one sentence.
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.)no X is Y
C.)some X are not Y
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.)no X is Y
C.)some X are not Y
no gandalf is here
__________________________________________
Type Felapton (EAO-3) or Celarent (EAE-1) or Celaront (EAE-1) Syllogism pattern
found
No M is P
S are M or M are S
Celarent
no gandalf is here.
acidic are gandalf.
no acidic is here
Celaront
no gandalf is here.
acidic are gandalf.
Some acidic are not here
Felapton
no gandalf is here.
acidic are gandalf.
Some gandalf are not here
Was the syllogism logical? 1 for yes, 0 for no:
0
Close program? [1=yes, 0=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.)no X is Y
C.)some X are not Y
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.)no X is Y
C.)some X are not Y
no gandalf is here
__________________________________________
Type Felapton (EAO-3) or Celarent (EAE-1) or Celaront (EAE-1) Syllogism pattern
found
No M is P
S are M or M are S
Celarent
no gandalf is here.
accomplished are gandalf.
no accomplished is here
Celaront
no gandalf is here.
accomplished are gandalf.
Some accomplished are not here
Felapton
no gandalf is here.
accomplished are gandalf.
Some gandalf are not here
Was the syllogism logical? 1 for yes, 0 for no:
1
Close program? [1=yes, 0=no]: 1
Press any key to continue . . .
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.)no X is Y
C.)some X are not Y
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.)no X is Y
C.)some X are not Y
no saint is here
__________________________________________
Type Felapton (EAO-3) or Celarent (EAE-1) or Celaront (EAE-1) Syllogism pattern
found
No M is P
S are M or M are S
Celarent
no saint is here.
abundant are saint.
no abundant is here
Celaront
no saint is here.
abundant are saint.
Some abundant are not here
Felapton
no saint is here.
abundant are saint.
Some saint are not here
Was the syllogism logical? 1 for yes, 0 for no:
1
Close program? [1=yes, 0=no]: 1
Press any key to continue . . .
These are the names of the text files in the program that are in the same folder but blank:
backup.txt
readlist.txt
readtext1.txt
readtext.txt
writelist.txt
bad.txt
m_and_s.txt
readfile.txt
The file called “readfile.txt” is to hold the wordlist used in the search function.
You need this list to run the program.
You can get this list from sourceforge, google “kevins word list” and get the “Official 12Dicts Package”.
I use the file from the Official 12Dicts Package called “2 of 12”, I just copy and paste the list into the readfile.txt.
The uploaded source, Remove the txt extension and unzip the file to get the source.
So I made this now wonder how a chatbot could use it?