Help Mentifex solve the AI problem: rewrite ANDRU in your language of choice.
ANDRU is a chatbot, it should wait for the user to enter a string and reply with an English sentence. It doesn't need to make too much sense but should output grammatically valid sentences.
Your ANDRU should not need to be trained nor should he learn its vocabulary with user input (no Markov Chain).
You are allowed, on the other hand to scrape any data from Internet (website, forum, file, twitter, IRC ...). You may not use computer-generated data (don't pipe another chatbot).
Keep it short (10-20 LoC)
Bonus points for passing the Turing test with an average retard. Deadline: 24h.
Name:
Anonymous2013-07-08 21:58
>>1 should output grammatically valid sentences.
Then it will fail turing test. Humyns dont always out grammatically valid sentences and to emulate a humyn we have to emulate grammar errors.
Name:
Anonymous2013-07-08 21:59
#include <stdio.h>
#include <stdlib.h>
int main(){
int i = 0;
char * userIn = (char*)malloc(0xFFFFFFFF);
while(true){
if(i > 5){
scanf("%s", &userIn);
printf("I ARE ERROR");
continue;
}
scanf("%s", &userIn);
printf("I ARE ANDRU");
i++;
}
return 0;
}
Name:
Anonymous2013-07-08 22:02
I found the Journal difficult with which to work and lacking in an appreciation for feminist jurisprudence and critical race theory. I utilized”womyn”and”humyn”in my writing in approximately 5-7 places in a 50-page manuscript, citing my previous article, which explains my use of this spelling convention. I wasn’t forcing anyone to accept my views, but I did expect as a scholar, and as an individual with subjective worth, for my philosophical persuasions to be taken seriously.
My alternate spelling was flatly refused. I don’t dispute that it’s not standard spelling. I’m pretty sure that’s obvious to us all. The Journal was unwilling to bend in the least. Instead of asking me to explain why my position was valid, I was asked to explain why the journal uses standard spelling, making the Editorial Board’s misguided case for them. I was willing to work with the Editorial Board to replace”womyn and men”with”society”or”persons.” I knew comprise could happen, so I retorted by making the edits.
Name:
Anonymous2013-07-08 22:03
>>2
As noted by Turing, all outputs should be crowd sourced to India for grammar and spell checking before being shown to the judges.
int main(){
int i = 0;
char * userIn = (char*)malloc(0xFFFFFFFE);
while(true){
scanf("%s", &userIn);
if((rand() % 100) == 5){
printf("\nI HELP KIDS\n");
continue;
}
if((rand() % 100) == 10){
printf("\nYOU ARE BEAUTIFUL\n");
continue;
}
if(i > 5){
printf("\nI ARE ERROR\n");
continue;
}
printf("\nI ARE ANDRU\n");
i++;
}
return 0;
}
Name:
Anonymous2013-07-08 23:00
>>9
Oh Jeez not another nutter. This place has gone downhill rapidly and I am surprised it is still here. Twilight movie spam, students posting test problems so they can get degrees without learning the material of their field, mixing God into every discussion from mathematics to AI...
Solve the challenge in the OP, and then train ANDRU to solve capchas. Then locate a botnet with at least 5000 unique ip addresses and release ANDRU on /g/.
>>8 The English term "man" is derived from a Proto-Indo-European root *man- (see Sanskrit/Avestan manu-, Slavic mǫž "man, male").[1] More directly, the word derives from Old English mann. The Old English form had a default meaning of "adult male" (which was the exclusive meaning of wer), though it could also signify a person of unspecified gender. The closely related Old English pronoun man was used just as it is in Modern German to designate "one" (e.g., as in the saying Man muss mit den Wölfen heulen).[2] The Old English form is derived from Proto-Germanic *mannz, "human being, person", which is also the etonym of German Mann "man, husband" and man "one" (pronoun), Old Norse maðr, and Gothic manna. According to Tacitus, the mythological progenitor of the Germanic tribes was called Mannus. *Manus in Indo-European mythology was the first man, see Mannus, Manu (Hinduism). https://en.wikipedia.org/wiki/Man
Name:
Anonymous2013-07-08 23:20
>12
Is God a C programmer or a Lisp programmer?
both, the heavens were programmed in lisp and the earth was programmed in c
>>16
Why the &? If userIn is an (char []) or a (char *) then the & is completely superfluous, as userIn evaluates to an address, which %s needs. On the other hand, if userIn is just a (char), then this is undefined behavior, as it is unknown what lies at (&userIn + 1) and beyond.
Name:
Anonymous2013-07-09 8:45
>>17 >>16
Nevermind, looked at the >>3,11 code and seeing that userIn is (char *) I realized >>16 was actually mocking the redundant use of the & operator there.
Name:
Anonymous2013-07-09 8:56
After the first I AM ERROR the probability to keep saying I AM ERROR increases.
Name:
Anonymous2013-07-09 8:58
the mythological progenitor of the Germanic tribes was called Mannus
MIND.... BLOWN
Name:
Anonymous2013-07-09 9:05
>>16,17,18
Uh.... That's there to simulate the access violated that MindForth kept giving me a few months ago. So it's Mentishit's fault, really.
Name:
Anonymous2013-07-09 9:19
I just loaded MindForth and he said `I AM AN ERROR'. He's learning! In just a couple more decades he'll be at the level of a retarded toddler.
Name:
Anonymous2013-07-10 6:18
/prog/ is deader than usual right now. This challenge looks spent in >>3,11 so I (not OP) am re-opening it:
Rewrite ANDRU in the most complicated way you can. ANDRU should adapt in some way to the input taken from the user. Incorporate some of Mentifex's models if you can, or use your own.
>>23
I made a randum Andru that just take some reply from the first thread in /b/ and send that to the user. Then I realized that idiots on the imageboards can answer with an image and no text which made the JSON parsing fault. Also this ANDRU will only call you a niggerfaggot and say weird stuff.
Seeing that the thread was dead I just gave up.
(use http-client)
(use json)
(use html-parser)
>>33
considera que te he chequeado tus dubs, hermano
Name:
OP2013-07-10 22:18
>>29
This is a good ANDRU, at least better than the original. I don't think there will be new entries, so you won.
Name:
Anonymous2013-07-11 3:24
>>35
I made it better now. It grabs posts from other imageboards as well as /b/, and you can now look back at the exciting conversations fellow /prog/riders have had with ANDRU.