| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final String | |
| private static final Pattern | |
| private static final Set | |
| private static final Pattern | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Optional | Returns: anOptional containing the extracted and trimmed string from the first set of parentheses,
or Optional.empty() if no string is foundthe string to search, must not be input)nullAttempts to extract the string enclosed in the first deepest set of parentheses from the given input string. |
| public static Set | Returns: a set of acronym candidates ordered by descending length and then lexicographically, or an empty set if no valid candidates are foundthe raw string to extract acronym candidates from, must not be input, int nullthe maximum allowed length of each candidate substring; candidates longer than this are discarded cutoff)Generates possible acronym candidates from the given input string by splitting on common delimiters and extracting substrings within the specified cutoff length. |
| private static boolean | |
| public static String | |
| private static void | |
| public static String | |
| private static String |
| DELIMITER_START | back to summary |
|---|---|
| private static final int DELIMITER_START | |
| MAX_CANDIDATES_THRESHOLD | back to summary |
|---|---|
| private static final int MAX_CANDIDATES_THRESHOLD | |
| ORDINAL_REGEX | back to summary |
|---|---|
| private static final String ORDINAL_REGEX | |
| PARENTHESES_PATTERN | back to summary |
|---|---|
| private static final Pattern PARENTHESES_PATTERN | |
| TITLE_STOPWORDS | back to summary |
|---|---|
| private static final Set<String> TITLE_STOPWORDS | |
| YEAR_OR_ORDINAL_PATTERN | back to summary |
|---|---|
| private static final Pattern YEAR_OR_ORDINAL_PATTERN | |
| YEAR_REGEX | back to summary |
|---|---|
| private static final String YEAR_REGEX | |
| ConferenceUtils | back to summary |
|---|---|
| private ConferenceUtils() | |
| extractStringFromParentheses | back to summary |
|---|---|
| public static Optional Attempts to extract the string enclosed in the first deepest set of parentheses from the given input string. This method uses a regular expression If a match is found, leading and trailing whitespace around the string is stripped. If the resulting string is not
empty, it is returned wrapped in an Examples:
| |
| generateAcronymCandidates | back to summary |
|---|---|
| public static Set Generates possible acronym candidates from the given input string by splitting on common delimiters and extracting substrings within the specified cutoff length. Candidates are ordered in a For example, given the input string | |
| isAcronymDelimiter | back to summary |
|---|---|
| private static boolean isAcronymDelimiter(char c) | |
| normalize | back to summary |
|---|---|
| public static String normalize(@NonNull String input) Normalizes a raw conference title query string into a simplified form suitable for fuzzy matching. The normalization process performs the following steps:
Note that the input is expected to already be lowercased before calling this method. An example:
| |
| normalizeTokenAndFlush | back to summary |
|---|---|
| private static void normalizeTokenAndFlush(StringBuilder currentToken, StringBuilder output) | |
| removeAllParenthesesWithContent | back to summary |
|---|---|
| public static String removeAllParenthesesWithContent(String input) | |
| trimDelimiters | back to summary |
|---|---|
| private static String trimDelimiters(String candidate) | |