words / dale-chall-formula Goto Github PK
View Code? Open in Web Editor NEWFormula to find the grade level according to the (revised) Dale–Chall Readability Formula (1995)
Home Page: https://wooorm.com/readability/
License: MIT License
Formula to find the grade level according to the (revised) Dale–Chall Readability Formula (1995)
Home Page: https://wooorm.com/readability/
License: MIT License
According to the Wikipedia page, the formula was supposed to also include words with other suffixes.
I found a details on allowed suffixes here:
http://www.lefthandlogic.com/htmdocs/tools/okapi/okapimanual/dale_challWorksheet.PDF
That also says that numbers are allowed, and that the formula is refers to counting multiples of difficult words, so it appears that the uniqueness of easy words need not be considered, but just the total.
I've switched my readability to have the following, but I think these details would likely be better as a isDifficult method in dale-chall-formula. Doing so would mean dale-chall-formula would have to require dale-chall word list, which you perhaps wanted to avoid.
let reDaleChallEndings = /(s|ing|n|ed|ly|er|est)$/
let reDaleChallNumber = /^[1-9]\d{0,2}(,?\d{3})*$/
`
if (
daleChall.includes(normalized) ||
normalized.match(reDaleChallNumber) ||
(normalized.match(reDaleChallEndings) &&
daleChall.includes(stemmer(normalized)))
) {
easyWordCount++
}
`
It appears that in order to use this module, I need to come up with my own count of "difficult words", but I have no idea how to do that. Is there a particular dictionary I should be using? Does a program exist to compare words against that dictionary? Or is that something that needs to be built in order to use this formula?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.