How to generate tags from a list of names

Handling CSV data via AppleScript is certainly attainable. Here is a simple example I wrote (though it was for a different purpose):

This is a pure AppleScript approach, though there are also other methods I could have used.