<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Dear all, <br>
</p>
<p>I've been trying to create a macro that can classify collocates
in terms of their syntactic functions (i.e. subject, direct,
indirect object) - something similar to WordSketch in SE. SE uses
numbers to mark specific functions. <br>
</p>
<p>In the following example "2:" indicates that the final noun in
this query serves as the head of the object noun phrase.<br>
</p>
<pre class="wiki">1:"VB.?" [tag="DT|PRP$"]{0,1} "JJ.?"{0,3} "NN.*"{0,2} 2:"NN.*"
</pre>
<p>Here is another example with an explanation from SE.</p>
<pre class="wiki"> 2:"NN.*" [tag="RB"|tag="VM"]{0,4} [lempos="be-v"] 1:"VBN"
Here the verb in the passive construction (that is, a past participle following the verb “be”) is again marked as the keyword
with the prefix “1:”. The subject is marked with the prefix “2:” and is thus taken to be the underlying object of the verb. Between the subject and the verb “be” we allow the possibility of a string of adverbs (“RB”) and/or modal verbs (“VM”).
</pre>
<p>Is there a way in CQP macros to mark similar function - for
example a noun as a head of an object noun phrase? <br>
</p>
<p><br>
</p>
<p>Thanks for help!</p>
<p><br>
</p>
<p>Aleks<br>
</p>
<pre class="wiki">
</pre>
<p><br>
</p>
</body>
</html>