Here is my new syllogism program.
The difference now is there is a different result if you run the program and when it asks if the syllogism was good and you choose "no" the next time that syllogism is input into the program a different answer is given.
The program remembers bad answers and doesn't give the same answer again, it only gives the good answer this way.
I will now run the program and print the results belwo so you can see what I'm talking about.
Code:
__________________________________________
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:
0
Close program? [1=yes, 0=no]: 1
Press any key to continue . . .
Code:
__________________________________________
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.
accord are gandalf.
no accord is here
Celaront
no gandalf is here.
accord are gandalf.
Some accord are not here
Felapton
no gandalf is here.
accord are gandalf.
Some gandalf are not here
Was the syllogism logical? 1 for yes, 0 for no:
0
Close program? [1=yes, 0=no]: 1
Press any key to continue . . .
Code:
__________________________________________
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.
accordance are gandalf.
no accordance is here
Celaront
no gandalf is here.
accordance are gandalf.
Some accordance are not here
Felapton
no gandalf is here.
accordance are gandalf.
Some gandalf are not here
Was the syllogism logical? 1 for yes, 0 for no:
0
Close program? [1=yes, 0=no]: 1
Press any key to continue . . .
Code:
__________________________________________
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.
accordant are gandalf.
no accordant is here
Celaront
no gandalf is here.
accordant are gandalf.
Some accordant are not here
Felapton
no gandalf is here.
accordant are gandalf.
Some gandalf are not here
Was the syllogism logical? 1 for yes, 0 for no:
0
Close program? [1=yes, 0=no]: 1
Press any key to continue . . .
Code:
__________________________________________
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.
according are gandalf.
no according is here
Celaront
no gandalf is here.
according are gandalf.
Some according are not here
Felapton
no gandalf is here.
according are gandalf.
Some gandalf are not here
Was the syllogism logical? 1 for yes, 0 for no:
Code:
__________________________________________
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.
accordingly are gandalf.
no accordingly is here
Celaront
no gandalf is here.
accordingly are gandalf.
Some accordingly are not here
Felapton
no gandalf is here.
accordingly are gandalf.
Some gandalf are not here
Was the syllogism logical? 1 for yes, 0 for no:
Code:
__________________________________________
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.
accordion are gandalf.
no accordion is here
Celaront
no gandalf is here.
accordion are gandalf.
Some accordion are not here
Felapton
no gandalf is here.
accordion are gandalf.
Some gandalf are not here
Was the syllogism logical? 1 for yes, 0 for no:
0
Close program? [1=yes, 0=no]: 1
Press any key to continue . . .
Code:
__________________________________________
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.
accordionist are gandalf.
no accordionist is here
Celaront
no gandalf is here.
accordionist are gandalf.
Some accordionist are not here
Felapton
no gandalf is here.
accordionist are gandalf.
Some gandalf are not here
Was the syllogism logical? 1 for yes, 0 for no:
0
Close program? [1=yes, 0=no]: 1
Press any key to continue . . .
Code:
__________________________________________
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.
accredit are gandalf.
no accredit is here
Celaront
no gandalf is here.
accredit are gandalf.
Some accredit are not here
Felapton
no gandalf is here.
accredit are gandalf.
Some gandalf are not here
Was the syllogism logical? 1 for yes, 0 for no:
Code:
__________________________________________
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.
accreditation are gandalf.
no accreditation is here
Celaront
no gandalf is here.
accreditation are gandalf.
Some accreditation are not here
Felapton
no gandalf is here.
accreditation are gandalf.
Some gandalf are not here
Was the syllogism logical? 1 for yes, 0 for no:
0
Close program? [1=yes, 0=no]: 1
Press any key to continue . . .
Then after ten results the program stops giving results. Because after ten of them the results start to get fuzzy.
Code:
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
Was the syllogism logical? 1 for yes, 0 for no:
1
Close program? [1=yes, 0=no]: 1
Press any key to continue . . .
Here is the link to the code and program: _syllogism machine.zip
There are seven text files:
readfile.txt, this is the file that holds the wordlist from sourcforge "kevins word list".
readlist.txt, blank.
readtext.txt, blank.
readtext1.txt, blank.
writelist, blank.
m_and_s.txt, blank.
bad.txt, blank but then the program builds it up over times used.
Then the source file, new.c.
Here's the current source code, remove the txt extension and unzip it: new.zip.txt