1.0.0 • Published 3 months ago

smmry-fi v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 months ago

smmry-fi

github coveralls npm

Creates TL;DR type summaries from text written in Finnish.

Online demo

How it works

  1. The input text is split into sentences.
  2. From each sentence common stopwords are removed and the remaining words are being stemmed into their most basic form and counted for "score".
  3. Sentences with highest score count are returned from the original text.

Installation

$ npm install smmry-fi

Usage

import { createSummary } from "smmry-fi";

const summary = createSummary(longTextToCreateSummaryFrom);