# afinn-165-financialmarketnews

> AFINN 165 (list of English words rated for valence) in JSON with added words and modifications for financial market news

Latest version **3.0.0** (published 2023-02-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install afinn-165-financialmarketnews
pnpm add afinn-165-financialmarketnews
yarn add afinn-165-financialmarketnews
bun add afinn-165-financialmarketnews
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2023-02-02 |
| First published | 2023-01-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 58.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ryan O'Day |
| Maintainers | theryan722 |
| Keywords | anew, afinn, word, list, sentiment, analysis, opinion, mining, text, microblogs |

## Links

- npm: https://www.npmjs.com/package/afinn-165-financialmarketnews
- Repository: https://github.com/theryan722/afinn-165-financialmarketnews
- Homepage: https://github.com/theryan722/afinn-165-financialmarketnews#readme
- Issues: https://github.com/words/afinn-165/issues
- Funding: https://github.com/sponsors/wooorm
- npm.io page: https://npm.io/package/afinn-165-financialmarketnews

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 3.0.0 (latest) — 2023-02-02
- 2.0.3 — 2023-02-02
- 2.0.2 — 2023-01-15

## README

# afinn-165-financialmarketnews

AFINN 165 - Financial Market News.

## Contents

*   [What is this?](#what-is-this)
*   [Install](#install)
*   [Use](#use)
*   [API](#api)
    *   [`afinn165`](#afinn165)
*   [Musings](#musings)
*   [Types](#types)
*   [Compatibility](#compatibility)
*   [License](#license)

## What is this?

This package exposes a map of words rated for valence.
(“goodness” vs “badness”), specifically the AFINN-165 list,
but with additions and modifications to existing words
to be tuned for parsing financial news.

## Install

This package is esm only.
In Node.js (version 14.14+, 16.0+), install with:

```sh
npm install afinn-165-financialmarketnews
```

## Use

```js
import {afinn165FinancialMarketNews} from 'afinn-165-financialmarketnews'

afinn165FinancialMarketNews.raises //=> 1
afinn165FinancialMarketNews.bankruptcy //=> -3
afinn165FinancialMarketNews.crashing //=> -2
```

## API

This package exports the identifier `afinn165FinancialMarketNews`.
There is no default export.

### `afinn165`

Map of words to valence (`Record<string, number>`).

> 👉 **Note**: be careful when accessing unknown properties on the
> `afinn165` object, words such as “constructor” or “toString” might occur.
> It’s recommended to use a `hasOwnProperty` check beforehand.

## Musings

This package adds 170+ words, and modifies a few others
compared to the repository this is forked from.
These modifications and additions aim to help better
parse sentiment from financial news.

## Types

This package is fully typed with TypeScript.
It exports no additional types.

## Compatibility

This package is at least compatible with all maintained versions of Node.js.
As of now, that is Node.js 14.14+ and 16.0+.

## License

MIT License.

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