Automatically extract interesting quotes from a text with Node JS

2016-05-20

Getting start with pull-quoter and quote extraction in Node.

The pull-quoter library allows you to extract interesting quotes from a text.

Installation

Easy with npm:

1
npm install --save pull-quoter

Usage

Load the module and simply use it as a function.

1
2
3
4
5
const pullquoter = require('pullquoter');

const text = "Something I notice every time I get really [...] higher quality sleep every night.";

console.log(pullquoter(text)); // [ 'It’s not just our thinking that’s affected by being tired.' ]

pull-quoter will return an Array of Strings.