added `extractKeywords()` function