code: private void loadDictionary(final Properties props) throws IOException {
      dictionary = new HashMap<String, String>();
      final String lang = props.getProperty("language");
      final String resourcesDirectory = props.getProperty("resourcesDirectory");
      final InputStream dictInputStream = getMultiWordDict(lang, resourcesDirectory);
      if (dictInputStream == null) {
        final String resourcesLocation = resourcesDirectory == null ? "src/main/resources" : resourcesDirectory;
        System.err.println("ERROR: Not multiword dictionary for language " + lang
            + " in " + resourcesLocation + "!!");
        System.exit(1);
      }
      final BufferedReader breader = new BufferedReader(new InputStreamReader(
          dictInputStream, Charset.forName("UTF-8")));
      String line;
      while ((line = breader.readLine()) != null) {
        final String[] lineArray = tabPattern.split(line);
        if (lineArray.length == 4) {
          final Matcher lineMatcher = linePattern.matcher(lineArray[0]
              .toLowerCase());
          dictionary.put(lineMatcher.replaceAll(" "), lineArray[2]);
        } else {
          System.err.println("WARNING: line starting with " + lineArray[0]
              + " is not well-formed; skipping!!");
        }
      }
    }
docs: Load the dictionaries.
  
  @param props
  the properties object
  @throws IOException
  if io problems