Comparing version 1.1.3 to 1.1.4
{ | ||
"name": "afinn-111", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "AFINN 111 (list of English words rated for valence) in JSON", | ||
@@ -20,2 +20,6 @@ "license": "MIT", | ||
"bugs": "https://github.com/words/afinn-111/issues", | ||
"funding": { | ||
"type": "github", | ||
"url": "https://github.com/sponsors/wooorm" | ||
}, | ||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", | ||
@@ -31,15 +35,15 @@ "contributors": [ | ||
"devDependencies": { | ||
"bail": "^1.0.1", | ||
"bail": "^1.0.0", | ||
"browserify": "^16.0.0", | ||
"csv-streamify": "^4.0.0", | ||
"join-stream": "0.0.0", | ||
"prettier": "^1.17.1", | ||
"readable-stream": "^3.3.0", | ||
"remark-cli": "^6.0.0", | ||
"remark-preset-wooorm": "^5.0.0", | ||
"prettier": "^1.0.0", | ||
"readable-stream": "^3.0.0", | ||
"remark-cli": "^7.0.0", | ||
"remark-preset-wooorm": "^6.0.0", | ||
"tape": "^4.0.0", | ||
"tinyify": "^2.5.0", | ||
"tinyify": "^2.0.0", | ||
"wrap-stream": "^2.0.0", | ||
"xo": "^0.24.0", | ||
"yauzl": "^2.10.0" | ||
"xo": "^0.25.0", | ||
"yauzl": "^2.0.0" | ||
}, | ||
@@ -46,0 +50,0 @@ "scripts": { |
@@ -9,17 +9,17 @@ # afinn-111 | ||
## Installation | ||
## Install | ||
[npm][]: | ||
```bash | ||
```sh | ||
npm install afinn-111 | ||
``` | ||
## Usage | ||
## Use | ||
```js | ||
var afinn = require('afinn-111'); | ||
var afinn = require('afinn-111') | ||
afinn.positive; //=> 2 | ||
afinn['self-deluded']; //=> -2 | ||
afinn.positive //=> 2 | ||
afinn['self-deluded'] //=> -2 | ||
``` | ||
@@ -31,8 +31,8 @@ | ||
**afinn-111** returns entries to valence ratings (`Object.<string, number>`). | ||
`afinn-111` returns entries to valence ratings (`Object.<string, number>`). | ||
> Note! Be careful when accessing unknown properties on the | ||
> **afinn-111** object, words such as “constructor” or “toString” | ||
> might occur. It’s recommended to use a `hasOwnProperty` check | ||
> beforehand. | ||
> Note! | ||
> Be careful when accessing unknown properties on the `afinn-111` object, words | ||
> such as “constructor” or “toString” might occur. | ||
> It’s recommended to use a `hasOwnProperty` check beforehand. | ||
@@ -43,13 +43,13 @@ ## Musings | ||
* All lower case; | ||
* Can contain numbers (only case: `n00b`); | ||
* All lower case | ||
* Can contain numbers (only case: `n00b`) | ||
* Can contain spaces (cases: `can't stand`, `cashing in`, | ||
`cool stuff`, `does not work`, `dont like`, `fed up`, `green wash`, | ||
`green washing`, `messing up`, `no fun`, `not good`, `not working`, | ||
`right direction`, `screwed up`, `some kind`); | ||
* Can contain apostrophes (only case: `can't stand`); | ||
* Can contain diaeresis (only case: `naïve`); | ||
`right direction`, `screwed up`, `some kind`) | ||
* Can contain apostrophes (only case: `can't stand`) | ||
* Can contain diaeresis (only case: `naïve`) | ||
* Can contain dashes (cases: `cover-up`, `made-up`, | ||
`once-in-a-lifetime`, `self-confident`, `self-deluded`, | ||
`short-sighted`, `short-sightedness`, `son-of-a-bitch`); | ||
`short-sighted`, `short-sightedness`, `son-of-a-bitch`) | ||
@@ -65,3 +65,3 @@ ## Related | ||
* [`polarity`](https://github.com/words/polarity) | ||
— Detect the polarity of text, based on `afinn-169` and `emoji-emotion` | ||
— Detect the polarity of text, based on `afinn-165` and `emoji-emotion` | ||
@@ -68,0 +68,0 @@ ## License |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48273