How to use extracted %^{keywords} from pdf as seperate filetags in note

I am trying to write a function to split the authors as you suggested in here. Can you please explain what exactly is my function’s input?