AI variable name generator
Describe it in Chinese or English, get idiomatic camelCase, snake_case and PascalCase names.
Your key stays in your browser.It goes straight to the provider, never to our servers, and we neither log nor keep it. Use a dedicated key with a spending cap, and delete it in the provider's dashboard when you are done.
Input
Result
The result will appear here.Naming is the famously hard part, and harder still when you think in Chinese and write code in English: literal translation gives userLastOnceLoginTime, pinyin gives dingdanList. Describe what the variable holds or what the function does, in any language, and get five to eight names a native English-speaking developer would use, with a short reason for each and one recommendation. It solves the problem unbug/codelf solves by searching GitHub for how others named the same thing, but starts from your meaning instead of your keywords.
How it works
- The kind decides the grammar: booleans become is/has/can questions, functions start with a verb, constants are UPPER_SNAKE_CASE, database columns are snake_case.
- Domain vocabulary is mapped to the English term the industry uses — 退款 is refund, 发货 is ship or fulfil, 验证码 is verification code or OTP.
- An Avoid note flags tempting wrong names, such as a word-for-word translation or pinyin, when one is likely.
Where your data goes
With your own key, what you type and the key go from your browser straight to the provider you choose; neither passes through Hysen Labs. In hosted mode, your text goes through our server to our provider (DeepSeek) and is billed in credits; we keep the token counts and cost of each run for billing, never the text itself or the answer. How the provider handles the text is governed by its own privacy policy.
This tool handles keys and credentials, so nothing about a run is saved, not even to your own history.
About your API key
We do not collect, store or leak your key: it lives only in this page's memory (unless you tick “remember in this tab”) and is gone when you close it. Still, treat any key you have pasted into a web page with care — create a dedicated key with a spending cap for use here, and delete or rotate it in your provider's dashboard when you are done.
What it costs
This tool is free, with no sign-in and no points.
Common questions
- Why not just use a translator?
- A translator renders words, not meaning, and knows nothing about programming conventions. "是否已实名认证" translated is "whether real-name authentication", while the name you want is isIdentityVerified or hasVerifiedIdentity.
- Can I describe several variables at once?
- Yes. Put each on its own line; if the description covers several different things you get a separate table for each. For a single important name, describe it in one sentence with its context — what module it lives in and what it is compared against.
- What does it cost, and where does the text go?
- The tool is free; each request uses your own API key and goes directly from your browser to the provider you chose. A naming request is tiny, so a key with a one-dollar limit lasts a long time — and you can delete it whenever you like.
The open-source behind it
This tool is a self-contained implementation. unbug/codelf (Say No To Suicide Public License 1.0) does the same job as a library — if you need this behaviour inside your own program, start there rather than calling a web page.
unbug/codelfAlso known as
- variable name generator
- naming variables ai
- function name generator
- codelf alternative
- chinese to variable name