+9
-5
| { | ||
| "name": "flesch", | ||
| "version": "1.0.4", | ||
| "version": "1.0.5", | ||
| "description": "Formula to detect the ease of reading a text according to Flesch Reading Ease (1975)", | ||
@@ -13,2 +13,6 @@ "license": "MIT", | ||
| "bugs": "https://github.com/words/flesch/issues", | ||
| "funding": { | ||
| "type": "github", | ||
| "url": "https://github.com/sponsors/wooorm" | ||
| }, | ||
| "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", | ||
@@ -25,9 +29,9 @@ "contributors": [ | ||
| "is-nan": "^1.0.0", | ||
| "nyc": "^14.0.0", | ||
| "nyc": "^15.0.0", | ||
| "prettier": "^1.0.0", | ||
| "remark-cli": "^6.0.0", | ||
| "remark-preset-wooorm": "^5.0.0", | ||
| "remark-cli": "^7.0.0", | ||
| "remark-preset-wooorm": "^6.0.0", | ||
| "tape": "^4.0.0", | ||
| "tinyify": "^2.0.0", | ||
| "xo": "^0.24.0" | ||
| "xo": "^0.25.0" | ||
| }, | ||
@@ -34,0 +38,0 @@ "scripts": { |
+13
-6
@@ -8,16 +8,16 @@ # flesch | ||
| Formula to detect the grade level of text according to the [Flesch Reading | ||
| Ease][formula]. | ||
| Formula to detect the grade level of text according to the [Flesch reading | ||
| ease][formula]. | ||
| See [syllable][] for detecting syllables. | ||
| See [`syllable`][syllable] for detecting syllables. | ||
| ## Installation | ||
| ## Install | ||
| [npm][]: | ||
| ```bash | ||
| ```sh | ||
| npm install flesch | ||
| ``` | ||
| ## Usage | ||
| ## Use | ||
@@ -54,2 +54,9 @@ ```js | ||
| Therefore we can use the following formula to approximate the average age a | ||
| student would understand a document at, given score `score`: | ||
| ```js | ||
| var age = 20 - Math.floor(score / 10) | ||
| ``` | ||
| ## Related | ||
@@ -56,0 +63,0 @@ |
6588
4.41%108
6.93%