This contains my bachelors thesis and associated tex files, code snippets and maybe more. Topic: Data Movement in Heterogeneous Memories with Intel Data Streaming Accelerator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

390 lines
12 KiB

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