Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 3 4 [5] 6 7 ... 11

Author Topic: DFLang: generate realistic language raws, every time.  (Read 72592 times)

Danarca

  • Bay Watcher
  • [MILL_CHILD:ONLY_IF_GOOD_REASON]
    • View Profile
Re: DFLang: generate realistic language raws, every time.
« Reply #60 on: January 08, 2010, 08:05:44 am »

I agree with footkerchief, both of the parties is overreacting, and both have stated their stance on the issue of a non-"native" format.
Drop it, it seems to piss of everyone.
and thanks for the update :)

EDIT: It worked once, now I get the error again O_o
« Last Edit: January 08, 2010, 09:20:56 am by Danarca »
Logged
Clutter god the god of godly gods.
Om Nom nom nom nom
Ah yes the god of stone stockpiles, long randomly generated names, and gods.

Igfig

  • Bay Watcher
    • View Profile
Re: DFLang: generate realistic language raws, every time.
« Reply #61 on: January 08, 2010, 05:37:23 pm »

Whaaa?  The same problem in the same place?  The exact same error message?

That error message should be impossible to get now, because the fix involved deleting the offending function.

Danarca

  • Bay Watcher
  • [MILL_CHILD:ONLY_IF_GOOD_REASON]
    • View Profile
Re: DFLang: generate realistic language raws, every time.
« Reply #62 on: January 09, 2010, 07:34:50 am »

I extracted it over the old version, maybe that's why?
I'll extract it over again and see how it goes...
EDIT: Appears to work now, even though I got insufficient data on the file that worked last time :p
Weird O_o
« Last Edit: January 09, 2010, 07:37:45 am by Danarca »
Logged
Clutter god the god of godly gods.
Om Nom nom nom nom
Ah yes the god of stone stockpiles, long randomly generated names, and gods.

MC Dirty

  • Bay Watcher
    • View Profile
Re: DFLang: generate realistic language raws, every time.
« Reply #63 on: March 02, 2010, 08:38:07 pm »

<deleted>
« Last Edit: August 10, 2022, 06:26:05 pm by MC Dirty »
Logged

Acanthus117

  • Bay Watcher
  • Angry Writer
    • View Profile
Re: DFLang: generate realistic language raws, every time.
« Reply #64 on: March 02, 2010, 09:50:12 pm »

Impressive! I was gonna make a less... ridiculous sounding Orc language, but I said 'screw this when I realized at the size of the file. Thanks!
Logged
Is apparently a Lizardman. ಠ_ಠ
YOU DOUBLE PENIS
"The pessimist is either always right or pleasantly surprised; he cherishes that which is good because he knows it cannot last."

RavingManiac

  • Bay Watcher
    • View Profile
Re: DFLang: generate realistic language raws, every time.
« Reply #65 on: March 04, 2010, 07:40:06 am »

Behold, a comprehensive list of all the bigotry in the English language:

POSSIBLY NSFW
Spoiler (click to show/hide)

Have fun.
Logged
Thief:"Quiet kitty, Qui-"
Cat:"THIEF! Protect the hoard from the skulking filth!"
The resulting party killed 20 dwarves, crippled 2 more and the remaining 9 managed to get along and have a nice party.

Igfig

  • Bay Watcher
    • View Profile
Re: DFLang: generate realistic language raws, every time.
« Reply #66 on: March 04, 2010, 01:56:36 pm »

Will do.

[T_WORD:ANCIENT:gussswad]
[T_WORD:AWE-INSPIRING:bloonk]
[T_WORD:BALL:humps]
[T_WORD:BEAR_VERB:pande]
[T_WORD:BODICE:jocksuck]
[T_WORD:BRIDE:assbitbro]
[T_WORD:BRIM:hole]
[T_WORD:BROIL:dumtard]
[T_WORD:BUTTON:hungler]
[T_WORD:ZEALOT:cockmon]
[T_WORD:BRONZE:spisswaff]
[T_WORD:IMPALE:peckface]
[T_WORD:SLEEVE:fellow]
[T_WORD:GLAD:gaylit]
[T_WORD:SORCERER:dumb]
[T_WORD:WIND STORM:piss]
[T_WORD:COVEN:pricks]
[T_WORD:HUMID:bubblox]
[T_WORD:MORSEL:wetbag]

MC Dirty

  • Bay Watcher
    • View Profile
Re: DFLang: generate realistic language raws, every time.
« Reply #67 on: March 04, 2010, 06:06:05 pm »

Will do.

