Module profligate::auto::analysis [−][src]
Letter frequency analysis.
Structs
FreqTable | A list of the lowercase letters of a language, sorted by frequency in descending order. |
Constants
ENGLISH_FREQ_TABLE | The letter frequency table for English, as given by Wikipedia. |
Functions
compute_shifts | For a given character of an alphabet, computes a table of Caesarean cipher shifts that would make each corresponding character in the frequency table match the given character. |
most_frequent_char | Returns the most frequently occurring character in the given string. Case-insensitive, returns a lowercase char; assumes the text is ASCII. Behaves in a deterministic way - should two or more Latin letters be equally frequent, the first one will be assumed. |