Modern fork of keyword-extractor (Michael De Lorenzo [email protected] (http://mikedelorenzo.com))
$ npm install @maxqwars/destruct
The second argument of the destruct method is an Object of configuration/processing settings for the destruction.
Parameter Name | Description | Permitted Values |
---|---|---|
language | The stopwords list to use. ISO 639-1 codes and verbose names | ar, cs, da, de, en, es, fa, fr, gl, it, ko, nl, pl, pt, ro, ru, sv, tr, vi, arabic, czech, danish, dutch, english, french, galician,german, italian, korean, persian, polish, portuguese, romanian, russian,spanish, swedish, turkish, vietnam |
removeDigits | Removes all digits from the results if set to true (can handle Arabic and Perisan digits too) | true or false |
returnChangedCase | The case of the extracted keywords. Setting the value to true will return the results all lower-cased, if false the results will be in the original case. | true or false |
returnChainedWords | Instead of returning each word separately, join the words that were originally together. Setting the value to true will join the words, if false the results will be splitted on each array element. | true or false |
removeDuplicates | Removes the duplicate keywords | true , false (defaults to false ) |
returnMaxNGrams | Returns keywords that are ngrams with size 0-integer | integer , false (defaults to false ) |