View Single Post
Old 11-02-2013, 08:58 AM   #608
AnselmD
Zealot
AnselmD began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Oct 2013
Device: none
Quote:
Originally Posted by theducks View Post
You could do a simple Hack on the PI (it is just a Zip file)

Just edit the formula in statistics.py

: get_flesch_kincaid...
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.

Last edited by AnselmD; 11-02-2013 at 09:17 AM. Reason: New facts
AnselmD is offline   Reply With Quote