method for generating keywordSet node from list