Skip to content

Move the random name word lists into their own file - #11

Merged
7akob merged 1 commit into
mainfrom
extract-name-lists
Aug 31, 2026
Merged

Move the random name word lists into their own file#11
7akob merged 1 commit into
mainfrom
extract-name-lists

Conversation

@7akob

@7akob 7akob commented Aug 31, 2026

Copy link
Copy Markdown
Owner

Preparation for the word list contributor issue.

The adjective and noun lists move out of script.js into public/names.js, one word per line and alphabetical, so adding words is a self-contained change that touches no logic and does not collide with other pull requests doing the same.

NAME_ANIMALS becomes NAME_NOUNS, since the list is meant to grow past animals. The file header carries the rules for adding a word, including the nine character budget that keeps a generated name inside the twenty character cap both the client and the server enforce.

names.js joins the service worker shell and npm test, and the cache version bumps so the new file is picked up.

No behaviour change: names generate and persist exactly as before.

The adjective and noun lists move from script.js to public/names.js, one
word per line and alphabetical, so that adding words is a self-contained
change that does not touch any logic and does not collide with other pull
requests doing the same.

NAME_ANIMALS becomes NAME_NOUNS, since the list is meant to grow past
animals. The file header carries the rules for adding a word, including
the nine character budget that keeps a generated name inside the twenty
character cap the client and server both enforce.

names.js joins the service worker shell and the syntax check, and the
cache version bumps so the new file is picked up.
@7akob
7akob merged commit 9075d6a into main Aug 31, 2026
1 check passed
@7akob
7akob deleted the extract-name-lists branch August 31, 2026 11:56
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.

1 participant