[T_WORD:ANCIENT:gussswad]
[T_WORD:AWE-INSPIRING:bloonk]
[T_WORD:BALL:humps]
[T_WORD:BEAR_VERB:pande]
[T_WORD:BODICE:jocksuck]
[T_WORD:BRIDE:assbitbro]
[T_WORD:BRIM:hole]
[T_WORD:BROIL:dumtard]
[T_WORD:BUTTON:hungler]
[T_WORD:ZEALOT:cockmon]
[T_WORD:BRONZE:spisswaff]
[T_WORD:IMPALE:peckface]
[T_WORD:SLEEVE:fellow]
[T_WORD:GLAD:gaylit]
[T_WORD:SORCERER:dumb]
[T_WORD:WIND STORM:piss]
[T_WORD:COVEN:pricks]
[T_WORD:HUMID:bubblox]
[T_WORD:MORSEL:wetbag]
Far too few words. But it's definitely amusing, especially because some of this... actually seems to make sense. ;D
Logged

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: DFLang: generate realistic language raws, every time.
« Reply #68 on: March 05, 2010, 01:09:37 pm »

You're a spisswaff bubblox wetbag, you dumtard peckface! >:( (( ;) ))
Spoiler (click to show/hide)
Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

Captain Mayday

  • Bay Watcher
  • A Special Kind of Terrible
    • View Profile
Re: DFLang: generate realistic language raws, every time.
« Reply #69 on: March 22, 2010, 10:40:38 am »

This is very nice!
I have a suggestion, though. Allow multiple source languages to be loaded at once. That way you can mix your flavours.

Edit: Possibly a word length limiter as well. Many of the words generated would cause immense names in DF. Not that this doesn't have a basis in real life, there are certainly cultures with that. I think it should be an option though.

By the way, does the generator go over the file again and check for duplicates?
« Last Edit: March 22, 2010, 11:02:01 am by Captain Mayday »
Logged
Why not join us on IRC? irc.newnet.net #bay12games

Igfig

  • Bay Watcher
    • View Profile
Re: DFLang: generate realistic language raws, every time.
« Reply #70 on: March 22, 2010, 05:09:13 pm »

That's a good suggestion.  So good, in fact, that I went back in time and changed v1.0 to include it. 

(If you want multiple source languages, use Ctrl+click in the Browse menu to select multiple language files.)

As for word length: there is an internal word length limiter that keeps words between 3 and 9 letters long, but I can see why you might want finer control.  I'll add a user option for that in the next version, although it may take a while; I intend to change the generation algorithm to use grammars and/or regular expressions, which means an almost complete rewrite.

The generator doesn't go over the file to check for duplicates; it actually checks for duplicates as it generates.  If you find a duplicate, something's wrong.

Arrkhal

  • Bay Watcher
  • Who modded in these flying killer attack babies???
    • View Profile
Re: DFLang: generate realistic language raws, every time.
« Reply #71 on: March 22, 2010, 06:14:55 pm »

How many parts does the program chop words into?  Seems to be only 2, 3 at the most, at present.  I've had to select word lists pretty carefully to not get excessively long words with recognizable parts.  I tried a German language one, and the Germans' love of compound words gave me some pretty crazy results.

It'd be nice if the code could be refined into a syllable detector, which then analyzes the language based on how common syllables are, where they tend to occur in the word, how often words have a particular number of syllables, etc.
Logged
In development: Arrkhal's Material and Weapon balance
Please test and let me know what still needs fixing.  And get these freakin' babies offa me!

Kaelem Gaen

  • Bay Watcher
  • And then it appeared the most terrifying creature
    • View Profile
Re: DFLang: generate realistic language raws, every time.
« Reply #72 on: March 22, 2010, 08:42:37 pm »

is DFFD down? I can't get to it. 
working now
« Last Edit: March 22, 2010, 09:59:40 pm by Kaelem Gaen »
Logged

Igfig

  • Bay Watcher
    • View Profile
Re: DFLang: generate realistic language raws, every time.
« Reply #73 on: March 23, 2010, 12:46:37 am »

The program breaks words up into their component letters, keeping track of which letters each one is followed by.  For instance, "arrkhal" would yield

^ : a
a : r, l
h : a
k : h
l : $
r : r, k

where ^ is the start of a word and $ is its end.

If your word list includes a lot of long words with similar patterns, you're likely to get a lot of long words with similar patterns. 

My plans for the next version involve ways to modify that so you can use, say, Dwarven letter-frequencies with English construction rules.  Unfortunately it's hard to make a syllable detector per se, because of differences in pronunciation (imagine trying to break feuille into syllables), but I'll certainly set it to recognize patterns on a higher level than "this letter comes after that one".

EvilCartyen

  • Bay Watcher
    • View Profile
Re: DFLang: generate realistic language raws, every time.
« Reply #74 on: March 23, 2010, 06:59:40 am »

Hmm, this is an interesting project. How is language treated/implemented in DF anyway? The only thing I've noticed is that DF seems to allow you to build and modify noun phrases - can you do other things?

It'd be really interesting to make different kinds of grammar possible, and perhaps to implement a natural language generator to write journals and other things.
Logged
Pages: 1 ... 3 4 [5] 6 7 ... 11