Is there any human talkable ruby library?

Is there any human talk able(like Eliza ) ruby library?
or
is there any possible way to integrate eliza with ruby ?

Google broken or something?

Please google it before asking here, especially as the first result
for ‘eliza in ruby’ might be just what you want.

Peter H. wrote:

Google broken or something?

Please google it before asking here, especially as the first result
for ‘eliza in ruby’ might be just what you want.

yes, i know about eliza

my question is in here, what is the possible ways to integrate eliza(or
like eliza) into ruby

Peter H. wrote:

You mean other than a complete version of Eliza written in ruby?

If not then I have completely failed to understand your question.

i have a rails project which should talk to humans.
i know it is not as much easy to do that.
so i planned to integrate any good ChatBot with my rails(obviously ruby)
code

You mean other than a complete version of Eliza written in ruby?

If not then I have completely failed to understand your question.

man… free use of offensive language like this have no place on this
side
of the internets…
please, this stops here.

2010/8/9 Peter H. [email protected]

Sniper A. wrote:

i have a rails project which should talk to humans.
i know it is not as much easy to do that.
so i planned to integrate any good ChatBot with my rails(obviously ruby)
code

If you have a stateless Eliza program - one whose answers don’t depend
on any previous answers or messages typed in - which runs as a console
app, then it should be easy. Open the program using IO.popen, send it a
message, get a response, kill it, return the response to the user.

If there is state in the conversation, then it’s more difficult, because
HTTP is a stateless protocol. You could keep a pool of Elizas, and the
one you’re talking to would be identified by a HTTP cookie, say. Then
you’d have to kill any idle conversations.

If this is your first Rails project, then you might be biting off rather
a lot.

If you can find an existing Ruby Eliza, that would be your easiest
solution. If it’s stateless then you just call it; if it’s stateful then
you keep the state in a session object.

On 9 August 2010 14:12, Sniper A. [email protected]
wrote:

i have a rails project which should talk to humans.
i know it is not as much easy to do that.
so i planned to integrate any good ChatBot with my rails(obviously ruby)
code

You are still confusing me. You said Ruby, you are now saying Rails
(Ruby is not Rails!!!).

How you are talking about having a Chatbot, which has little to do with
Rails.

Again google is your friend, google for ‘ruby chatbot’

The third result is stack overflow (a good place to find answers to
questions), the fourth answer on stack overflow is a link to a chatbot
written in ruby

http://snippets.dzone.com/posts/show/1785

You have a link to a version of eliza in ruby, we have added a link to
a chatbot in ruby.

If you look a bit harder (I’m not doing all your f**king homework for
you) you might even find an eliza chatbot written in ruby. Or you
could write code.

Seriously, learn to find things for yourself.

You could set up a chat server (using the link given earlier or
written with event machine - a very nice gem with good examples
including a chat server if I recall correctly).

Then have a small javascript widget on your site to talk to the char
server.

When you connect to the chat server it will create a persistent
connection to hold the state of the conversation.

So first write an Eliza class (or use an existing one) which has a
new, chat and quit method. The chat method takes the users input as a
string and returns a string. You can write and test this in isolation.

Then hack up a chat server that instantiates an instance of eliza when
a new connection is made, and feed the users input to it. Again this
is a small project and easily testable as all it is is a chat server.

Then you need a javascript widget to handle the chat (google for one
or visit a site with a javascript chat option).

Glue said code together.

that is exactly what i want .
thanks Brian and Peter
i thing i did not ask my question clearly (sorry for that)

thanks to all

I’ve been meaning to incorporate it QBBS (the Ruby BBS program) but I


“And I think more of a concern has been not within the campaign, the
mistakes that were made, not being able to react to the circumstances
that those mistakes created in a real positive and professional and
helpful way for John McCain.”

-Sarah Palin

Talk to humans? Everytime I think I want to write such a program, I
get a headache thinking about even small parts of the problem.

What I think you want is this:
http://aiml-programr.rubyforge.org/

Program-R implements the AIML (artificial intellegence markup language)
in ruby.

I’ve been meaning to incorporate it QBBS (the Ruby BBS program) but I
haven’t gotten around to it.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs