PLD: abstract project selector function to generate the string