@Test public void norm() { assertNorm("zur strassen 1973", "zur Strassen, 1973"); assertNorm("zur strassen 1973", "zur Strassen , 1973"); assertNorm("zur strassen 1973", " zur Strassen, 1973"); assertNorm("zur strassen 1973", "zur Strassen,1973"); assertNorm("zur strassen 1973", "zur Strassen 1973 "); assertNorm(" ( zur strassen 1973 ) ", "(zur Strassen, 1973)"); assertNorm(" ( zur ) strassen 1973", "(zur) Strassen 1973"); assertNorm(" ( zur strassen 1973 ) markus", "(zur Strassen, 1973) Markus"); assertNorm(" ( zur strassen 1973 ) markus", "( zur Strassen 1973 ) Markus "); assertNorm(" ( zur strassen 1973 ) markus", " ( zur Strassen, 1973 )Markus"); assertNorm(" ( zur strassen 1973 ) markus", "( zur Strassen, 1973 )Markus"); assertNorm(" ( zúr straßen 1973 ) märkus", "( zúr Straßen, 1973 )Märkus"); assertNorm(" ( zur strassen 1973 ) markus robert", "( zur Strassen, 1973 ) Markus & RObert"); }
static String norm(String x) { x = ParsingJob.preClean(x, null).toLowerCase(); x = MORE_WS.matcher(x).replaceAll(" "); return MORE_WS2.matcher(x).replaceAll(" $1 "); }
ParserConfigs { static String norm(String x) { x = ParsingJob.preClean(x, null).toLowerCase(); x = MORE_WS.matcher(x).replaceAll(" "); return MORE_WS2.matcher(x).replaceAll(" $1 "); } }
ParserConfigs { static String norm(String x) { x = ParsingJob.preClean(x, null).toLowerCase(); x = MORE_WS.matcher(x).replaceAll(" "); return MORE_WS2.matcher(x).replaceAll(" $1 "); }  }
ParserConfigs { static String norm(String x) { x = ParsingJob.preClean(x, null).toLowerCase(); x = MORE_WS.matcher(x).replaceAll(" "); return MORE_WS2.matcher(x).replaceAll(" $1 "); }  ParsedName forName(String name); ParsedAuthorship forAuthorship(String authorship); void setName(String name, ParsedName pn); ParsedName deleteName(String name); void setAuthorship(String authorship, ParsedAuthorship pn); ParsedAuthorship deleteAuthorship(String authorship); }
ParserConfigs { static String norm(String x) { x = ParsingJob.preClean(x, null).toLowerCase(); x = MORE_WS.matcher(x).replaceAll(" "); return MORE_WS2.matcher(x).replaceAll(" $1 "); }  ParsedName forName(String name); ParsedAuthorship forAuthorship(String authorship); void setName(String name, ParsedName pn); ParsedName deleteName(String name); void setAuthorship(String authorship, ParsedAuthorship pn); ParsedAuthorship deleteAuthorship(String authorship);  }