PromptDev
Get naming suggestions
A prompt for turning a thing that needs a name into 8 candidates, each tagged with its naming convention and any collision risk.
Last updated
Fill in the blanks
Assembled in your browser — nothing you type is stored or sent anywhere.
Your prompt
Suggest names for a new function that retries a failed API call with exponential backoff. Context: TypeScript codebase; existing helpers are called retryRequest, withTimeout, callWithRetries.
Give exactly 8 candidates. For each one: the name, the naming convention it follows (camelCase, snake_case, a domain term, an abbreviation, etc.), and one line on any collision or confusion risk — with an existing name in the context above, a reserved word, or a near-homonym already in use. Group the candidates if some are clearly stronger fits than others, and say which one you'd pick and why. If the context doesn't give you enough to judge collisions with any confidence, say so instead of inventing a codebase you haven't seen.
Model-agnostic — works in Claude, ChatGPT, Gemini or any AI chat.
Why this prompt works
- →Fixing the count at exactly 8 forces real breadth — enough options to compare naming styles against each other, instead of settling for the first name a model reaches for.
- →Naming the convention behind each candidate is what lets you keep a codebase self-consistent, rather than quietly introducing a new casing style one function at a time.
- →Calling out collision risk by name catches the specific way generated names go wrong: one that reads fine alone but is a near-duplicate of an identifier already in use.