This project has moved and is read-only. For the latest updates, please go here.
Each strength of phrase corresponds a list of clauses with probabilities for each word within those clauses. (You can see the definitions based on Clause.CreatePhraseDescription() in code). These can be defined using a basic textual syntax.

Normal Strength

Noun = {
    Adjective->0, NoAdjective->1,
    NoArticle->5, DefiniteArticle->4, IndefiniteArticle->4, Demonstrative->0, PersonalPronoun->2,
    Plural->0, Single->1,
    Preposition->0, NoPreposition->1,
 }

Verb = {
    Adverb->0, NoAdverb->1,
    Present->10, Past->8, Future->8, ContinuousPast->0, Continuous->0, Perfect->0, Subjunctive->0,
 }

Noun = {
    Adjective->0, NoAdjective->1,
    NoArticle->5, DefiniteArticle->4, IndefiniteArticle->4, Demonstrative->0, PersonalPronoun->2,
    Plural->0, Single->1,
    Preposition->0, NoPreposition->1,
 }


There are only two clauses at the moment: Noun and Verb. And these are exclusively used in a noun, verb, noun sequence at the moment (although I have some other clauses in mind).

However, each has a variety of probabilities for words appearing within the clause. These choose between one or more options and are helpfully grouped line by line (ie: the choices are all on the same line). Setting something to zero means it can't happen, otherwise higher numbered items are more likely to occur. Just make sure something on the same line is on-zero; if the probability of everything is zero, the generator will explode spectacularly leaving a trail of burning debris all over your computer.


Noun clauses are defined as follows:
  • Optional preposition (eg: amidst)
  • Optional article, demonstrative or pronoun (eg: the)
  • Optional adjective (eg: lucid)
  • Single or plural noun (eg: sunlamps)

Verb clauses are simpler like so:
  • Optional adverb (eg: quickly)
  • The verb in some tense. The single or plural of this verb depends on the noun preceding it (subject of the verb) (eg: burgles).

The above definitions can be customised saved to a UTF8 text file and passed to the console app using the --phrase option.

Normal Strength

Noun = {
    Adjective->0, NoAdjective->1,
    NoArticle->5, DefiniteArticle->4, IndefiniteArticle->4, Demonstrative->1, PersonalPronoun->2,
    Plural->3, Single->7,
    Preposition->0, NoPreposition->1,
 }

Verb = {
    Adverb->0, NoAdverb->1,
    Present->10, Past->10, Future->10, ContinuousPast->5, Continuous->5, Perfect->5, Subjunctive->2,
 }

Noun = {
    Adjective->3, NoAdjective->6,
    NoArticle->5, DefiniteArticle->4, IndefiniteArticle->4, Demonstrative->1, PersonalPronoun->2,
    Plural->0, Single->1,
    Preposition->0, NoPreposition->1,
 }

Insane Strength

Noun = {
    Adjective->3, NoAdjective->6,
    NoArticle->5, DefiniteArticle->4, IndefiniteArticle->4, Demonstrative->1, PersonalPronoun->2,
    Plural->3, Single->7,
    Preposition->0, NoPreposition->1,
 }

Verb = {
    Adverb->3, NoAdverb->10,
    Present->10, Past->10, Future->10, ContinuousPast->5, Continuous->5, Perfect->5, Subjunctive->5,
 }

Noun = {
    Adjective->3, NoAdjective->6,
    NoArticle->5, DefiniteArticle->4, IndefiniteArticle->4, Demonstrative->1, PersonalPronoun->2,
    Plural->3, Single->7,
    Preposition->2, NoPreposition->8,
 }

Last edited Nov 18, 2011 at 10:46 AM by ligos, version 2

Comments

MrYutz Aug 28, 2013 at 8:05 AM 
How do you force numbers into the phrases?