View Single Post
Old 01-15-2016, 02:45 AM   #859
red_dragon
Daywalker
red_dragon is on a distinguished road
 
Posts: 29
Karma: 52
Join Date: Jul 2008
Device: Kindle Paperwhite
Hello davidfor,

I'd appreciate if you could send me the code how to add a language specific version, or just post it here. Thanks!

In my private version I have tried out the "german.pickle" from the nltk package (modified to work with the plugin) but the difference was <1%. I don't care much about a higher accuracy, e.g. whether the reading ease is 75.5 or 76.7. If it's easy to select the correct pickle file on the fly, well, then it makes sense to use that one.

Regarding the "Wiener Sachtextformel", I am using the 4th variant which is calculated like this:

score = (0.2656 * text_analysis['averageWordsPerSentence']) + (0.2744 * (text_analysis['complexwordCount'] * 100 / text_analysis['wordCount']) ) -1.693

It can replace the "Gunning-Fog-Index" (as "years of education"), which doesn't work for German books anyway.
red_dragon is offline   Reply With Quote