make calculateKeywords method static