Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Ngram Word Generator  (Read 1199 times)


  • Bay Watcher
  • bibo ergo sum
    • View Profile
Ngram Word Generator
« on: January 20, 2023, 02:06:17 pm »

Generates new words that look like those in existing language raws (modded or vanilla).


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.
6 out of 7 dwarves aren't Happy.
How To Generate Small Islands