Coder Social home page Coder Social logo

words / dale-chall-formula Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 1.0 61 KB

Formula to find the grade level according to the (revised) Dale–Chall Readability Formula (1995)

Home Page: https://wooorm.com/readability/

License: MIT License

JavaScript 100.00%
ease readability reading

dale-chall-formula's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

jdrew1303

dale-chall-formula's Issues

Stemming, Multiples, and Numbers

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++
}

`

Missing dictionary

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.