Searching for a custom script for customising BOM names

Hmm… is there a way to access the routine that is responsible for the generation of the name and put in some code there for a custom script? If not, I’d like to disable the specific routine and write another one that will allow me to put in custom names based on user input.