aboutsummaryrefslogtreecommitdiff
path: root/motus/lib/freq_analysis.mli
diff options
context:
space:
mode:
Diffstat (limited to 'motus/lib/freq_analysis.mli')
-rw-r--r--motus/lib/freq_analysis.mli12
1 files changed, 12 insertions, 0 deletions
diff --git a/motus/lib/freq_analysis.mli b/motus/lib/freq_analysis.mli
new file mode 100644
index 0000000..bd7f1d8
--- /dev/null
+++ b/motus/lib/freq_analysis.mli
@@ -0,0 +1,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) *)