# text-rank-tag

> The TextRank algorithm that automagically creates a tag cloud from text

Latest version **0.0.1** (published 2018-10-29) · Apache license · 0 weekly downloads

## Install

```sh
npm install text-rank-tag
pnpm add text-rank-tag
yarn add text-rank-tag
bun add text-rank-tag
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2018-10-29 |
| First published | 2018-10-29 |
| Weekly downloads | 0 |
| License | Apache |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 32.4 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Uriel Avalos |
| Maintainers | henryboldi |
| Keywords | pagerank, textrank, tag, cloud, nlp, natural, language, processing |

## Links

- npm: https://www.npmjs.com/package/text-rank-tag
- Repository: https://github.com/frankandrobot/text-rank
- Homepage: https://github.com/frankandrobot/text-rank#readme
- Issues: https://github.com/frankandrobot/text-rank/issues
- npm.io page: https://npm.io/package/text-rank-tag

## Dependencies (2)

- [pos](https://npm.io/package/pos.md) ~0.1.7-2
- [underscore](https://npm.io/package/underscore.md) ~1.7.0

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2018-10-29

## README

What's TextRank? It's an algorithm that adapts Google's PageRank to auto-magically build a
tag cloud from a text.

# Usage

Add text rank to your `package.json`.

```
 "dependencies": {

    //...

    "text-rank": "git://github.com/frankandrobot/text-rank.git#master"
  }
```

Then just do

```
var textrank = require('text-rank'),

    rslt = textrank.generateTags("Content ...")
```

The result will be a JSON object with a `tags` property containing an array of tags

# Run the tests

```
npm install //you may need to do sudo npm install

jasmin-node tests
```

# Credits

- Rada Mihalcea and Paul Tarau,
  [TextRank: Bringing Order into Texts](http://web.eecs.umich.edu/~mihalcea/papers/mihalcea.emnlp04.pdf)
- [pos-js](https://github.com/dariusk/pos-js) - fast part-of-speech tagger

---
_Source: https://npm.io/package/text-rank-tag · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
