In English you have words like "badge" which are typically a noun, but they can also be verbs, "They need to badge in" to use their keycard to get in. Shortly, "Badge in please". You can have other ones that are verbs but also nouns, like "lock". "Here is the lock" as a noun, and "Please lock the car door" is a verb.
Google translate says 锁 is "lock, n.", and 锁 as "lock, v.", so the same word/character for both like in English, 锁. It says 徽 is "badge, n.", but doesn't provide a verb for badge. Another word with different noun/verb forms is "mark", as in 痕 for "mark, n.", and 标 for "mark, v.", so 痕 vs. 标.
I am wondering from a programming perspective how variable names can be written down. If I create a "badge" object in programming, then I would call it 徽. But if I have a function "badge" that does the badging in, I would think I could also call it 徽. Or if not, my question is how you would do this. I don't speak Chinese yet fyi, so be gentle. If it is okay to use nouns as verbs, especially if there is no verb form for a noun (or vice versa, if there is no noun form for a verb).
Likewise, if I have an object called "mark", I could also have a function called "mark" that creates a marking. In Chinese I am wondering if I could use just one form of the concept, such as the noun form, for both, or the verb form for both. So "mark object" would be 痕, while "do mark" would also be 痕. Or perhaps the other way around, "mark object" would be 标, while "do mark" would also be 标. The question here is if this would make sense. If you can use a verb as a noun or a noun as a verb in Chinese essentially. If it would make sense. Or no, I must do "mark object" as 痕, while "do mark" is 标.
If you can, well great, the question then is if I must use the noun form for both, or the verb form for both, or if it doesn't matter.
If you can't, then I'm wondering why not. Wondering perhaps how it comes across. If it comes across as "weird" or "jarring", or does it still come across as understandable/interpretable, or if it is really confusing.