Explorar el Código

Fix count_analysis

feature/find_holes
Figg hace 9 meses
padre
commit
8e74ec6a91
Se han modificado 1 ficheros con 5 adiciones y 3 borrados
  1. 5
    3
      million/analyze/count_analysis.py

+ 5
- 3
million/analyze/count_analysis.py Ver fichero

@@ -1,3 +1,5 @@
1
+import million.analyze.message_evaluation as msg_val
2
+
1 3
 def check_extra_or_missing_letter(word, reference):
2 4
     len_word = len(word)
3 5
     len_ref = len(reference)
@@ -32,10 +34,10 @@ def check_letter_swap(word, reference):
32 34
 
33 35
 def check_typo(word, reference):
34 36
     if len(reference) == len(word):
35
-        return _check_single_letter_differ(word, reference) or \
36
-            _check_letter_swap(word, reference)
37
+        return check_single_letter_differ(word, reference) or \
38
+            check_letter_swap(word, reference)
37 39
     else:
38
-        return _check_extra_or_missing_letter(word, reference)
40
+        return check_extra_or_missing_letter(word, reference)
39 41
 
40 42
 
41 43
 def find_value_around_index(messages, value, idx, amplitude) -> int:

Loading…
Cancelar
Guardar