Yes, your function as a good example. I'd recommend names because the user will see them in the text they are editing. For users it is helpful if they are meaningful so they can write their paragraph naturally choosing the fields they want to use as they see fit.
The user does not need to be...