WNBOT

wnbot provides a chatbot interface to the WordNet command-line executable program. You can ask it for definitions, synonyms, or any of the other services Wordnet provides (hyponyms, derivative forms, etc.).

This project demonstrates how to use the myagent framework to create a customizable (at runtime) interface to a third-party program.


> syns: curious
strange (vs. familiar), unusual, inquisitive, speculative, questioning, wondering(prenominal), nosy, nosey, prying, snoopy, overcurious, Also See-> inquiring#1, interested (vs. uninterested)

> what are the synonyms of (.*) is a synonym for syns: (.*)
OK, (?-mix:^what are the synonyms of (.*)) has been added, and will now call syns.

> what are the synonyms of inquiring
request, asking, communicate, intercommunicate, question, query, probe, examine, fact-finding, investigative, investigatory, inquisitive, inquisitorial, inquisitorial, inquisitory, probing, searching, Also See-> curious#2

> over: synaesthesia
1. synesthesia, synaesthesia -- (a sensation that normally occurs in one sense modality occurs when another modality is stimulated)

> !dict (.*) is a synonym for over: (.*)
OK, (?-mix:^!dict (.*)) has been added, and will now call over.

> !dict internet
1. Internet, Net, cyberspace -- (a computer network consisting of a worldwide network of computer networks that use the TCP/IP network protocols to facilitate data transmission and exchange)

> wn happy -antsa
unhappy (vs. happy), homesick, nostalgic, lovesick, miserable, suffering, wretched, INDIRECT (VIA fortunate) -> unfortunate, INDIRECT (VIA willing) -> unwilling, INDIRECT (VIA felicitous) -> infelicitous


To run:
Download wnbot.zip, extract it, and type "run" from the "wnbot" directory. You must have Ruby installed and on your path.

Files (located in the bin directory):
myagent.rb
patterns.yaml
wnbot.rb
wn.exe (this is the wn executable slightly modified so it doesn't search in the registry for the location of the dictionary files)

Tests: testwnbot.rb. To run wnbot as a daemon: wnbotd.rb.


robertscottmitchell@hotmail.com