Skip to content
A CoffeeScript implementation of Shlomi Babluki's naive summary tool
CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
src
.gitignore
Cakefile
package.json
readme.md
test.txt

readme.md

SUMMARIZELY

A CoffeeScript implementation of Shlomi Babluki's naive summary tool. Works like this:

summarize = require 'summarizely'
content = "The complete contents of Moby Dick, in a single string"

sparknotes = summarize content
console.log sparknotes

You have now defeated English class.

Install

npm install git://github.com/garbados/summarizely.git

How It Works

Shlomi goes into more detail, but here's the skinny:

  • Breaks text into paragraphs
  • Splits paragraphs into sentences
  • For each paragraph, selects the best sentence
  • Returns list of best sentences

...where "best" means "has most in common with other sentences in that paragraph."

Tests

Run npm test to be treated to a summary of Paul Miller's "I’m still here: back online after a year without the internet"

Something went wrong with that request. Please try again.