sentence-parse

A simple utility to parse text into sentences.

parseSentences(text, options) returns an array of sentences, with options for treating multiple line breaks as separators, stripping start-of-line sequences, preserving <br>/<p> tags as breaks, preserving list items with a configurable prefix, and excluding non-letter segments. Accepts input from either a string or a file.