src::readability::AvgSentenceLen::AvgSentenceLen Klassenreferenz
Aufstellung aller Elemente
Öffentliche Methoden |
def | __init__ |
def | analysiereSatz |
def | linearRatio |
Öffentliche Attribute |
| name |
Dokumentation der Elementfunktionen
def src::readability::AvgSentenceLen::AvgSentenceLen::analysiereSatz |
( |
|
self, |
|
|
|
satz | |
|
) |
| | |
Analysiere einen Satz (String) nach druchschnittlicher satzlaenge
Laut googelsuche:
Jyoti Sanyal's Indlish has an interesting and informative chapter titled 'Shrink or sink' on the length of the sentence.
He writes: "Based on several studies, press associations in the USA have laid down a readability table. Their survey shows
readers find sentences of
8 words or less very easy to read;
11 words, easy;
14 words fairly easy;
17 words standard;
21 words fairly difficult;
25 words difficult and
29 words or more, very difficult."
siehe http://strainindex.wordpress.com/2008/07/28/the-average-sentence-length/
annahme leicht 0: <= 4 letter
annahme schwer 1: >= 8 letter
@param satz - Ein Satz als Zeichenkette
@return Wert zwischen 0 (leicht) und 1 (schwer)
Erneute Implementation von src::readability::BaseFeature::BaseFeature.
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:
- impl/src/readability/AvgSentenceLen.py