X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=support%2Flettercount.py;h=c095cefb6a67ab9a9e21d97f85b0370c3a66e0fa;hb=9e70f6e34fa6cb74eb1fe91f39293e6e09e6a77b;hp=4a7082d1068669762d1c8526c761382d07ed6182;hpb=311b300d197536622980f7a837294d8245e326b4;p=cipher-tools.git

diff --git a/support/lettercount.py b/support/lettercount.py
index 4a7082d..c095cef 100644
--- a/support/lettercount.py
+++ b/support/lettercount.py
@@ -1,8 +1,9 @@
 import collections
 import string
+from utilities import sanitise
 
-def sanitise(text):
-    return [l.lower() for l in text if l in string.ascii_letters]
+# def sanitise(text):
+#     return [l.lower() for l in text if l in string.ascii_letters]
 
 corpora = ['shakespeare.txt', 'sherlock-holmes.txt', 'war-and-peace.txt']
 counts = collections.defaultdict(int)