public static double daleChallGrade ( String strText ) { //http://rfptemplates.technologyevaluation.com/dale-chall-list-of-3000-simple-words.html double score = daleChallScore ( strText ) ; if ( score < 5.0 ) { return 2.5 ; } else if ( score < 6.0 ) { return 5.5 ; } else if ( score < 7.0 ) { return 7.5 ; } else if ( score < 8.0 ) { return 9.5 ; } else if ( score < 9.0 ) { return 11.5 ; } else if ( score < 10.0 ) { return 14.0 ; } else { return 16.0 ; } }
Returns the Dale Chall Grade of the text .