code: static public void main(String[] argv) throws IOException,FileNotFoundException
      {
  	SoftDictionary m = new SoftDictionary();
  	System.out.println("loading...");
  	m.loadAliases(new File(argv[0]));
  	System.out.println("loaded...");
  	for (int i=1; i<argv.length; i++) {
  	    System.out.println("lookup: "+argv[i]);
  	    String[] f = argv[i].split(":");
  	    if (f.length==1) {
  		System.out.println(argv[i] +" => "+m.lookup(argv[i])+" at "+m.lookupDistance(argv[i]));
  	    } else {
  		System.out.println(f[1] +" => "+m.lookup(f[0],f[1])+" at "+m.lookupDistance(f[0],f[1]));
  	    }
  	}
      }
docs: Simple main for testing.