Yakoob on 11/4/2014 at 03:49
ha, that's neat! mind sharing the big picture of how your algorithm works? I'm particularily curious about the other more elaborate phrases in the "report" or 'ggeasy" sections.
Do you just have a sentence template made of a few parts (You [NOUN], [VERB] [DESCRPTION] etc.) and a list of potential fillers for each part chosen randomly? Or something more eloquent?
Nameless Voice on 11/4/2014 at 15:32
It's quite similar to that. Each of the sentences are built out of templates, randomly picked from a list, and each template can contain references to other templates.
Some examples from the template file:
Code:
[insult]
{you} {maininsult}
{your} {insultadjective} and {insultadjective} {existence} is {apointlessthing}
[you]
you
you, {youpostfix},
{prefix}, you
[maininsult]
{remindmeof} a {insultadjective} {insultnoun:->noun}. I {hate} {!buffer,noun:s}
{are2} {arandominsult}
[arandominsult]
a {randominsult}
[randominsult]
{insultadjective} {insultnoun}
{insultadjective} {insultnounrecursive}
{insultadjective} {insultnoun}, {insultdescription},
[insultadjective]
hideous
vulgar
disgusting
{insultnoun}-snouted
[insultnoun]
beggar
troll
herring
troglodyte
[insultnounrecursive]
{descendant} of {arandominsult}
wart on {arandominsult}
It also has some more advanced sentence features, such as buffering and pluralisation:
Code:
{remindmeof} a {insultadjective} {insultnoun:->noun}. I {hate} {!buffer,noun:s}
Here, it's inventing an insultnoun and placing it into the "noun" buffer. Later on, it pulls the word from the "noun" buffer ("!buffer,noun") and pluralises it (":s")
It also tries to clean up the sentences afterwards - fix odd punctuation (e.g. multiple commas), fix a/an (which doesn't always work because the rules are complex; "an hour", "a hamster"), capitalise, and pluralise if required (again, not perfect.)
If you're interested, you can pull the full template file that it uses from (
http://nameless.zanity.net/generator/Names.txt) here.
I also have a standalone Java version of the generator that I could share.
Edit: (
http://nameless.zanity.net/generator/NameGenerator.jar) Java version (You need to put the Names.txt in the same folder)
Sliptip on 11/4/2014 at 18:18
This is genious NV! . . . now if I could just get a small talk generator to help me out at parties.
Yakoob on 11/4/2014 at 21:41
Ooh that's neat, i love how each element is a template of other elements which can be templates themselves, meaning you can have as much depth as you want recursively. Thanks for sharing :)
Mr.Duck on 12/4/2014 at 00:30
Eh, I prefer good ol'insulting in Spanish. It's almost poetic!
Me cago en las tetas de la Virgen que amamantaron al niño Jesus.
Cheers!
:cool:
rachel on 13/4/2014 at 12:55
we have this great one in French
"the days idiots can fly, you'll be squadron leader!"
Purgator on 13/4/2014 at 23:12
You, sir, are naught but an errant globule of ejaculate.
Vae on 14/4/2014 at 09:49
How dare you!...:mad:
You are reminiscent of a horrendous tick on a disgusting villain, who is so dreadful that even valueless kobolds would not allow themselves to be associated with you...:grr:
Nameless Voice on 14/4/2014 at 21:24
If you look long enough, you can probably find words or phrase structures taken from quite a few different games and films, including that one.