<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Brilliant! What a great tool! Thank you, Stephanie. I didn't realise
that the constraint could be formulated with hw and the query with
pos, for instance.<br>
Best wishes,<br>
Graham.<br>
<br>
<div class="moz-cite-prefix">Le 08/04/2026 à 09:00, Stephanie Evert
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:8AE9F242-0141-4B7F-B7F9-D1C203FB999F@collocations.de">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<table class="warning-bandeau-table"
style="font-size: 11px;border:solid 1px red; border-radius: 0.5rem; overflow: hidden; margin-top: 10px"
border="0" cellspacing="0" cellpadding="0" align="left"
width="100%">
<tbody>
<tr>
<td style="background: #CCCCCC ;word-wrap:break-word">
<div style="color:#222222;text-align:center;padding:2pt">
<p style="color:#222222;"> <span
style="font-size:25px;line-height: 0;position:relative;top:5px;">⚠</span>
Ce courrier est envoyé par un correspondant externe</p>
</div>
</td>
</tr>
</tbody>
</table>
Hi Graham,
<div><br>
</div>
<div>your query is already almost what you want, you just have to
drop the restriction to the single lemma "laugh".</div>
<div><br>
</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>n1:[pos="VV."]
[]{1,3} n2:[pos="NN."] :: n1.hw=n2.hw</div>
<div><br>
</div>
<div>Mind you, this will be slow as it has to check every possible
verb-noun combination and test whether the two lemmas happen to
be identical.</div>
<div><br>
</div>
<div>Labels like n1 and n2 can only be attached to token
descriptions and reference a corpus position, so you can't just
store the value of n1.hw and use it for the comparison later.
But in most cases, this is not a major limitation.</div>
<div><br>
</div>
<div>Alternative version of the query:</div>
<div><br>
</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>n1:[pos="VV."]
[]{1,3} [hw=n1.hw & pos="NN."] </div>
<div><br>
</div>
<div>I prefer your version with the global constraint, though,
because I find it easier to read.</div>
<div><br>
</div>
<div>Best,</div>
<div>Stephanie<br id="lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>On 7 Apr 2026, at 08:22, Graham Ranger -- UAPV via CWB
<a class="moz-txt-link-rfc2396E" href="mailto:cwb@sslmit.unibo.it"><cwb@sslmit.unibo.it></a> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<meta http-equiv="content-type"
content="text/html; charset=UTF-8">
<div> Hello to all,<br>
This question concerns the cqp syntax available on the
cqpweb interface.<br>
I'm trying to look for constructions including cognate
objects. This:<br>
<br>
n1:[hw="laugh" & pos="VV."] []{1,3} n2:[hw="laugh"
& pos="NN."]::n1.hw=n2.hw<br>
<br>
will work to give me things like "He laughed a mirthless
laugh", which is good.<br>
What I'd really like, though, is to be able to define a
variable for the first hw which coincides with the
variable for the second hw, in order to get things like
"Lucy smiled a small tight-fisted smile", "Jamie grins
his tired grin", etc. I've tried with [] and n1 <a
class="moz-txt-link-freetext" href="n2::n1=n2"
moz-do-not-send="true">n2::n1=n2</a>, and with regular
expressions, working on word and pos as well as hw and
trying to match partial strings, but either I'm missing
something or cqpweb does not allow this sort of query.<br>
Any help would as always be very much appreciated!<br>
Best wishes,<br>
Graham. </div>
_______________________________________________<br>
CWB mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a><br>
<a class="moz-txt-link-freetext" href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>