1.0.9 • Published 8 years ago

chatbot-normalizer v1.0.9

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

chatbot-normalizer

This package attempts to process a string and make it easier to consume by bots.


  1. spelling corrections for common spelling errors
  2. idiom conversions
  3. junk word removal from sentence
  4. special sentence effects (question, exclamation, revert question)
  5. abbreviation expansion and canonization
  6. British & Canadian english to American english

example conversions:

Nov 1st I weighed 90 kgs. total
November 1st I weighed 90 kilograms total
I’ll listen to y’all
I will listen to you all
armour axe coloured gold
armor ax colored gold
are we sceduled thrsday for teh restraunt
are we scheduled Thursday for the restaurant

Installation:

$ npm install --save chatbot-normalizer

Use:

import normalize from 'chatbot-normalizer'

normalize('Your string here')
.then(output => {
  console.log(output)
  })
1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago