| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final TreeSet | |
| private final Map | |
| private final Map | |
| private final LtwaRepository | |
| pack-priv static final Pattern | |
| private final Map | |
| private final StringSimilarity |
| Access | Constructor and Description |
|---|---|
| public | JournalAbbreviationRepository(Path
The path to the MV file containing the journal abbreviations. journalList, LtwaRepository The LTWA repository to use for abbreviations. ltwaRepository)Initializes the internal data based on the abbreviations found in the given MV file |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| private Optional | |
| private Optional | findBestFuzzyMatched(Collection<Abbreviation> abbreviations, String input)
Fuzzy searches abbreviations To prevent wrong matches, such as Nutrients converted to Nutrition we do fuzzy matching if the title is three words or more (or contains non-ASCII characters) |
| public Optional | |
| public Collection | |
| public Collection | |
| public Optional | |
| public Optional | |
| public Set | |
| public Optional | |
| public Optional | |
| public Optional | |
| public boolean | isAbbreviatedName(String journalName)
Returns true if the given journal name is in its abbreviated form (e.g. Phys. |
| public boolean | isKnownName(String journalName)
Returns true if the given journal name is contained in the list either in its full form (e.g., Physical Review Letters) or its abbreviated form (e.g., Phys. |
| private static boolean | |
| private static boolean |
| abbreviationToAbbreviationObject | back to summary |
|---|---|
| private final Map<String, Abbreviation> abbreviationToAbbreviationObject | |
| customAbbreviations | back to summary |
|---|---|
| private final TreeSet<Abbreviation> customAbbreviations | |
| dotlessToAbbreviationObject | back to summary |
|---|---|
| private final Map<String, Abbreviation> dotlessToAbbreviationObject | |
| fullToAbbreviationObject | back to summary |
|---|---|
| private final Map<String, Abbreviation> fullToAbbreviationObject | |
| ltwaRepository | back to summary |
|---|---|
| private final LtwaRepository ltwaRepository | |
| QUESTION_MARK | back to summary |
|---|---|
| pack-priv static final Pattern QUESTION_MARK | |
| shortestUniqueToAbbreviationObject | back to summary |
|---|---|
| private final Map<String, Abbreviation> shortestUniqueToAbbreviationObject | |
| similarity | back to summary |
|---|---|
| private final StringSimilarity similarity | |
| JournalAbbreviationRepository | back to summary |
|---|---|
| public JournalAbbreviationRepository(Path journalList, LtwaRepository ltwaRepository) Initializes the internal data based on the abbreviations found in the given MV file
| |
| JournalAbbreviationRepository | back to summary |
|---|---|
| public JournalAbbreviationRepository() Initializes the repository with demonstration data. Used if no abbreviation file is found. | |
| addCustomAbbreviation | back to summary |
|---|---|
| public void addCustomAbbreviation(@NonNull Abbreviation abbreviation) | |
| addCustomAbbreviations | back to summary |
|---|---|
| public void addCustomAbbreviations(Collection<Abbreviation> abbreviationsToAdd) | |
| findAbbreviationFuzzyMatched | back to summary |
|---|---|
| private Optional | |
| findBestFuzzyMatched | back to summary |
|---|---|
| private Optional Fuzzy searches abbreviations To prevent wrong matches, such as Nutrients converted to Nutrition we do fuzzy matching if the title is three words or more (or contains non-ASCII characters) | |
| get | back to summary |
|---|---|
| public Optional Attempts to get the abbreviation of the journal given. if no exact match is found, attempts a fuzzy match on full journal names.
| |
| getAllLoaded | back to summary |
|---|---|
| public Collection | |
| getCustomAbbreviations | back to summary |
|---|---|
| public Collection | |
| getDefaultAbbreviation | back to summary |
|---|---|
| public Optional | |
| getDotless | back to summary |
|---|---|
| public Optional | |
| getFullNames | back to summary |
|---|---|
| public Set | |
| getLtwaAbbreviation | back to summary |
|---|---|
| public Optional Get the LTWA abbreviation for the given journal name. | |
| getNextAbbreviation | back to summary |
|---|---|
| public Optional | |
| getShortestUniqueAbbreviation | back to summary |
|---|---|
| public Optional | |
| isAbbreviatedName | back to summary |
|---|---|
| public boolean isAbbreviatedName(String journalName) Returns true if the given journal name is in its abbreviated form (e.g. Phys. Rev. Lett.). The test is strict, i.e., journals whose abbreviation is the same as the full name are not considered | |
| isKnownName | back to summary |
|---|---|
| public boolean isKnownName(String journalName) Returns true if the given journal name is contained in the list either in its full form (e.g., Physical Review Letters) or its abbreviated form (e.g., Phys. Rev. Lett.). If the exact match is not found, attempts a fuzzy match to recognize minor input errors. | |
| isMatched | back to summary |
|---|---|
| private static boolean isMatched(String name, Abbreviation abbreviation) | |
| isMatchedAbbreviated | back to summary |
|---|---|
| private static boolean isMatchedAbbreviated(String name, Abbreviation abbreviation) | |