1.0.1 • Published 7 years ago

summary-bot v1.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

logo.png

Build Status Version MIT licensed


Description

Summary Bot is a quick, light weight and extremely simple to use article summary package.

Install

npm install --save summary-bot

Use

Three easy steps will get you up and running:

1) Import it into the file

// ES6
import SummaryBot from 'summary-bot';

2) feed it an article string and the number of sentences you would like for the summary

SummaryBot(article, 5)

3) receive a summary object

KeyTypeDescription
textstringsummary as a string
percentReductionintegerpercent of the original article removed from the summary
bestSentencesarraythis will be an array of the top sentences with metadata as to where they appeared in the article
originalLengthintegerword count of article
summaryLengthintegerword count of summary
sentenceCountintegerreturns sentence count for verification

Developed by Alex Mattson