es-simplify
Simplifies an english search term to use it with an Elasticsearch completion index.
Install
$ npm install --save es-simplify
Usage
const simplify = ; // simplify a term const result = ; // result is 'hi you'
See the unit tests for further examples.
API
simplify(term)
Returns a simplied version of the supplied string.
input
Type: string
The term you want to simplify.
License
MIT