replace of calculate kws to keyword
reuse kws because keyword proved does not work effectively
Merge temp_branch: reuse kws