tt icon indicating copy to clipboard operation
tt copied to clipboard

feat: add random punctuation to generated word lists and update documentation to reflect this behavior

Open johnny603 opened this issue 7 months ago • 2 comments

johnny603 avatar May 27 '25 17:05 johnny603

I tried this and it adds punctuation to every word, which I don't think is natural:

image

Maybe every 6 or so words would be better? Ideally it would be an option along with turning this feature on and off.

Thanks!

EDIT, this seems to work:

		// Only add punctuation if:
		// - it's the 6th word in a group (i+1 % 6 == 0)
		// - and NOT the last word overall
		if (i+1)%6 == 0 && i != n-1 {
			punct = punctuations[rand.Int()%len(punctuations)]
		}

David-Else avatar Jun 11 '25 18:06 David-Else

I updated it with https://github.com/lemnos/tt/pull/65

David-Else avatar Nov 14 '25 10:11 David-Else