Learn CQL on our web or YouTube channel.
a noun at a certain distance from a verb | [tag="N.*"] [ ]{0,3} [tag="V.*"] |
a noun and verb with exactly one token in between | [tag="N.*"] [ ] [tag="V.*"] |
a noun at a certain distance from a verb inside the same sentence |
[tag="N.*"] [ ]{0,3} [tag="V.*"] within |
big dog or wolf | ([lc="big"] [lc="dog"])|[lc="wolf"] |
big dog or big wolf | [lc="big"] [lc="dog|wolf"] |
mistake | correction | explanation |
---|---|---|
[lemma="children"] | [lemma="child"] | children is not a lemma |
[word="Hello!"] | [word="Hello"] [word="\!"] | punctuation is a separate token and must be escaped |
[word="Hello "] | [word="Hello"] | tokens cannot contain spaces |
[tag="V.*"] [] [lc="cat"] within <s> | [tag="V.*"] [] [lc="cat"] within <s/> | a structure needs the "whole" option to work with within and containg |