Skip to content

Conversation

@johnny603
Copy link

No description provided.

@johnny603 johnny603 mentioned this pull request May 27, 2025
@David-Else
Copy link

David-Else commented Jun 11, 2025

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
Copy link

I updated it with #65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants