#include <stdio.h>#include <ctype.h>#include <pwd.h>

Go to the source code of this file.
Defines | |
| #define | PICK1(list) list[random()%(sizeof (list) / sizeof (char *))] |
| #define | isvowel(c) ((c)=='a'||(c)=='e'||(c)=='i'||(c)=='o'||(c)=='u') |
| #define | PRESENT 1 |
| #define | PAST 2 |
Functions | |
| char * | index (s, c) |
| long | random () |
| int | srandom (int i) |
| main (argc, char **argv) | |
| title (char *buf) | |
| author (char *buf) | |
| sentence (char *buf) | |
| nounphr (char *buf) | |
| attribute (char *buf) | |
| be (char *buf) | |
| predicate (char *buf) | |
| put_clause (char *buf) | |
| output (char *bufbuf) | |
Variables | |
| char * | attributes [] |
| char * | predicates [] |
| char * | nouns [] |
| char * | adverbs [] |
| char * | hedge [] |
| char * | clause [] |
| char * | prep [] |
| char * | pred_prep [] |
| int | Lpos |
| int | Tense |
| int | Intitle |
| int | Inclause |
| int | Inpred |
| #define isvowel | ( | c | ) | ((c)=='a'||(c)=='e'||(c)=='i'||(c)=='o'||(c)=='u') |
Definition at line 16 of file rant.c.
Referenced by rant::attribute(), attribute(), rant::nounphr(), and nounphr().
| #define PAST 2 |
| #define PICK1 | ( | list | ) | list[random()%(sizeof (list) / sizeof (char *))] |
Definition at line 15 of file rant.c.
Referenced by rant::attribute(), attribute(), nounphr(), rant::predicate(), predicate(), rant::put_clause(), put_clause(), and title().
| #define PRESENT 1 |
Definition at line 18 of file rant.c.
Referenced by rant::be(), be(), rant::put_clause(), and put_clause().
| attribute | ( | char * | buf | ) |
| author | ( | char * | buf | ) |
| be | ( | char * | buf | ) |
| char* index | ( | s | , | |
| c | ||||
| ) |
Definition at line 21 of file rant.c.
Referenced by rant::attribute(), attribute(), author(), rant::nounphr(), nounphr(), rant::predicate(), and predicate().
| main | ( | argc | , | |
| char ** | argv | |||
| ) |
| nounphr | ( | char * | buf | ) |
Definition at line 1675 of file rant.c.
References attribute(), index(), Inpred, Intitle, isvowel, nouns, PICK1, prep, and random().
Referenced by nounphr(), predicate(), sentence(), and title().
| output | ( | char * | bufbuf | ) |
Definition at line 1768 of file rant.c.
Referenced by page_paragraph::emit(), mail_functor::find(), main(), show_page::para_emitDetail(), and title().
| predicate | ( | char * | buf | ) |
| put_clause | ( | char * | buf | ) |
| long random | ( | ) |
Definition at line 22 of file rant.c.
Referenced by rant::attribute(), attribute(), rant::be(), be(), main(), rant::nounphr(), nounphr(), rant::predicate(), predicate(), rant::put_clause(), put_clause(), and sentence().
| sentence | ( | char * | buf | ) |
Definition at line 1665 of file rant.c.
References be(), nounphr(), predicate(), put_clause(), and random().
Referenced by main(), and put_clause().
| title | ( | char * | buf | ) |
Definition at line 1620 of file rant.c.
References attribute(), Intitle, nounphr(), nouns, output(), PICK1, and prep.
Referenced by cgiTests(), filePicker::fileList(), and main().
| char* adverbs[] |
| char* attributes[] |
Definition at line 26 of file rant.c.
Referenced by attribute(), checksEntry(), ckboxesEntry(), cmboEntry(), cmboManualEntry(), main(), forms_base::makeCheckBoxes(), forms_base::makeComboBox(), forms_base::makeManualComboBox(), forms_base::makeRadios(), and radioEntry().
| char* clause[] |
Initial value:
{
"although","even though","despite the fact that",
"because","due to the fact that","since",
"if","any time that","in the case that",
"as a consequence of the fact that",
"as regards the fact that", "as a desirable benefit of the fact that",
"with reference to the fact that", "as long as",
"as an important essential of the fact that",
"in conjunction with the fact that", "in the light of the fact that",
"if","if","if","if", "leaving out of consideration the fact that",
"just as", "inasmuch as","until such time as",
"as soon as","being as","in the same way as",
"with the exception of the fact that", "notwithstanding the fact that",
"on the grounds that", "on the basis of the fact that",
"persuant to the fact that", "although it seems apparent that",
"with regard to the fact that", "as can be seen from the fact that",
"as", "although","even though","despite the fact that",
"for the simple reason that", "because","due to the fact that","since",
"whether or not", "inasmuch as", "as"
}
Definition at line 1515 of file rant.c.
Referenced by page::createPageMenus(), Promotion_form::dbf_action(), Report_Parameters_form::get(), Proofing_Obj::makeProof(), document_list_functor::operator()(), ItemDetail::operator=(), put_clause(), Session_Obj::Session_Obj(), and proofs::showOrderedItems().
| char* hedge[] |
Initial value:
{
"it is easy to see that", "it is a basic fact that", "trivially,",
"it can be shown that", "it is obvious that","it is not unimportant that",
"it is easy to overlook the fact that",
"it is within the realm of possibility that", "it is apparent that",
"this is indicative of the fact that",
"this is in substantial agreement with the fact that",
"this demonstrates the fact that",
"this leaves out of consideration the fact that",
"it is of the utmost importance that", "the truth is that",
"the fact is that", "it turns out that","it will turn out to be true that",
"it should be noted that", "it stands to reason that",
"it would not be unreasonable to assume that",
"it is interesting to note that",
"it is intuitively clear that",
"it is intuitively clear that",
"the reason for this is that",
"it seems natural that",
}
Definition at line 1495 of file rant.c.
Referenced by put_clause().
| int Inclause |
| int Inpred |
| int Intitle |
| char* pred_prep[] |
Initial value:
{
"in","near","above","below","beyond",
"centered around","centered about",
"in close proximity to","following after",
"in conflict with","in conjunction with",
"in the area of","in the neighborhood of","in the proximity of",
"in the field of",
"giving rise to","based upon","being caused by",
"being effectuated by",
"connected up to","exhibiting a tendency towards",
"being facilitated by",
"impacting","impacting upon",
"being joined together with","being merged together with",
"in the vicinity of","at"
}
Definition at line 1555 of file rant.c.
Referenced by predicate().
| char* predicates[] |
| char* prep[] |
Initial value:
{
"across","by","in","of","near","under","over",
"below","behind","of","of","of","of",
"centered around",
"in close proximity to","following after",
"in conflict with","in conjunction with",
"in the area of","in the neighborhood of","in the proximity of",
"for the purpose of",
"giving rise to","based upon","being caused by", "of","of","of","of",
"being used with",
"being collected together with","being combined together with",
"connected up to","exhibiting a tendency towards",
"being employed with",
"impacting upon",
"being joined together with","being merged together with",
"in the vicinity of", "to","at","by","from","with","for",
"based upon","based upon","based upon",
}
1.5.5