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
Put wordnet.rb, myagent.rb, patterns.yaml, and wnbot.rb into the WordNet bin directory (or put the WordNet bin directory in your path). Start wnbot.rb ("ruby wnbot.rb").
Tests: testwnbot.rb. To run wnbot as a daemon: wnbotd.rb.