metaSite/source/rant.c File Reference

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

Include dependency graph for rant.c:

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 Documentation

#define isvowel (  )     ((c)=='a'||(c)=='e'||(c)=='i'||(c)=='o'||(c)=='u')

Definition at line 16 of file rant.c.

#define PAST   2

Definition at line 19 of file rant.c.

#define PICK1 ( list   )     list[random()%(sizeof (list) / sizeof (char *))]

Definition at line 15 of file rant.c.

#define PRESENT   1

Definition at line 18 of file rant.c.


Function Documentation

attribute ( char *  buf  ) 

Definition at line 1696 of file rant.c.

References adverbs, attributes, index(), Intitle, isvowel, PICK1, and random().

author ( char *  buf  ) 

Definition at line 1638 of file rant.c.

References index().

be ( char *  buf  ) 

Definition at line 1712 of file rant.c.

References PAST, PRESENT, random(), and Tense.

char* index ( ,
 
)

Definition at line 21 of file rant.c.

main ( argc  ,
char **  argv 
)

Definition at line 1573 of file rant.c.

References author(), Lpos, output(), random(), sentence(), srandom(), Tense, and title().

nounphr ( char *  buf  ) 

Definition at line 1675 of file rant.c.

References attribute(), index(), Inpred, Intitle, isvowel, nounphr(), nouns, PICK1, prep, and random().

output ( char *  bufbuf  ) 

Definition at line 1768 of file rant.c.

References Intitle, and Lpos.

predicate ( char *  buf  ) 

Definition at line 1726 of file rant.c.

References adverbs, index(), Inpred, nounphr(), PICK1, pred_prep, predicates, and random().

put_clause ( char *  buf  ) 

Definition at line 1749 of file rant.c.

References clause, hedge, Inclause, PICK1, PRESENT, random(), sentence(), and Tense.

long random (  ) 

Definition at line 22 of file rant.c.

sentence ( char *  buf  ) 

Definition at line 1665 of file rant.c.

References be(), nounphr(), predicate(), put_clause(), and random().

int srandom ( int  i  ) 

Definition at line 23 of file rant.c.

title ( char *  buf  ) 

Definition at line 1620 of file rant.c.

References attribute(), Intitle, nounphr(), nouns, output(), PICK1, and prep.


Variable Documentation

char* adverbs[]

Definition at line 1260 of file rant.c.

char* attributes[]

Definition at line 26 of file rant.c.

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.

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.

int Inclause

Definition at line 1571 of file rant.c.

int Inpred

Definition at line 1571 of file rant.c.

int Intitle

Definition at line 1571 of file rant.c.

int Lpos

Definition at line 1571 of file rant.c.

char* nouns[]

Definition at line 526 of file rant.c.

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.

char* predicates[]

Definition at line 442 of file rant.c.

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",
}

Definition at line 1536 of file rant.c.

int Tense

Definition at line 1571 of file rant.c.


Generated on Sat Aug 15 12:47:44 2009 for w3systemsDevelopment by  doxygen 1.5.5