most of the time the game will take 3 letters from your name and try to match it to a women's name, but occasionally it will just pick one at random. Also if you get to the doll ending that name can never be used again. There is also some noise attributed so you won't constantly get the same name if your restart.