NZ Town names - avoiding repeating vowels

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
tristanb
Engineer
Engineer
Posts: 11
Joined: 31 Oct 2010 05:27

NZ Town names - avoiding repeating vowels

Post by tristanb » 03 Nov 2010 09:47

Hi everyone.
I've made a quick New Zealand town name NewGRF that uses a simple list pulled from Wikipedia, but my aim is to make all the town names automatically generated.

About 60% (but I was thinking 5/8 or 3/4) of our town names are in Maori. I thought this would be good to make random names from because, sort of like Japanese, it consists of a few 'consonant-vowel' syllables e.g. Ma-ta-ka-na, Wai-he-ke. Also included are vowels that stand alone (i.e. a,e,i,o,u). This is useful for a made-up name like O-wa-ka-nu-i.

I'd like to avoid producing the same vowel in a row, and make sure there's no more than 3 vowels in a row. (To avoid something like Oaaati).

Two ways I've thought of doing this:
1. Only allowing single vowels for the first syllable, and having a greater variety of parts (i.e. "nui", "tau", "noa" will all be pre generated).
2. Having 2 different IDs, each cleverly avoiding possible repeats (so the ID with the first part option "Ma", will not have "a" as an option in the second part. An alternative ID will not have "Ma" as a first part, but have "a" as a second part.)

Obviously option 1 is easiest, but greatly increases the number of needed parts to enable places like "Taie-ri" or "Paua-nui".

I'm just checking that there isn't a "filter" option or anything I'm missing!
I'd appreciate any other input people have. I will upload the completed NewGRF if I get it working satisfactorily. (I've got some things in mind for producing the "English" NZ names, but wanna get the Maori ones sorted first.)

In my attachment note the problem towns Raaaku and Uruupa.
Attachments
maori_autogen_towns.png
Here is a screenshot of some the automated towns.
(137.09 KiB) Downloaded 2 times

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9282
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: NZ Town names - avoiding repeating vowels

Post by planetmaker » 03 Nov 2010 10:09

New Zealand town names is good news, I'll love to see them :-) I just wonder: will you include this one? :-P

I'm sure you had a look already at http://hg.openttdcoop.org/nml/raw-file/ ... town_names and possibly at one of the town name newgrfs present on the DevZone http://dev.openttdcoop.org/projects/townnames for inspiration?

IIRC you can define lists of townname parts and link them in a manner you like; thus my making different lists, you can avoid those town names you mention as undesirable. I haven't written any townnames newgrf myself, though.

tristanb
Engineer
Engineer
Posts: 11
Joined: 31 Oct 2010 05:27

Re: NZ Town names - version 0.1 beta

Post by tristanb » 06 Nov 2010 22:18

I've attached my current work in progress for NZ town names.
There's still a 5/16 chance that the town name will be a real one, I'm slowing brainstorming ideas for completely made up names that maintain some NZness about them.

Don't distribute this version, as it's nowhere near finished and also needs a bit of tidying.

So people can understand, here is my brief description of how it works.
1/2 chance of 3-4 syllable faux-maori name (ID1).
1/2 chance of other (ID2).

ID1 has four parts, the last part has ~40% chance of being blank (""). I need to remove the chance of repeat vowels from here.

ID2 has a 1/8 chance of a two syllable faux-maori name, and to avoid repeating vowels, I have split this into ID5 and ID6 (one that doesn't have the first part end in "i", the other avoids ending in "a"). Each has four parts, the first and last are separate words (e.g. ???" Beach").

ID2 has a 2/8 chance of a "famous" name, which is a 'famous' NZer with a suffix ("ston", "sville", "s Bay", etc).

The 5/8 remaining is ID3, a remnant from my original file that used real towns from a list on Wikipedia. I want to replace this with another randomly generated section.

I will tidy it up before releasing it. I'm happy to receive advice, criticism, comments about my current progress.
Attachments
nz_towns.grf
Grf file
(6.77 KiB) Downloaded 87 times
nz_towns.nfo
Nfo file
(20.06 KiB) Downloaded 96 times

tristanb
Engineer
Engineer
Posts: 11
Joined: 31 Oct 2010 05:27

Re: NZ Town names - avoiding repeating vowels

Post by tristanb » 20 Nov 2010 10:23

I'm done!

This is pretty much going to be the finished product. I'll upload it to Bananas after I've had a few days to ensure there's no glaring mistakes, and may alter some of the probabilities slightly. I won't upload any more versions to the forum.

The source is sparsely commented, but should be followable to anyone used to reading ActionF.

Tristan
Attachments
nz_towns.nfo
NFO 0.2
(29.73 KiB) Downloaded 143 times
nz_towns.grf
GRF 0.2
(10.23 KiB) Downloaded 91 times
ss.png
Screenshot including a few town names
(335.68 KiB) Downloaded 2 times

User avatar
Ammler
President
President
Posts: 953
Joined: 18 Jun 2006 18:18
Location: Switzerland
Contact:

Re: NZ Town names - avoiding repeating vowels

Post by Ammler » 29 Nov 2010 08:19

It might not have graphics in your grf, anyway this should go to the graphics section as it most probably also works in TTDP.

tristanb
Engineer
Engineer
Posts: 11
Joined: 31 Oct 2010 05:27

Re: NZ Town names - avoiding repeating vowels

Post by tristanb » 16 Dec 2010 09:50

I've uploaded it to BaNaNaS. I don't expect to edit it unless there are any major problems.

I'm not completely happy with the proportion of names of each type. About 71% of names are Maori-sounding - in reality this is about 56%. But the GRF should work well, and isn't too repetitive.

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9282
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: NZ Town names - avoiding repeating vowels

Post by planetmaker » 16 Dec 2010 10:00

IMHO it's not bad to have rather more Maori-sounding names generated than English ones. After all Maori names are what make this set unique :-) I shall definitely use it in one of my next games.

Topic moved to graphics development section as it's where NewGRF development is on-topic (also those without actual real sprites)

Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 3 guests