#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') |
| #define PICK1 | ( | list | ) | list[random()%(sizeof (list) / sizeof (char *))] |
| attribute | ( | char * | buf | ) |
| be | ( | char * | buf | ) |
| main | ( | argc | , | |
| char ** | argv | |||
| ) |
| nounphr | ( | char * | buf | ) |
| predicate | ( | char * | buf | ) |
| put_clause | ( | char * | buf | ) |
| sentence | ( | char * | buf | ) |
Definition at line 1665 of file rant.c.
References be(), nounphr(), predicate(), put_clause(), and random().
| title | ( | char * | buf | ) |
| char* attributes[] |
| 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"
}
| 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",
}
| 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"
}
| 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