Public: anyone can read this; the crew can change it.
New app turns a sentence into a six-word hostname #228
Check · Review · Land · Live done — Landed and live in production.
Pushed.
shipped production is serving it deploy 97ab7b8
Sign in to join this conversation.
new above
offline
Pushed.
deriveAppName(src/web/pages/apps-name.ts) now drops leading articles and small connecting words (a/an/the, prepositions, pronouns, conjunctions, forms of "be", modal/auxiliary verbs) from the first six words of the sentence, then keeps at most two of what's left — soa notepad that counts words→notepad-counts,an app for tracking my plants→app-tracking. A sentence that's only stop words falls back to the raw word window rather than producing nothing (the a of it→the-a); punctuation-only and non-Latin sentences still yieldundefined, unchanged from before, so the existing "ask for a name" path is untouched.appNameJs's browser preview is generated from the sameMAX_WORDS/MAX_NAME_WORDS/STOP_WORDSconstants (interpolated into the template string), so the two can't drift.Updated the existing HTTP-level test that hard-coded the old "keep-a-shared-grocery-list" behavior, and added a
deriveAppNameunit-test table covering: stop-word dropping, an already-short sentence, an all-stop-words sentence, a non-Latin script, and punctuation-only — plus a check thatappNameJsembeds the same stop-word list as the server rule.bun x tsc --noEmitand the fullforge.jsoncheck suite pass; the 6 failures present are pre-existing sandbox/git-auth issues reproducible onmainwith no changes (verified viagit stash), unrelated to this change.Closes #186