Skip to content

MarkLyck/chatbot-normalizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
  })

About

JS String normalization for chatbots

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published