textoplain.pl

  This script expects a LaTeX file that includes 'covington' IGT.
  The intended output is a plain text IGT, line triples: language,
  gloss, free translation.  The triples are separated by a blank line.
  
  The convington convention joins tokens in groups with { }.  The 
  output of this script removes the { } and replaces the whitespace
  within with dots.  For example:

  { she said } --> she.said

  The script replaces \textipa{\textbeltl}} with ɬ.

  The script prints warnings when things aren't pristine, but 
  often these aren't too serious.  Redirect to a logfile when 
  you run it:

  $cat inputfile.tex | perl textoplain.pl 2> log 1> out.igt


concordance.pl

  This script expect a plain text IGT file with three lines and
  counts word types and their various glosses.  The output is
  a sorted list of word types by count, under each of these items
  is a sorted list of glosses for this word type by count.

  Now you can run this program with the '-a' option to sort the 
  output by asciibetical order rather than by frequency. 

  Now you can also provide a -d dirname option which will look 
  for all *.igt files in dirname and use these as the source files.

  Catting files to STDIN still works, but -d gives you some further
  info in the concordance about which items appeard in which source
  files.

  Warnings are printed when the number of word tokens doesn't equal
  the number of glosse tokens.  You can redirect these to a log file:
  

  Examples:

  $cat infile.igt | perl concordance.pl 2> log 1> out.info

  The file out.info contains the concordance (sorted by type 
  frequency).

  $cat infile.igt | perl concordance.pl -a 2> log 1> out.info

  The file out.info contains the concordance (sorted in 
  asciibetical order).

check_odin_for_lang.sh

  To be run on patas, by someone with read permission for the ODIN dirs. 
  Accepts a string of iso639-3 lang codes separated by whitespace and 
  prints the number of IGT instances found in ODIN for that lang.

  Example:

  $./check_odin_for_lang.sh lut ang
  IGTs for [lut]: 52
  IGTs for [ang]: 431

harvest_odin_for_lang.sh
  
  To be run on patas, by someone with read permission for the ODIN dirs. 
  Accepts a string of iso639-3 lang codes separated by whitespace and 
  creates LNG.txt files that contain the IGT instances found in ODIN 
  for that lang.

  Example:

  $./harvest_odin_for_lang.sh lut ang
  Putting 52
   IGTs for [lut] in ./lut.txt ...done.
  Putting 431
   IGTs for [ang] in ./ang.txt ...done.

extract-wo

  Extracts the projected trees with funtional tags from igt.all (given
  as an argument), and prints the word-order patterns observed in the
  trees. Requires tgrep2 on PATH to run.

  Example:

  $ ./extract-wo path/to/igt.all
  svo
  sv
  svo
  vos
  ...

infer-from-counts

  Given extracted word-order patterns (e.g. from extract-wo), prints
  the inferred choices related to word-order. If a filename argument
  is not given, the patterns are assumed to come in from STDIN, one
  pattern per line.

  Example:

  $ ./extract-wo path/to/igt.all | ./infer-from-counts
  word-order=svo
