View Single Post
Old 11-02-2013, 11:04 AM   #609
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,139
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by AnselmD View Post
Thanks, good idea .

I think i have to adapt the computation of complex words too.
def countComplexWords
...
#Checking proper nouns. If a word starts with a capital letter
#and is NOT at the beginning of a sentence we don't add it
#as a complex word.
...

I do not really understand, why this is done for the English language. But for the German language, a noun with a capital letter is a proper noun, even within the sentence.

Addition:
Oh, i just see i do not need the complex words for the Flesch-Reading-Ease. I would need it for the adaption of the Gunning-Fog-Index.
You have gone way past my skill level
I just knew where the hack needed to be.
I wonder if the PI could be made to detect the value of {Language} (in Calibre) and use a more specific formula if it exists
(Case-Otherwise)

Keep your formula code versions (formulaname_de), and offer to send them to the Author, he might incorporate language specific calculations
theducks is online now   Reply With Quote