intra/xtrasource/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.

Referenced by rant::attribute(), attribute(), rant::nounphr(), and nounphr().

#define PAST   2

Definition at line 19 of file rant.c.

Referenced by rant::be(), and be().

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

#define PRESENT   1

Definition at line 18 of file rant.c.

Referenced by rant::be(), be(), rant::put_clause(), and put_clause().


Function Documentation

attribute ( char *  buf  ) 

Definition at line 1696 of file rant.c.

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

Referenced by nounphr(), and title().

author ( char *  buf  ) 

Definition at line 1638 of file rant.c.

References index().

Referenced by main().

be ( char *  buf  ) 

Definition at line 1712 of file rant.c.

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

Referenced by sentence().

char* index ( ,
 
)

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, nouns, PICK1, prep, and random().

Referenced by nounphr(), predicate(), sentence(), and title().

output ( char *  bufbuf  ) 

Definition at line 1768 of file rant.c.

References Intitle, and Lpos.

Referenced by page_paragraph::emit(), mail_functor::find(), main(), show_page::para_emitDetail(), and title().

predicate ( char *  buf  ) 

Definition at line 1726 of file rant.c.

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

Referenced by sentence().

put_clause ( char *  buf  ) 

Definition at line 1749 of file rant.c.

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

Referenced by sentence().

long random (  ) 

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().

int srandom ( int  i  ) 

Definition at line 23 of file rant.c.

Referenced by main().

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().


Variable Documentation

char* adverbs[]

Definition at line 1260 of file rant.c.

Referenced by attribute(), and predicate().

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

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

Definition at line 1571 of file rant.c.

Referenced by put_clause().

int Inpred

Definition at line 1571 of file rant.c.

Referenced by nounphr(), and predicate().

int Intitle

Definition at line 1571 of file rant.c.

Referenced by attribute(), nounphr(), output(), and title().

int Lpos

Definition at line 1571 of file rant.c.

Referenced by main(), and output().

char* nouns[]

Definition at line 526 of file rant.c.

Referenced by nounphr(), and title().

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[]

Definition at line 442 of file rant.c.

Referenced by predicate().

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.

Referenced by nounphr(), and title().

int Tense

Definition at line 1571 of file rant.c.

Referenced by be(), main(), and put_clause().


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