1

I'm studing Perl language. I think programming a chatbot would be a funny way of studing that language and learn it.

The description of the chatbot I am interested in can be found here.

Does anyone know any manual or website especially focused on programming chatbot in Perl language?

desertnaut
  • 57,590
  • 26
  • 140
  • 166
Peterstone
  • 7,119
  • 14
  • 41
  • 49

4 Answers4

6

See http://poe.perl.org/?POE_Cookbook - simple bot is described here: http://poe.perl.org/?POE_Cookbook/IRC_Bots

Documentation for Bot::BasicBot, which is a wrapper around POE::Component::IRC. http://www.drdobbs.com/web-development/184416221

Source of famous bot GumbyBrain, which of course uses POE::Component::IRC and Megahal library. Megahal library uses Markov chains to reply to messages.

Don't use Net::IRC - it is not supported anymore.

Alexandr Ciornii
  • 7,346
  • 1
  • 25
  • 29
3

You can use Chatbot::Eliza and RiveScript for inspiration.

Sinan Ünür
  • 116,958
  • 15
  • 196
  • 339
DVK
  • 126,886
  • 32
  • 213
  • 327
1

Openclassifier on github is an opensource and has AI implementations, but its in Java though.

Still you can refer it to understand the implementations for chatbot. The reason I am referring this is, that it is a very simplified implementation, without any complex algorithms or datastructures.

You simply copypaste your data and the chatbot is operational with that knowledge. You can refer to my blog over this on below link:

http://miracleclassifier.blogspot.com/2018/02/artificial-intelligent-chatbot-you-can.html

desertnaut
  • 57,590
  • 26
  • 140
  • 166
Maulik
  • 21
  • 2
  • This is a QA platform, so is expected you enter a question and receive answers. This seems not a question to me. Pleas clarify what are you asking for. – Skary Mar 10 '18 at 09:25
  • 1
    I replied to " Programming a chatbot with Perl". I didn't ask any question. I told that openclassifier can be referred. I am not asking anything. Thx. – Maulik Mar 10 '18 at 09:46
  • 1
    I apologize, i got a problem using UI and thought this was a question and not an answer. I will remove the downvote as soon as i can. – Skary Mar 10 '18 at 22:08
0

Yes, there are some resources available for programming chatbots in Perl. Here are a few options:

Chatbot-Eliza-Perl: This is a simple implementation of the famous ELIZA chatbot in Perl. You can check out the code on GitHub and use it as a starting point for your own chatbot: https://github.com/ogdude/Chatbot-Eliza-Perl

AI::MegaHAL: This is a Perl module that provides an interface to the MegaHAL conversation engine. This module allows you to create your own chatbot by training it on a corpus of text data. You can find more information about this module on CPAN: https://metacpan.org/pod/AI::MegaHAL

Chatbot::Simple: This is another Perl module that provides a simple interface for creating chatbots. It allows you to define a set of rules for how your chatbot should respond to user input. You can find more information about this module on CPAN: https://metacpan.org/pod/Chatbot::Simple

Perl Maven: This site has a tutorial on how to create a simple chatbot in Perl using the Chatbot::Simple module: https://perlmaven.com/simple-chatbot-in-perl

desertnaut
  • 57,590
  • 26
  • 140
  • 166