4 ms·
Yes, I think you could use HumanifyJS for that. The way it works is that: 1. I ask LLM to describe what the meaning of the variable in the surrounding code 2.
by jehna1 2y ago
Yes, I think you could use HumanifyJS for that. The way it works is that:
1. I ask LLM to describe what the meaning of the variable in the surrounding code
2. Given just the description, I ask the LLM to come up with the best possible variable name
You can check the source code for the actual prompts:
https://github.com/jehna/humanify/blob/eeff3f8b4f76d40adb11663ff8805056c98e2ce1/src/plugins/local-llm-rename/unminify-variable-name.ts#L14-L26 https://github.com/jehna/humanify/blob/eeff3f8b4f76d40adb116...