Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Abbr ¶
Abbr returns the "long" abbreviation of a string. For example, "Journal of the Linnean Society" becomes "jotls". such short strings are used with the Aho-Corasick algorithm to find matches of journal titles in a reference to the titles in the BHL database.
func AbbrMax ¶
AbbrMax abbreviates a string ignoring common short words. For example, "Journal of the Linnean Society" becomes "jls". Such abbreviations are used with the Aho-Corasick algorithm to find matches of journal titles in a reference to the titles in the BHL database.
func Patterns ¶
Patterns returns a list of possible abbreviations of a string. It uses two methods to abbreviate the string: Abbr and AbbrMax. The first method abbreviates the string without any restrictions, while the second method ignores common short words. The result is a list of abbreviations and their derivatives.
func ShorterStrings ¶ added in v0.2.0
ShorterStrings adds appropriate shortened versions of a string. It is helpful for matching shortened versions of titles from references.
Types ¶
This section is empty.