normalize-english
v1.0.5
Published
Normalize and clean English for chat-like applications
Downloads
38
Readme
normalize-english
Normalize and clean English for chat-like applications
Installation
npm install normalize-english
Usage
import {clean} from 'normalize-english'
clean('THAT IS TREW') //-> 'that is true'
Based on @silentrob's https://www.npmjs.com/package/node-normalizer but with some key differences:
- Data is obtained using
require
, so there is no async load step - No dependencies on the C++ "RE2" package, so it runs in the browser just fine
- normalize-english performs case normalization
- No
~
tokens are inserted - rather, normal english is inserted for replacements