Skip to content

alexmattson/summary-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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';
  1. feed it an article [string] and the number of sentences you would like for the summary
SummaryBot(article, 5)
  1. receive a summary object
Key Type Description
text string summary as a string
percentReduction integer percent of the original article removed from the summary
bestSentences array this will be an array of the top sentences with metadata as to where they appeared in the article
originalLength integer word count of article
summaryLength integer word count of summary
sentenceCount integer returns sentence count for verification

Developed by Alex Mattson

About

Easily create summaries of content.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published