Home For Fiction – Blog

for thinking people


bardbot

BardBot, a Shakespearean Chatbot

December 28, 2020

Remember my Shakespearean sonnet mixer? I was thinking, wouldn’t it be great if we could actually talk to the Bard and have him respond in his unique way to our questions? Well, of course it would have been, but alas, he’s dead. The next best thing – aren’t I modest? – is this BardBot; a JavaScript Shakespearean chatbot that takes the user input and returns a relevant line from the Bard’s sonnets.

The program takes the last word provided and returns either a direct reference (if the word exists in the sonnets database) or a rhyme (if it doesn’t).

In fact, I attempted to use more than just the last word (and I may attempt again in the future), but I wasn’t happy with the result. But even in this basic implementation, the BardBot results are pretty funny!

bardbot
Would the Bard approve? Probably not, but who cares!
(more…)