|
|
1.1 ! root 1: .id NOTICE-NOT TO BE DISCLOSED OUTSIDE BELL SYS EXCEPT UNDER WRITTEN AGRMT ! 2: .id Writer's Workbench version 2.1, January 1981 ! 3: .TH SYL 1 ! 4: .SH NAME ! 5: syl \- syllable counter ! 6: .SH SYNOPSIS ! 7: .B syl ! 8: [ ! 9: .B \-flags ! 10: ][ ! 11: .B \-ver ! 12: ] ! 13: [ ! 14: .BR \- num ! 15: ][ file ... ] ! 16: .SH DESCRIPTION ! 17: .I Syl ! 18: counts the number of syllables in each word in the input text. ! 19: The input text can be a file, or words typed in at the terminal. ! 20: .I Syl ! 21: prints each unique word in the file preceded by its syllable count, ! 22: with the words ordered alphabetically within each syllable category. ! 23: That is, all one-syllable words are printed first, in alphabetical order, ! 24: followed by the two-syllable words, and so on. ! 25: .PP ! 26: One option is available: ! 27: .RS 5 ! 28: .TP 9 ! 29: .BI \- "num" ! 30: only print words that have at least ! 31: .I num ! 32: syllables, where ! 33: .I num ! 34: is an integer. ! 35: .RE ! 36: .PP ! 37: To use ! 38: .I syl ! 39: interactively, type ! 40: .B syl ! 41: (carriage return), ! 42: then type in the word or words to be counted on the next line. ! 43: .I Syl ! 44: will print the syllable count for each word. ! 45: .PP ! 46: Two options give information about the program: ! 47: .RS 5 ! 48: .TP 7 ! 49: .B \-flags ! 50: print the command synopsis line (see above) ! 51: showing command flags and options, ! 52: then exit. ! 53: .TP ! 54: .B \-ver ! 55: print the Writer's Workbench version number of the command, then exit. ! 56: .RE ! 57: .SH EXAMPLES ! 58: The command: ! 59: .RS 5 ! 60: .B "syl -5 filename" ! 61: .br ! 62: .RE ! 63: will print all the words in ! 64: .I filename ! 65: that have five syllables or more. ! 66: .PP ! 67: The sequence: ! 68: .RS 5 ! 69: .BR syl " (carriage return)" ! 70: .br ! 71: .B "Who needs a dictionary" ! 72: .br ! 73: .RE ! 74: will print the syllable counts for each word in the line. ! 75: When finished, type "control-d." ! 76: .SH BUGS ! 77: Because there are minor rules and exceptions in English, ! 78: not covered by the ! 79: .I syl ! 80: program, ! 81: the program is about 98% accurate. ! 82: .SH SUPPORT ! 83: .IR "COMPONENT NAME: " "Writer's Workbench" ! 84: .br ! 85: .IR "APPROVAL AUTHORITY: " "Div 452" ! 86: .br ! 87: .IR "STATUS: " Standard ! 88: .br ! 89: .IR "SUPPLIER: " "Dept 45271" ! 90: .br ! 91: .IR "USER INTERFACE: " "Stacey Keenan, Dept 45271, PY x3733" ! 92: .br ! 93: .IR "SUPPORT LEVEL: " "Class B - unqualified support other than Div 452"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.