klyn.code.LanguageProfile.isQueryKeyword
method
public isQueryKeyword(word as String) as Boolean
Description

Checks in $O(1)$ whether word is a contextual query keyword.

Parameters
ParameterDescription
wordToken text to test.
Returns

true if word is a query keyword.

Example
import klyn.code

p = LanguageProfile("klyn", "Klyn").withQueryKeywords(["select", "from"])
assert p.isQueryKeyword("select")