namegen: try to generate words with plausible endings

If generated word does not end in a run of letters that could end a word
(i.e. that appears at the end of a word in the source), get another one.

But be sure not to run in an endless loop...
namegen: add comments for godoc