returns an object of keywords / keyphrases from a string.
npm install cull-keywords> returns an object of keywords / keyphrases from a string.


- Install
- Usage
- API
- Contribute
- License
``js
npm i [ -S ] cull-keywords
`
`js
const cullKeywords = require('cull-keywords')
const string = / ... /
/ Using callbacks /
cullKeywords(string, (err, results) => {
if (err) {
...
}
...
}
/ Using promises /
cullKeywords(string, 'format')
.then(results => ... )
.catch(err => ... )
`
The format option removes apostrophes and replaces spaces with hyphens.
###### Parameters
- string ([String] (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)) - String to work onoptions
- (Object \| String, optional) - Options object or options name as a string.callback
- (Function, optional) - Callback function
If no callback is passed then a Promise is returned.
###### Returns
Object containing two keys, keywords and keyphrases.
{
keywords: [ ... ],
keyphrases: [ ... ]
}`


PRs accepted and appreciated
- nlcst-to-string: Stringify NLCST
- retext: Natural language processor powered by plugins
- retext-keywords: Keyword extraction with Retext
MIT © Paul Zimmer