You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is just a simple port of https://aiml-programr.rubyforge.org/ (authored in 2007), to something
a tiny bit more usable. No new code really, I just sorta took the necessary parts to turn it into a gem for curiosity's sake.
AIML itself seems pretty simple, and weak as far as pattern matching goes, but the ALICE bot has won the Loebner prize, so there's that.
About:
ProgramR is a Ruby implementation of an interpreter for the Artificial Intelligence Markup Language (AIML) based on the work of Dr. Wallace and defined by the Alicebot and AIML Architecture Committee of the A.L.I.C.E. AI Foundation https://alicebot.org
#programr_test.rbrequire'bundler'Bundler.setup:defaultrequire'programr'ifARGV.empty?puts'Please pass a list of AIMLs and/or directories as parameters'puts'Usage: ruby programr_test.rb {aimlfile|dir}[{aimlfile|dir}]...'exitendrobot=ProgramR::Facade.newrobot.learn(ARGV)whiletrueprint'>> 's=STDIN.gets.chompreaction=robot.get_reaction(s)STDOUT.puts"<< #{reaction}"end
Contributing
Fork it
Create your feature branch (git checkout -b my-new-feature)
Commit your changes (git commit -am 'Added some feature')
Push to the branch (git push origin my-new-feature)
Create new Pull Request
About
Ruby interpreter for the AIML as an updated rubygem