code: private void loadDictionaries(final String inputDir) throws IOException {
      final List<File> fileList = StringUtils.getFilesInDir(new File(inputDir));
      dictNames = new ArrayList<String>(fileList.size());
      dictionaries = new ArrayList<Map<String, String>>(fileList.size());
      dictionariesIgnoreCase = new ArrayList<Map<String, String>>(
          fileList.size());
      System.err.println("\tloading dictionaries in " + inputDir + " directory");
      for (int i = 0; i < fileList.size(); ++i) {
        if (DEBUG) {
          System.err.println(
              "\tloading dictionary:...." + fileList.get(i).getCanonicalPath());
        }
        dictNames.add(fileList.get(i).getCanonicalPath());
        dictionaries.add(new HashMap<String, String>());
        dictionariesIgnoreCase.add(new HashMap<String, String>());
  
        final List<String> fileLines = Files.readLines(fileList.get(i),
            Charsets.UTF_8);
        for (final String line : fileLines) {
          final String[] lineArray = tabPattern.split(line);
          if (lineArray.length == 2) {
            dictionaries.get(i).put(lineArray[0], lineArray[1]);
            if (!line.equalsIgnoreCase("in") && !line.equalsIgnoreCase("on")
                && !line.equalsIgnoreCase("us") && !line.equalsIgnoreCase("or")
                && !line.equalsIgnoreCase("am")) {
              dictionariesIgnoreCase.get(i).put(lineArray[0].toLowerCase(),
                  lineArray[1]);
            }
          }
        }
      }
      System.err.println("found " + dictionaries.size() + " dictionaries");
    }
docs: Load the dictionaries.
  
  @param inputDir
  the input directory
  @throws IOException
  throws an exception if directory does not exist