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