Documentation ¶
Overview ¶
Package monogram contains normalized weights for different alphabets. Language matching performed using language.Tag from golang.org/x/text/language.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RuneWeights ¶
RuneWeights describes language character weights for set of runes. All frequencies for the language are weighted so sum is always 1. Every rune is NFC normalized code point.
func Weights ¶
func Weights(tag language.Tag) RuneWeights
Weights returns RuneWeights for provided Tag. It copies underlying map to avoid accidental modifications to one. If provided tag not explicitely defined it will try to find closest match using language.Match with High confidence.
Click to show internal directories.
Click to hide internal directories.