1.1.0 • Published 1 year ago

multi-text-analyzer v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Multi Text Analyzer

A lightweight npm package for analyzing text.

The package finds the following stats:

  • Words count.
  • Char count (with and without spaces).
  • Sentences.
  • Paragraphs.
  • Punctuations.
  • Syllables (accurate and estimated).
  • Long words (more than six chars).
  • Hard words (contain three or more syllables).
  • Top five repeated words.
  • Reading time estimate.

Installation

npm install multi-text-analyzer

Usage

Import calculate instance:

import { calculate } from "multi-text-analyzer";

const text = "This is a great package!";

calculate.chars(text).withSpaces;

Notes

  1. Most repeated words output returns the word and its count:
[
  { word: "and", count: 8 },
  { word: "a", count: 7 },
  { word: "in", count: 6 },
  { word: "i", count: 4 },
  { word: "an", count: 4 },
];
  1. Reading time returned value is a string, eg: "1 min".

  2. The accurateSyllables() method only runs on server as it needs to access fs.

Dependencies

Contributions

Any contribution is welcomed and highly appreciated.

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago