1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391
|
.TH STYLE 1 "@UPDATED@" "GNU" "User commands"
.SH NAME \"{{{roff}}}\"{{{
style \- analyse surface characteristics of a document
.\"}}}
.SH SYNOPSIS \"{{{
.\" Missing options:
.\" -a displays all sentences with their length and readability index.
.\" -e displays all sentences that begin with an expletive.
.\" -P displays parts of speech of the words in the document.
.\" -p displays all sentences that contain a passive verb.
.ad l
.B style
.RB [ \-L
.IR language ]
.RB [ \-l
.IR length ]
.RB [ \-r
.IR ari ]
.RI [ file ...]
.ad b
.br
.ad l
.B style
.RB [ \-\-language
.IR language ]
.RB [ \-\-print-long
.IR length ]
.RB [ \-\-print-ari
.IR ari ]
.RI [ file ...]
.ad b
.br
.ad l
.B style
.BR \-h | \-\-help
.ad b
.br
.ad l
.B style \-\-version
.ad b
.\"}}}
.SH DESCRIPTION \"{{{
\fBStyle\fP analyses the surface characteristics of the writing style
of a document. It prints various readability grades, length of words,
sentences and paragraphs.
.\" sentence structure, word usage, verb type, sentence openers
It can further locate sentences with certain characteristics.
If no files are given, the document is read from standard input.
.PP
Numbers are counted as words with one syllable.
A sentence is a sequence of words, that starts with a capitalised word and
ends with a full stop, double colon, question mark or exclamation mark.
A single letter followed by a dot is considered an abbreviation, so it
does not end a sentence. Various multi-letter abbreviations are
recognized, they do not end a sentence as well.
A paragraph
consists of two or more new line characters.
.SS "Readability grades"
\fBStyle\fP understands \fIcpp\fP(1) \fB#line\fP lines for being able to
give precise locations when printing sentences.
.IP "Kincaid formula" \"{{{
The Kincaid Formula was developed for U.S. Navy training manuals; it
ranges in difficulty from 5.5 to 16.3. It is probably best applied to
technical documents, because it is based on adult training manuals
rather than school book text. Dialogs (often found in fictional
texts) are usually a series of short sentences, which lowers the
score. On the other hand, scientific texts with many long scientific
terms are rated higher, although they are not necessarily harder to
read for people who are familiar with those terms.
.sp
.\"{{{ Kincaid Index
.if t \{\
.RS
.EQ
italic "Kincaid" = 11.8 * syllables over words + 0.39 * words over sentences - 15.59
.EN
.RE
.\}
.if n \{\
.ad l
Kincaid = 11.8*syllables/wds+0.39*wds/sentences-15.59
.ad b
.\}
.\"}}}
.\"}}}
.IP "Automated Readability Index" \"{{{
The Automated Readability Index is typically higher than Kincaid and
Coleman-Liau, but lower than Flesch.
.sp
.\"{{{ Automated Readability Index
.if t \{\
.RS
.EQ
italic "ARI" = 4.71 * letters over words + 0.5 * words over sentences - 21.43
.EN
.RE
.\}
.if n \{\
.ad l
ARI = 4.71*chars/wds+0.5*wds/sentences-21.43
.ad b
.\}
.\"}}}
.\"}}}
.IP "Coleman-Liau Formula" \"{{{
The Coleman-Liau Formula usually gives a lower grade than Kincaid,
ARI and Flesch when applied to technical documents.
.sp
.\"{{{ Coleman-Liau Formula
.if t \{\
.RS
.EQ
italic "Coleman-Liau" = 5.88 * letters over words - { 29.5 * sentences } over words - 15.8
.EN
.RE
.\}
.if n \{\
.ad l
Coleman-Liau = 5.88*chars/wds-29.5*sent/wds-15.8
.ad b
.\}
.\"}}}
.\"}}}
.IP "Flesch Reading Ease formula" \"{{{
Developed by Rudolph Flesch in 1948, the Flesch Reading Ease formula
is based on school texts covering grades 3 to 12. It is widespread,
especially in the USA, because it is computed easily and produces good
results. The index ranges from 0 (hard) to 100 (easy). Standard
English documents average around 60 to 70. Applying it to German
documents gives bad results because of the different language
structure.
.sp
.\"{{{ Flesh reading easy formula
.if t \{\
.RS
.EQ
Flesch ~ Index = 206.835 - 84.6 * syllables over words - 1.015 * words over sentences
.EN
.RE
.\}
.if n \{\
.ad l
Flesch Index = 206.835-84.6*syll/wds-1.015*wds/sent
.ad b
.\}
.\"}}}
.\"}}}
.IP "Fog Index" \"{{{
The Fog index was developed by Robert Gunning. Its value is a school
grade. The \(lqideal\(rq Fog Index level is 7 or 8. A level above 12
indicates the writing sample is too hard for most people to read.
Texts less than 100 words will not produce meaningful results. Note
that a correct implementation would not count words of three or more
syllables that are proper names, combinations of easy words, or made
three syllables by suffixes such as \(ened, \(enes, or \(ening.
.sp
.\"{{{ Fog Index formula
.if t \{\
.RS
.EQ
Fog ~ Index = 0.4 * left ( words over sentences + 100 * { { words >= 3 ~ syllables } over words } right )
.EN
.RE
.\}
.if n \{\
.ad l
Fog Index = 0.4*(wds/sent+100*((wds >= 3 syll)/wds))
.ad b
.\}
.\"}}}
.\"}}}
.\" might be wrong
.\".IP "WSFT Index" \"{{{
.\"The first new Vienna text formula (1. neue Wiener Sachtextformel, WSTF)
.\"has been developed for German documents and its result is a school grade
.\"that could read the text.
.\".sp
.\"{{{ WSTF
.\".if t \{\
.\".RS
.\".EQ
.\"matrix {
.\"col { WSTF ~ Index = above ~ }
.\"lcol {
.\"0.1935 * { words >= 3 ~ syllables } over words + 0.1672 * words over sentences -
.\"above
.\"down 70 { 0.1297 * { words > 6 ~ characters } over words - 0.0327 * { words = 1 ~ syllable } over words - 0.875 }
.\"}
.\"}
.\".EN
.\".RE
.\".\}
.\".if n \{\
.\".ad l
.\"WSTF Index = 0.1935*(wds >= 3 syllables)/wds
.\" +0.1672*wds/sent
.\" -0.1297*(wds > 6 characters)/wds
.\" -0.0327*(wds = 1 syllable)/wds
.\" -0.875
.\".ad b
.\".\}
.\"}}}
.\"}}}
.\" might be wrong
.\".IP "Wheeler-Smith Index" \"{{{
.\"The Wheeler-Smith Index is mapped to school grades using a table:
.\".sp
.\"{{{ Wheeler-Smith Index
.\".if t \{\
.\".RS
.\".EQ
.\"italic "Wheeler-Smith" ~ Index =
.\"words over sentences * 100 * { words >= 3 ~ syllables } over words
.\".EN
.\".RE
.\".\}
.\".if n \{\
.\".ad l
.\"Wheeler-Smith Index = wds/sent*100*((wds >= 3 syll)/wds)
.\".ad b
.\".\}
.\"}}}
.\".sp
.\".RS
.\".TS
.\"tab(#);
.\"l c c c c c c c c c c c c c.
.\"Index#16##20##24##29##34##38##42
.\"School year##5##6##7##8##9##10
.\".TE
.\".RE
.\"}}}
.IP "Lix formula" \"{{{
The Lix formula developed by Bj\(:ornsson from Sweden is very simple and
employs a mapping table as well:
.sp
.\"{{{ Lix
.if t \{\
.RS
.EQ
Lix =
words over sentences + 100 * { words > 6 ~ characters } over words
.EN
.RE
.\}
.if n \{\
.ad l
Lix = wds/sent+100*(wds >= 6 char)/wds
.ad b
.\}
.\"}}}
.sp
.RS
.ne 2
.TS
tab(#);
l c1 c1 c1 c1 c1 c1 c1 c1 c1 c1 c1 c1 c1 c1 c.
Index#34##38##41##44##48##51##54##57
School year##5##6##7##8##9##10##11
.TE
.RE
.\"}}}
.IP "SMOG Grading" \"{{{
The SMOG Grading for English texts was developed by McLaughlin in
1969. Its result is a school grade.
.sp
.\"{{{ SMOG
.if t \{\
.RS
.EQ
italic "SMOG-Grading" = sqrt { { (words >= 3 ~ syllables) } over sentences * 30 } + 3
.EN
.RE
.\}
.if n \{\
.ad l
SMOG Grading = square root of (((wds >= 3 syll)/sent)*30) + 3
.ad b
.\}
.\"}}}
.sp
It was adapted to German by Bamberger and Vanecek in 1984, who changed
the constant +3 to \-2.
.\"}}}
.SS "Word usage"
The word usage counts are intended to help identify excessive use of particular
parts of speech.
.IP "Verb Phrases" \"{{{
The category of verbs labeled "to be" identifies phrases using the passive
voice. Use the passive voice sparingly, in favor of more direct verb forms.
The flag \fB-p\fP causes \fBstyle\fP to list all occurrences of the passive
voice.
.PP
The verb category "aux" measures the use of modal auxiliary verbs, such as
"can", "could", and "should". Modal auxiliary verbs modify the mood of a verb.
.\"}}}
.IP "Conjunctions" \"{{{
The conjunctions counted by style are coordinating and subordinating.
Coordinating conjunctions join grammatically equal sentence fragments, such as
a noun with a noun, a phrase with a phrase, or a clause to a clause.
Coordinating conjunctions are "and," "but," "or," "yet," and "nor."
.PP
Subordinating conjunctions connect clauses of unequal status. A subordinating
conjunction links a subordinate clause, which is unable to stand alone, to an
independent clause. Examples of subordinating conjunctions are "because,"
"although," and "even if."
.\"}}}
.IP "Pronouns" \"{{{
Pronouns are contextual references to nouns and noun phrases. Documents with
few pronouns generally lack cohesiveness and fluidity. Too many pronouns may
indicate ambiguity.
.\"}}}
.IP "Nominalizations" \"{{{
Nominalizations are verbs that are changed to nouns. Style recognizes words
that end in "ment," "ance," "ence," or "ion" as nominalizations.
Examples are "endowment," "admittance," and "nominalization." Too much
nominalization in a document can sound abstract and be difficult to understand.
The flag \fB-N\fP causes \fBstyle\fP to list all nominalizations. The
flag \fB-n\fP prints all sentences with either the passive voice or a
nominalization.
.\"}}}
.\"}}}
.SH OPTIONS \"{{{
.IP "\fB\-L\fP \fIlanguage\fP, \fB\-\-language\fP \fIlanguage\fP"
set the document language (\fBde\fP, \fBen\fP, \fBnl\fP).
.IP "\fB\-l\fP \fIlength\fP, \fB\-\-print-long\fP \fIlength\fP"
print all sentences longer than \fIlength\fP words.
.IP "\fB\-r\fP \fIari\fP, \fB\-\-print-ari\fP \fIari\fP"
print all sentences whose readability index (ARI) is greater than \fIari\fP.
.IP "\fB\-p\fP \fIpassive\fP, \fB\-\-print-passive\fP"
print all sentences phrased in the passive voice.
.IP "\fB\-N\fP \fInominalizations\fP, \fB\-\-print-nom\fP"
print all sentences containing nominalizations.
.IP "\fB\-n\fP \fInominalizations-passive\fP, \fB\-\-print-nom-passive\fP"
print all sentences phrased in the passive voice or containing nominalizations.
.IP "\fB\-h\fP, \fB\-\-help\fP"
Print a short usage message.
.IP \fB\-\-version\fP
Print the version.
.\"}}}
.SH ERRORS \"{{{
On usage errors, 1 is returned. Termination caused by lack of memory is
signalled by exit code 2.
.\"}}}
.SH ENVIRONMENT \"{{{
.IP "\fBLC_MESSAGES\fP=\fBde\fP\^|\^\fBen\fP\^|\^\fBnl\fP"
specifies the default document language. The default language is \fBen\fP.
.IP "\fBLC_CTYPE\fP=\fBiso-8859-1\fP"
specifies the document character set. The default character set is ASCII.
.\"}}}
.SH AUTHOR \"{{{
This program is GNU software, copyright 1997\(en2007 Michael Haardt <michael@moria.de>.
.PP
It contains contributions by Jason Petrone <jpetrone@acm.org>,
Uschi Stegemeier <uschi@morwain.de> and Hans Lodder.
.PP
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
.PP
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.PP
You should have received a copy of the GNU General Public License along
with this program. If not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
.\"}}}
.SH HISTORY \"{{{
There has been a style command on old UNIX systems, which is now part
of the AT&T DWB package. The original version was bound to roff by
enforcing a call to deroff.
.\"}}}
.SH "SEE ALSO" \"{{{
deroff(1), diction(1)
.P
Cherry, L.L.; Vesterman, W.: \fIWriting Tools\(emThe STYLE and DICTION
programs\fP, Computer Science Technical Report 91, Bell Laboratories,
Murray Hill, N.J. (1981), republished as part of the 4.4BSD User's
Supplementary Documents by O'Reilly.
.P
Coleman, M. and Liau,T.L. (1975). 'A computer readability formula designed for
machine scoring', Journal of Applied Psychology, 60(2), 283-284.
.\"
.\" De Vries, Hugo: \fIReading Ease@WWW\fP, http://www.shlrc.mq.edu.au/~hdevries/RE.html
.\"
.\" Norbert Groeben: Leserpsychologie: Textverst�ndnis - Textverst�ndlichkeit
.\" M�nster, 1982.
.\"}}}
|