name-parser/src/main/java/org/gbif/nameparser/ParsingJob.java
/**
   * Splits an author team by either ; or ,
   */
Splits an author team by either ; or .
Splits an author team by either ; or .
private static List<String> splitTeam(String team) throws InterruptedException {
    if (team.contains(";")) {
      List<String> authors = Lists.newArrayList();
      for (String a : AUTHORTEAM_SEMI_SPLITTER.split(team)) {
        Matcher m = matcherInterruptable(AUTHOR_INITIAL_SWAP, a);
        if (m.find()) {
          authors.add(normAuthor(m.group(2) + " " + m.group(1), true));
        } else {
          authors.add(normAuthor(a, false));
        }
      }
      return authors;
    } else if(AUTHORTEAM_DELIMITER.matchesAnyOf(team)) {
      return sanitizeAuthors(AUTHORTEAM_SPLITTER.splitToList(team));
    } else if (findInterruptable(SPACE_AUTHORTEAM, team)){
      return sanitizeAuthors(WHITESPACE_SPLITTER.splitToList(team));
    } else {
      return Lists.newArrayList(normAuthor(team, true));
    }
  }
private static List < String > splitTeam ( String team ) throws InterruptedException { if ( team . contains ( ";" ) ) { List < String > authors = Lists . newArrayList ( ) ; for ( String a : AUTHORTEAM_SEMI_SPLITTER . split ( team ) ) { Matcher m = matcherInterruptable ( AUTHOR_INITIAL_SWAP , a ) ; if ( m . find ( ) ) { authors . add ( normAuthor ( m . group ( 2 ) + " " + m . group ( 1 ) , true ) ) ; } else { authors . add ( normAuthor ( a , false ) ) ; } } return authors ; } else if ( AUTHORTEAM_DELIMITER . matchesAnyOf ( team ) ) { return sanitizeAuthors ( AUTHORTEAM_SPLITTER . splitToList ( team ) ) ; } else if ( findInterruptable ( SPACE_AUTHORTEAM , team ) ) { return sanitizeAuthors ( WHITESPACE_SPLITTER . splitToList ( team ) ) ; } else { return Lists . newArrayList ( normAuthor ( team , true ) ) ; } }
Splits an author team by either ; or ,
Splits an author team by either ; or
// treat semicolon differently. Single author name can contain a comma now! // we sometimes see space delimited authorteams with the initials consistently at the end of a single author: // Balsamo M Fregni E Tongiorgi MA