You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Find unique unfamiliar words for spache.if(spache.indexOf(normalized)!==-1&&familiarWords[normalized]!==true){familiarWords[normalized]=truefamiliarWordCount++}// Find unique difficult words for dale-chall.if(daleChall.indexOf(normalized)!==-1&&easyWord[normalized]!==true){easyWord[normalized]=trueeasyWordCount++}}}
The docs for Dale-chall describe it as "List of familiar American-English words: The New Dale-Chall (1995)."
Checking the formula’s (spache, dale-chall), the correct counts are used (familiar/unfamiliar, easy/difficult). So I’d say the descriptions of the lists need to be fixed.
So I think you mixed up the measures for easy words and familiar words in index.js around line 380.
From https://github.com/wooorm/readability/blob/src/src/index.js#L383-L398 :
The docs for Dale-chall describe it as "List of familiar American-English words: The New Dale-Chall (1995)."
The docs for Spache describe it as a "List of easy American-English words: Revised Spache (1974)."
So I think you just have to switch the counts.
The text was updated successfully, but these errors were encountered: