humanization
humanization
is a library that seeks to simulate human patterns of mistakes when typing text. It can serve as a kind of ergonomic layer for automated chatbots to make them feel more human.
Getting started
; ;// => "All thei5 eqjipmetn and insfrmuents rAe alIve."
; const thx = process"thx";const print = input; const thanks = input: Applicable: { // Only re-write words that match 'thanks': if && /thanks/i return // Replace entire word with "thx" ...thx // Leaves punctuation intact ...input ; return input;}; ;// => "hEY thxxxxxxxxx SO mUCh!!!"
Development
yarn install
yarn watch
Testing
yarn test
oryarn test --watch
Building
yarn compile