Introduction
This Microsoft Bot Builder v4 middleware component will give your bot some human feel by randomly injecting misspellings, letter transpositions, and even messages to the wrong recipient - complete with followup corrections!
Getting Started
To get started, install botbuilder-humanizer
in your bot project.
npm install botbuilder-humanizer
And then import
and .use
Humanizer. Here's a simple echo bot.
;;; const bot = ; bot ;
The numeric values you pass in represent the probability that anomolies of a given type will occur. For instance, .25
for misspelling
means that commonly misspelled words will be misspelled 25% of the time.