method of static class JsNgram

Description

Generate N-gram splitted keyword texts as array.

Example
JsNgram.work['texts'] = JsNgram.generateTexts(JsNgram.work);
// for the case of 'cat' and size=2, a ['ca', 'at'] was returned and set. 
      
Usage

generateTexts(work);

Argument work is the work property.