Contents


Basic Commands

exit

quit

alias [<alias> <command>]

unalias <alias>

history

help/? [-u] [command]

run/. <command>

rusage

current [[-C class] [-L list] | list] show or set current (default) list and class:

last [-S sorton] [-F format] [-C count] [-R] [-O outfile]

-C show only count number of items
-S column to sort on
-F output format (usually "html", "ascii", or "csv")
-R reverse sort
-O write output to file

Lex commands

lex load [-qr] [<listname>] <sourcefile>

-q quiet: if list already loaded, skip on, returning 0
-r reload (with -q if list doesn't exist, skip on and try to reload anyhow

lex unload [-q] <name>...

-q quiet: if list not present, ignore

lex list [-i|-x] [-acefklnrRs] [-L list] [-O output] [-M mapexpr] [-w <word>...]

-i show from >index<
-x show from >lexical< list
-a all items/words (including non-lex and stopped)
-c show categories lexical items are members of (only with -i)
-e show all instances of word
-f show flags
-k show in context (kwic)
-l same and -n with -f
-n show item numbers, first # is first occur., second is number of occurences
-r reverse sort
-R show word roots (if mapped)
-s show stopped words
-L specify list (rather than use current default)
-O send list to <output>
-w show for specific word(s)

lex kwic [-nocN] [-O outfile] [-L list] [-M mapexpr] {-a | <word>...}

-a do all in index
-n prefix with item numbers
-N prefix with line numbers
-s do stopped terms
-c do categories

lex print [-F fmtflags] [-L] [-M mapexpr] [-O outfile]

lex plot {-c|-w} [-b #][-e #] [-d] [-L list] [-M mapexpr] [ -I infile] [-O outfile] <word>...

-w plot word (lex) positions
-c plot category positions
-b begin at word #
-e end at word #
-d dump data points in cols

lex stop [-c|-r] [-d] [-L list] [-I infile] [-O outfile] [-w <word>...]

-r reverse flags
-c clear stops
-w stop words given
-I read from stop words from input
-d dump list of stopped words

lex renumber [-asn] [-L list]

-a renumber all items in lexical list
-s renumber including stopped items
-n renumber including non-lexical items (only for completeness?)

lex grep [-i] [aceflns] [-L list] [-M mapexpr] [-O outfile] <pattern>...

-i grep through index (default is lines of text)
-a all token types
-c through categories
-e expand/enumerate through all instances
-f show flags
-l long info
-n item numbers
-s stopped items

Analysis and Statistics commands

coll [-c|-x] [-r range] [-t threshold] [-L list] [-M mapexpr] [-O outfile] [-I infile] [-F format][-S sort][-R][-C count] {-a | [-s] <word>...}

-c collocate categories
-x collocate lexical items (default)
-s when more than one argument, collocate as a set (score as a group, otherwise score first one, then the next)
-a collocate the entire lexical or category index
-r collocation range (in lexical items, left and right)
-h hash size (for perf testing)
-t threshold, score >= threshold passes
-L do for named list
-O direct output to outfile
-I read input arguments from infile
-F output format (ascii,csv,html)
-S sort (word,score,label)
-R reverse sort
-C set output count

Example:

	coll -c light
	          light       innocence  17
	          light           night   7
	          light       elevation   2
	          light             day   3
	          light            time  23
	          light          action  30
	          light          social   6
	          light           water   3
	          light           music   3
	          light           light  12
	          light          nature  21
	          light        position  17
	          light             man  27
	          light          colour  11
	          light      vegetation  12
	          light         emotion   8
	coll -cs light elevation
	        ((SET))       innocence  25
	        ((SET))           night  10
	        ((SET))       elevation   2
	        ((SET))             day   3
	        ((SET))            time  34
	        ((SET))          action  41
	        ((SET))          social   7
	        ((SET))           water   4
	        ((SET))           music   4
	        ((SET))           light  19
	        ((SET))          nature  33
	        ((SET))        position  18
	        ((SET))             man  49
	        ((SET))          colour  17
	        ((SET))      vegetation  23
	        ((SET))         emotion  15

density [-c|-x] [-t threshold] [-L list] [-M mapexpr] [-O outfile] [-I infile] [-F format][-S sort][-R][-C count] {-a | [-s] <word>...}

-c generate scores for categories
-x generate scores for lexical items
-s when more than one argument, score as a set (score as a group, otherwise score first one, then the next)
-t threshold, score >= threshold passes
-a score the entire index (lexical or category)
-L do for named list
-O direct output to outfile
-I read arguments from infile
-F output format (ascii,csv,html)
-S sort (word,(category for -ca),num,score)
-R reverse sort
-C set output count

frequency [-c[-e]|-x] [-t threshold] [-L list] [-M mapexpr] [-O outfile] [-I infile] [-F format][-S sort][-R][-C count] {-a | [-s] <word>...}

-c generate scores for categories
-e expand category to members
-x generate scores for lexical items
-s when more than one argument, score as a set (score as a group, otherwise score first one, then the next)
-t threshold; item count >= threshold passes
-n min (same as threshold)
-m max (item count <= max passes)
-a score the entire index (lexical or category)
-L do for named list
-O direct output to outfile
-I read arguments from infile
-F output format (ascii,csv,html)
-S sort (word,(category for -ca),num,score)
-R reverse sort
-C set output count
-M map expr (set range)

cstat [-t threshold] [-L list] [-M mapexpr] [-O outfile] [-F format][-S sort][-R][-C count]

-t threshold; item count >= threshold passes [NOT IMPLEMENTED]
-L do for named list
-O direct output to outfile
-F output format (ascii,csv,html)
-S sort (word,(category for -ca),num,score)
-R reverse sort
-C set output count

wordlen [-t threshold] [-m maxlen] [-F format][-S sort][-R][-C count] [-L list] [-M mapexpr] [-O outfile]

-t threshold; item count >= threshold passes [NOT IMPLEMENTED]
-m set maximum word length (default 21 chars)

markov [-dlsv] [-p #] [-c range] [-F format][-S sort][-R][-C count] [-L list] [-M mapexpr] [-O outfile]

-d dump markov state
-l list matches from comparison
-s include stopped words in selection
-v versus: show non-matchs in comparison
-p prefixes set number of prefixes (default 2)
-c range compare mapped range to specified range

Class commands

newclass <classname>

loadclass <classname> <filename>

delclass

info [<class>[[.]categ]] [-O outfile]

list [-m|-c|-u] [-flnerx] [-C class] [-O outfile] [-w <word>...]

-m by category members
-c by category
-u list words that are unbound: not members of any class (& non-stopped)
-f show flags
-n show members/category, categories/member
-l both -f and -n flags
-e enum: show subcategories and members
-r reverse sort
-x expand: show all bound lex items for subcategories
-w do only words given
-C do for class
-O send results to output

grep [-m|-c] [-flmner] [-C class] [-O outfile] <pattern>...

-m through category members
-c through categories
-f show flags
-n show members/category, categories/member
-l both -f and -n flags
-e expand: show subcategories
-r reverse sort
-C do for class
-O send results to output

spew [-O outfile] <classname>

print [-O outfile] [-s #] [-C class]

-s sub-category depth

addcat [-C <classname>] <category>...

delcat [-C <classname>] <category>...

addword [-r][-C <classname>] <category> <word>

-r if the word is a root, add all dependent forms -rr if the word has a root, retrieve it, and add all dependent forms

delword [-C <classname>] <category> <word>

bindclass <classname> <listname>

releaseclass <classname>

x close [-q] [<class>]

-q quit, abandon changes

x save [<class>]

x stats [<class>[[.]categ]] [-O outfile]

bind [<list>... <class>]

release [<list>...]

x add [-s|-r] [-l <list>] [+]<term>... [<class>.]<categ>

-l <list> - read from list
-r - use regular expression matching (grind)
-s - add categ memebers to other categ (subcategs) -plus sign at beginning of term == -s above

x merge <infile> [<class>]


Form commands

loadforms <filename>

wipeforms

list [-a|-r|-f|-o|-u] [-L list] [-O outfile] [<word>...]

-a all
-r root forms
-f assigned forms
-u unassigned forms
-o orphaned forms

print [-L list] [-O outfile] [<root>...]

addroot [-L list] [-O outfile] <root>...

delroot [-L list] [-O outfile] <root>...

addform [-r] [-L list] [-O outfile] <root> <word>...

-r automatically add root form if not exist

delform [-L list] [-O outfile] <root> <word>...

root [-L list] [-O outfile] <word>...


Range commands

list [-entl] [rangeset...]

list -T [-entl] [type...]

-e expand to show ranges in set(s)
-n show range set count
-t show range set type
-l same and -n and -t and -e
-T list range types

add

del

map {-M mapexpr | mapexpr...}

invert

min

max

count

printdef [-mc] [-O outfile] [-L list]

-m print markers
-c print counters (with no flags, default is to print both)

Data information commands ("info")

list [-O outfile] [<listname>]

class [-O outfile] [<classname>]

item [-i|-l] [-F fmtflags] [-L list] [-O ofile]

-i inum (absolute item) #
-l show line
-F choose flag formatting

lprint [-O outfile] [-d|<format_name>...]


Set commands

env <name> <value>

parser <parser_type>

kwic_context [#]

coll_context [#]

coll_threshold [#]

markov_prefixes [#]

cmap

fallthrough {yes|no}

limit <limit> [<value>|max|unlimited]

printflags {clear|<flags>|?}