user:cqp_macros:start

CQP Macro Library

This is a little space for sharing CQP macros. Each macro here should be listed within a <file> environment that can be directly copy/pasted to a macro file which can be ready by the CQP. Each macro should be prefixed with a comment block containing the following information:

  • a short description of what the macros does
  • (if applicable) a description of the positional and structural parameters on which the macro relies
  • (if applicable) a description of the parameters and their default values (if applicable)
  • one or more examples
  • author information
  • date of the last change
# Find passive of a particular verb.
#
# Positional parameters
#	pos	Part-of-Speech (Penn Tagset as in TreeTagger)
#
# Arguments
#	$0	Additional positional attribute to match
#	$1	Pattern
#
# Example
#	/passive[lemma, know]
#
# Author: Richard Eckart
# Date:   30 Aug 2007

MACRO passive(2)
    (
        (
            [pos="(V([BH]|(B[PZDNG])))"] 
            [pos="VVN"]
        ) 
        |
        (
            [pos="VH[ZP]"] 
            [pos="VBN"]
        )
    )
    [$0="$1" & pos="VVN"]
;
  • user/cqp_macros/start.txt
  • Last modified: 2010/12/03 09:31
  • by eros