got checkKeywords function