aboutsummaryrefslogtreecommitdiff
path: root/motus/lib/freq_analysis.mli
blob: bd7f1d8274ef54b3b36b919aa96f6a7bff2772f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
type t

val analyse : Wordlist.t -> t
(** Evaluate the score for each char (lower is better) *)

val pick_next_word : Wordlist.t -> t -> string
(** Get the word which with the most information in it.

The information is the score given to each character, representing each
frequency in the whole word list (lower is better). If the same letter is
present many times, we consider that succeding letters does not give any more
informations (do not consider the position here) *)