View Single Post
Old 12-01-2011, 01:29 PM   #4
Serpentine
Evangelist
Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
There's a pretty good implementation of this over at the nltk repo, see : readabilitytests.py

I'm pretty sure that this could be used to provide an interface for doing the calculation, however the tricky bit is more in ensuring that you only compute the score off of paragraph text out of the book chapters. I'm not too sure how this would be managed within the calibre plugin structure, however at the very least I'm sure you could get an interface to paste the text into, compute the score and store it.
Serpentine is offline   Reply With Quote