public static void main(String[] args) throws IOException {
        TextScanner scanner;
        Pair<String, Type> wd;

        if (args.length > 0) {
            for (String arg : args) {
                System.err.print("\r" + arg);
                scanner = new TextScanner(new File(arg));
                while ((wd = scanner.nextTypedWord()) != null) {
                    if (wd.getSecond() == Type.Word) {
                        System.out.println(wd.getFirst());
                    }
                }
            }
        } else {
            System.err.println("Usage: TextScanner file1 file2 ...");
        }
    }