public class AuthorMatchers extends Object
| Constructor and Description |
|---|
AuthorMatchers() |
| Modifier and Type | Method and Description |
|---|---|
static <BA,EA> List<AuthorMatch<BA,EA>> |
findMatches(List<BA> base_authors,
List<EA> enrichment_authors,
List<AuthorMatcherStep<BA,EA>> steps)
Finds matches between a list of base authors and a list of enriching authors using a sequence of matching steps.
|
static boolean |
matchEqualsIgnoreCase(String a1,
String a2)
Checks whether two author names are equal, ignoring case differences.
|
static Optional<Double> |
matchOrderedTokenAndAbbreviations(String a1,
String a2)
Checks whether two author names match based on ordered tokens and abbreviations.
|
static List<String> |
removeMatches(List<String> base_authors,
List<String> enriching_authors,
java.util.function.BiFunction<String,String,Boolean> matchingFunc)
Removes matching authors from two lists using a custom matching function.
|
public static boolean matchEqualsIgnoreCase(String a1, String a2)
a1 - The first author name.a2 - The second author name.true if the names are equal (case-insensitive), otherwise false.public static Optional<Double> matchOrderedTokenAndAbbreviations(String a1, String a2)
This method leverages the OrderedTokenAndAbbreviationsMatcher to compare names
by considering token order and abbreviation expansion.
a1 - The first author name.a2 - The second author name.Optional<Double> with a confidence score (1.0 if a match is found), or empty if no match.public static List<String> removeMatches(List<String> base_authors, List<String> enriching_authors, java.util.function.BiFunction<String,String,Boolean> matchingFunc)
This method iterates through the lists of base authors and enriching authors, applying the given matching function to determine matches. If a match is found, both elements are removed from their respective lists.
base_authors - The list of base authors.enriching_authors - The list of enriching authors.matchingFunc - A function that determines whether two author names match.public static <BA,EA> List<AuthorMatch<BA,EA>> findMatches(List<BA> base_authors, List<EA> enrichment_authors, List<AuthorMatcherStep<BA,EA>> steps)
Each step in the list of AuthorMatcherStep objects applies a specific matching strategy. The result
is a list of successful matches.
BA - The type representing the base author data.EA - The type representing the enriching author data.base_authors - The list of base authors.enrichment_authors - The list of enriching authors.steps - The list of matching steps to apply.AuthorMatch objects representing the matches found.Copyright © 2026. All Rights Reserved.