code and design reflected in occasionally coherent words

Article Search:

June 11, 2009

twitter -> Turing Test

  • Tim Brockman
  • @ 6:49 pm
Filed under: Foo+Design+Code — Tags: , , , , ,

So Here's this bit of background as to what im talking about:

http://en.wikipedia.org/wiki/Turing_test

I'de really like to see a Twitter Port of PARRY or ELIZA for people to play with. Maybe create an updated ELIZA that responds to twitter trends or RSS feeds.

Which, in short is an interaction between human and AI as a test of intelligence for the AI. If the humans believe there is a human intelligence on the other end of the machine interface it should be considered intelligent.

Twitter would be a pretty good field test interface for this type of interaction. I wanted to put out a little information to help you get a start on building a bot.

I love Perl. Here's a nice perl mod to do twitter stuff from shell.

http://search.cpan.org/~dmaki/Twitter-Shell-0.03/lib/Twitter/Shell.pm
Also heres some quick cURL stuff for PHP:

$uname = 'accountuname';
$pword = 'accountpass';
$tweet = urlencode(stripslashes(urldecode('yourblahblahhere')));

if ($status) {
$upURL = 'http://www.twitter.com/statuses/update.xml';

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "$upURL");
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, "status=$tweet");
curl_setopt($curl, CURLOPT_USERPWD, "$uname:$pword");

curl_close($curl);
}

Some Documentation:

http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0update

Of course in Perl could just as easily use LWP or MECH which would be useful if you decided to do more than just make statements or status updates.

anyway, just a thought

I'm not sure why people bother spamming twitter. Twitter does seem like a natural Turing test platform.

...