public isQueryKeyword(word as String) as Boolean
Checks in $O(1)$ whether word is a contextual query keyword.
| Parameter | Description |
|---|---|
word | Token text to test. |
true if word is a query keyword.
import klyn.code
p = LanguageProfile("klyn", "Klyn").withQueryKeywords(["select", "from"])
assert p.isQueryKeyword("select")