code: public static Map<String, String> toMap(String[]... wordMappings) {
      Map<String, String> mappings = new HashMap<String, String>();
      for (int i = 0; i < wordMappings.length; i++) {
        String singular = wordMappings[i][0];
        String plural = wordMappings[i][1];
        mappings.put(singular, plural);
      }
      return mappings;
    }
docs: <p>
  toMap.
  </p>
  
  @param wordMappings an array of {@link java.lang.String} objects.
  @return a {@link java.util.Map} object.