All Projects → words → flesch

words / flesch

Licence: MIT license
Formula to detect the ease of reading a text according to Flesch Reading Ease (1975)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to flesch

gunning-fog
Formula to detect the ease of reading a text according to the Gunning fog index (1952)
Stars: ✭ 16 (-36%)
Mutual labels:  reading, readability, ease
dale-chall-formula
Formula to find the grade level according to the (revised) Dale–Chall Readability Formula (1995)
Stars: ✭ 26 (+4%)
Mutual labels:  reading, readability, ease
automated-readability
Formula to detect ease of reading according to the Automated Readability Index (1967)
Stars: ✭ 46 (+84%)
Mutual labels:  reading, readability, ease
hast-util-reading-time
utility to estimate the reading time
Stars: ✭ 55 (+120%)
Mutual labels:  reading, readability
readable-regex
Java library for creating readable regular expressions
Stars: ✭ 24 (-4%)
Mutual labels:  readability
notes
📓读书笔记 <Java 8 实战>
Stars: ✭ 15 (-40%)
Mutual labels:  reading
Golang Notes
Go source code analysis(zh-cn)
Stars: ✭ 3,137 (+12448%)
Mutual labels:  reading
Fe
前端热门文章阅读
Stars: ✭ 174 (+596%)
Mutual labels:  reading
Vyxal
A golfing language that has aspects of traditional programming languages - terse, elegant, readable.
Stars: ✭ 134 (+436%)
Mutual labels:  readability
codeReads
goodReads (pun intended) for coding and programming
Stars: ✭ 29 (+16%)
Mutual labels:  reading
good-reads
List of inspiring articles, blogs, tutorials and books. Tech stuff.
Stars: ✭ 14 (-44%)
Mutual labels:  reading
readability
Fast readability scores for text data
Stars: ✭ 22 (-12%)
Mutual labels:  readability
trafilatura
Python & command-line tool to gather text on the Web: web crawling/scraping, extraction of text, metadata, comments
Stars: ✭ 711 (+2744%)
Mutual labels:  readability
Book Notes
Notes from books and other interesting things that I've read. Table of contents at the end 👇
Stars: ✭ 2,636 (+10444%)
Mutual labels:  reading
twitter-to-rss
Simple python script to parse twitter feed to generate a rss feed.
Stars: ✭ 15 (-40%)
Mutual labels:  readability
Awesome Casestudy
📕 Curated list of technical case studies on WebGL and creative development
Stars: ✭ 2,324 (+9196%)
Mutual labels:  reading
bookwyrm
Social reading and reviewing, decentralized with ActivityPub
Stars: ✭ 1,499 (+5896%)
Mutual labels:  reading
RabbitMQ
version 3.4.2 代码阅读
Stars: ✭ 20 (-20%)
Mutual labels:  reading
awesome-reading
Notes from some books that I've read.
Stars: ✭ 43 (+72%)
Mutual labels:  reading
Neural-Scam-Artist
Web Scraping, Document Deduplication & GPT-2 Fine-tuning with a newly created scam dataset.
Stars: ✭ 18 (-28%)
Mutual labels:  readability

flesch

Build Coverage Downloads Size

Formula to detect the grade level of text according to the Flesch reading ease.

See syllable for detecting syllables.

Install

This package is ESM only: Node 12+ is needed to use it and it must be imported instead of required.

npm:

npm install flesch

Use

import {flesch} from 'flesch'

// For “The cat sat on the mat” (1 sentence, 6 words, 6 syllables).
flesch({sentence: 1, word: 6, syllable: 6}) // => 116.14500...

// For “The Australian platypus is seemingly a hybrid of mammal and reptilian
// creature.” (1 sentence, 12 words, 23 syllables).
flesch({sentence: 1, word: 12, syllable: 23}) // => 32.50499...

API

This package exports the following identifiers: flesch. There is no default export.

flesch(counts)

Given an object containing the number of words (word), the number of sentences (sentence), and the number of syllables (syllable) in a document, returns the reading ease associated with the document.

Returned values are 120 (every sentence consisting of only two one-syllable words), or lower (including negative values).

The values have the following semantics:

Score Semantics
90.0 – 100.0 Easily understood by an average 11-year-old student
60.0 – 70.0 Easily understood by 13- to 15-year-old students
0.0 – 30.0 Best understood by university graduates

Therefore we can use the following formula to approximate the average age a student would understand a document at, given score score:

var age = 20 - Math.floor(score / 10)

Related

License

MIT © Titus Wormer

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].