## The CorpusSearch Quick Reference Page

### To run CorpusSearch:

for automatic output file (command.out)

      .. CorpusSearch <command.q> <input-files>

for output file with your choice of name (my_name.out)

      .. CorpusSearch <command.q> <input-files> -out my_name.out

Query file names must end in ".q". Output file names must end in ".out".

### Query components:

search functions
exists | (exists anywhere in sentence)
precedes | (sister precedes)
iPrecedes | (immediately sister precedes)
anyPrecedes | (precedes anywhere)
dominates | (dominates to any generation)
iDominates | (immediately dominates)
iDomsOnly | (immediately dominates only child)
iDomsNumber# | (immediately dominates first, second, etc. child)
iDomsLast# | (immediately dominates last, second-to-last, etc. child)
DomsWords# | (dominates # of words)
iDomsTotal# | (dominates # of daughters)
column# | (searches coding node)
inID | (searches ID node)
logical operators
AND | (and-condition)
! | (not-argument)
| | (or-argument)
wild cards:
* | matches any character
# | matches any digit(s) (0, 1, ... 9)

### Command-file components:

search control commands
command | default
--- | ---
query: | required: no default
node: | required: no default
ignore_nodes: | CODE|LB|'|\"|,|E_S
add_to_ignore: | adds labels to default
define: <my.def> | includes definition file
output format commands
command | default
--- | ---
print_indices: | true
nodes_only: | true
remove_nodes: | false
only_ur_text: | false
begin_remark: <remark> end_remark | includes remark