text-summarizer-api
v1.0.0
Published
A simple API to summarize text using Node.js and Express without external libraries.
Downloads
5
Maintainers
Readme
Text Summarizer API
A simple Text Summarizer API built using Node.js and Express, which processes text and returns a summarized version without using any external libraries.
Features
- Extracts the most important sentences from a given text.
- Uses word frequency analysis to determine key sentences.
- Provides word count of both original and summarized text.
Installation
```sh
const { summarizeText } = require("text-summarizer-api");
const {text}=req.body;
const result = await summarizeText(text);
exp
{
"text": "Artificial intelligence is a branch of computer science that aims to create intelligent machines."
}