Bay 12 Games Forum

Dwarf Fortress => DF Modding => Utilities and 3rd Party Applications => Topic started by: Vattic on January 20, 2023, 02:06:17 pm

Title: Ngram Word Generator
Post by: Vattic on January 20, 2023, 02:06:17 pm
Generates new words that look like those in existing language raws (modded or vanilla).

Download (https://dffd.bay12games.com/file.php?id=16368)

I've been adding new words to the game and needed translations that fit in with the existing languages.

This is the first time I've tried releasing a Python script as a .exe so I'd be interested to know if it runs on other systems. The source is also included.

It has a few limitations, though some help the words fit in better:
- first and last few letters of each word will match an existing word
- it can't generate words smaller than 4 letters

I have plans for another generator without these limitations, but it won't be able to generate words for modded languages. Can't figure out how to extract the syllable structure from a list of words algorithmically.