package org.gbif.nameparser;

import org.gbif.nameparser.api.ParsedAuthorship;
import org.gbif.nameparser.api.ParsedName;

import java.util.HashMap;
import java.util.Map;

public class ParserConfigs {

  private final Map<String, ParsedName> names = new HashMap<>();
  private final Map<String, ParsedAuthorship> authorships = new HashMap<>();

  public ParsedName forName(String name) {
    name = ParsingJob.preClean(name, null);
    return names.get(name);
  }

  public ParsedAuthorship forAuthorship(String authorship) {
    authorship = ParsingJob.preClean(authorship, null);
    return authorships.get(authorship);
  }
}

@@ -618,11 +618,513 @@
 ip);%0A  %7D
+%0A%0A  public void setName(String sciname, ParsedName pn) %7B%0A    names.put(ParsingJob.preClean(sciname, null), pn);%0A  %7D%0A%0A  public ParsedName deleteName(String name) %7B%0A    return names.remove(ParsingJob.preClean(name, null));%0A  %7D%0A%0A  public void setAuthorship(String authorship, ParsedAuthorship pn) %7B%0A    authorships.put(ParsingJob.preClean(authorship, null), pn);%0A  %7D%0A%0A  public ParsedAuthorship deleteAuthorship(String authorship) %7B%0A    return authorships.remove(ParsingJob.preClean(authorship, null));%0A  %7D
 %0A%7D%0A

Add methods to change parser override configs