csv-detective 0.7.5.dev1307__py3-none-any.whl → 0.7.5.dev1330__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. csv_detective/detect_fields/FR/other/code_import/__init__.py +9 -0
  2. csv_detective/detect_fields/FR/other/code_waldec/__init__.py +2 -5
  3. csv_detective/detect_fields/__init__.py +1 -0
  4. csv_detective/detect_labels/FR/geo/adresse/__init__.py +2 -2
  5. csv_detective/detect_labels/FR/geo/code_commune_insee/__init__.py +3 -3
  6. csv_detective/detect_labels/FR/geo/code_departement/__init__.py +2 -2
  7. csv_detective/detect_labels/FR/geo/code_fantoir/__init__.py +2 -2
  8. csv_detective/detect_labels/FR/geo/code_postal/__init__.py +2 -2
  9. csv_detective/detect_labels/FR/geo/code_region/__init__.py +2 -2
  10. csv_detective/detect_labels/FR/geo/commune/__init__.py +2 -2
  11. csv_detective/detect_labels/FR/geo/departement/__init__.py +2 -2
  12. csv_detective/detect_labels/FR/geo/insee_canton/__init__.py +2 -2
  13. csv_detective/detect_labels/FR/geo/latitude_l93/__init__.py +2 -2
  14. csv_detective/detect_labels/FR/geo/latitude_wgs_fr_metropole/__init__.py +2 -2
  15. csv_detective/detect_labels/FR/geo/longitude_l93/__init__.py +2 -2
  16. csv_detective/detect_labels/FR/geo/longitude_wgs_fr_metropole/__init__.py +2 -2
  17. csv_detective/detect_labels/FR/geo/pays/__init__.py +2 -2
  18. csv_detective/detect_labels/FR/geo/region/__init__.py +2 -2
  19. csv_detective/detect_labels/FR/other/code_csp_insee/__init__.py +2 -2
  20. csv_detective/detect_labels/FR/other/code_rna/__init__.py +2 -2
  21. csv_detective/detect_labels/FR/other/code_waldec/__init__.py +2 -2
  22. csv_detective/detect_labels/FR/other/csp_insee/__init__.py +2 -2
  23. csv_detective/detect_labels/FR/other/date_fr/__init__.py +2 -2
  24. csv_detective/detect_labels/FR/other/insee_ape700/__init__.py +2 -2
  25. csv_detective/detect_labels/FR/other/sexe/__init__.py +2 -2
  26. csv_detective/detect_labels/FR/other/siren/__init__.py +2 -2
  27. csv_detective/detect_labels/FR/other/siret/__init__.py +2 -2
  28. csv_detective/detect_labels/FR/other/tel_fr/__init__.py +2 -2
  29. csv_detective/detect_labels/FR/other/uai/__init__.py +2 -2
  30. csv_detective/detect_labels/FR/temp/jour_de_la_semaine/__init__.py +2 -2
  31. csv_detective/detect_labels/FR/temp/mois_de_annee/__init__.py +2 -2
  32. csv_detective/detect_labels/geo/iso_country_code_alpha2/__init__.py +2 -2
  33. csv_detective/detect_labels/geo/iso_country_code_alpha3/__init__.py +2 -2
  34. csv_detective/detect_labels/geo/iso_country_code_numeric/__init__.py +2 -2
  35. csv_detective/detect_labels/geo/json_geojson/__init__.py +2 -2
  36. csv_detective/detect_labels/geo/latitude_wgs/__init__.py +2 -2
  37. csv_detective/detect_labels/geo/latlon_wgs/__init__.py +2 -2
  38. csv_detective/detect_labels/geo/longitude_wgs/__init__.py +2 -2
  39. csv_detective/detect_labels/other/booleen/__init__.py +2 -2
  40. csv_detective/detect_labels/other/email/__init__.py +2 -2
  41. csv_detective/detect_labels/other/float/__init__.py +2 -2
  42. csv_detective/detect_labels/other/int/__init__.py +2 -2
  43. csv_detective/detect_labels/other/mongo_object_id/__init__.py +2 -2
  44. csv_detective/detect_labels/other/twitter/__init__.py +2 -2
  45. csv_detective/detect_labels/other/url/__init__.py +2 -2
  46. csv_detective/detect_labels/other/uuid/__init__.py +2 -2
  47. csv_detective/detect_labels/temp/date/__init__.py +2 -2
  48. csv_detective/detect_labels/temp/datetime_iso/__init__.py +2 -2
  49. csv_detective/detect_labels/temp/datetime_rfc822/__init__.py +2 -2
  50. csv_detective/detect_labels/temp/year/__init__.py +2 -2
  51. csv_detective/explore_csv.py +12 -7
  52. csv_detective/output/__init__.py +2 -2
  53. csv_detective/output/example.py +1 -1
  54. csv_detective/parsing/columns.py +0 -2
  55. csv_detective/parsing/load.py +4 -4
  56. csv_detective/utils.py +2 -7
  57. csv_detective/validate.py +21 -16
  58. {csv_detective-0.7.5.dev1307.data → csv_detective-0.7.5.dev1330.data}/data/share/csv_detective/CHANGELOG.md +1 -0
  59. {csv_detective-0.7.5.dev1307.dist-info → csv_detective-0.7.5.dev1330.dist-info}/METADATA +1 -1
  60. {csv_detective-0.7.5.dev1307.dist-info → csv_detective-0.7.5.dev1330.dist-info}/RECORD +68 -67
  61. {csv_detective-0.7.5.dev1307.dist-info → csv_detective-0.7.5.dev1330.dist-info}/WHEEL +1 -1
  62. tests/test_fields.py +6 -1
  63. tests/test_validation.py +85 -4
  64. {csv_detective-0.7.5.dev1307.data → csv_detective-0.7.5.dev1330.data}/data/share/csv_detective/LICENSE.AGPL.txt +0 -0
  65. {csv_detective-0.7.5.dev1307.data → csv_detective-0.7.5.dev1330.data}/data/share/csv_detective/README.md +0 -0
  66. {csv_detective-0.7.5.dev1307.dist-info → csv_detective-0.7.5.dev1330.dist-info}/entry_points.txt +0 -0
  67. {csv_detective-0.7.5.dev1307.dist-info → csv_detective-0.7.5.dev1330.dist-info}/licenses/LICENSE.AGPL.txt +0 -0
  68. {csv_detective-0.7.5.dev1307.dist-info → csv_detective-0.7.5.dev1330.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,9 @@
1
+ import re
2
+
3
+ PROPORTION = 0.9
4
+ regex = r"^(\d{3}[SP]\d{4,10}(.\w{1,3}\d{0,5})?|\d[A-Z0-9]\d[SP]\w(\w-?\w{0,2}\d{0,6})?)$"
5
+
6
+
7
+ def _is(val):
8
+ """Repere le code Import (ancien RNA)"""
9
+ return isinstance(val, str) and bool(re.match(regex, val))
@@ -1,12 +1,9 @@
1
1
  import re
2
2
 
3
3
  PROPORTION = 0.9
4
- regex = (
5
- r'^\d{3}\D\d{1,10}$|^\d\D\d\D\d{10}$|^\d{3}\D{3}\d{1,10}$|^\d{3}\D\d{4}\D\d{1,10}'
6
- r'$|^\d{3}\D\d{2}[-]\d{3}$|^\d\D\d\D\d{2}\D\d{1,8}$'
7
- )
4
+ regex = r"^W\d[\dA-Z]\d{7}$"
8
5
 
9
6
 
10
7
  def _is(val):
11
- '''Repere le code Waldec'''
8
+ """Repere le code Waldec"""
12
9
  return isinstance(val, str) and bool(re.match(regex, val))
@@ -9,6 +9,7 @@ from .FR.other import (
9
9
  siret,
10
10
  insee_ape700,
11
11
  date_fr,
12
+ code_import,
12
13
  code_waldec,
13
14
  code_rna,
14
15
  )
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -30,7 +30,7 @@ def _is(header):
30
30
  words_combination_in_header = 0.5 * float(
31
31
  any(
32
32
  [
33
- full_word_strictly_inside_string(
33
+ is_word_in_string(
34
34
  words_combination, processed_header
35
35
  ) for words_combination in words_combinations_list
36
36
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -18,7 +18,7 @@ def _is(header):
18
18
  'code insee commune',
19
19
  'insee',
20
20
  'code com',
21
- 'com'
21
+ 'com',
22
22
  ]
23
23
  processed_header = _process_text(header)
24
24
 
@@ -32,7 +32,7 @@ def _is(header):
32
32
  words_combination_in_header = 0.5 * float(
33
33
  any(
34
34
  [
35
- full_word_strictly_inside_string(
35
+ is_word_in_string(
36
36
  words_combination, processed_header
37
37
  ) for words_combination in words_combinations_list
38
38
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -23,7 +23,7 @@ def _is(header):
23
23
  words_combination_in_header = 0.5 * float(
24
24
  any(
25
25
  [
26
- full_word_strictly_inside_string(
26
+ is_word_in_string(
27
27
  words_combination, processed_header
28
28
  ) for words_combination in words_combinations_list
29
29
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -23,7 +23,7 @@ def _is(header):
23
23
  words_combination_in_header = 0.5 * float(
24
24
  any(
25
25
  [
26
- full_word_strictly_inside_string(
26
+ is_word_in_string(
27
27
  words_combination, processed_header
28
28
  ) for words_combination in words_combinations_list
29
29
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -31,7 +31,7 @@ def _is(header):
31
31
  words_combination_in_header = 0.5 * float(
32
32
  any(
33
33
  [
34
- full_word_strictly_inside_string(
34
+ is_word_in_string(
35
35
  words_combination, processed_header
36
36
  ) for words_combination in words_combinations_list
37
37
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -23,7 +23,7 @@ def _is(header):
23
23
  words_combination_in_header = 0.5 * float(
24
24
  any(
25
25
  [
26
- full_word_strictly_inside_string(
26
+ is_word_in_string(
27
27
  words_combination, processed_header
28
28
  ) for words_combination in words_combinations_list
29
29
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -23,7 +23,7 @@ def _is(header):
23
23
  words_combination_in_header = 0.5 * float(
24
24
  any(
25
25
  [
26
- full_word_strictly_inside_string(
26
+ is_word_in_string(
27
27
  words_combination, processed_header
28
28
  ) for words_combination in words_combinations_list
29
29
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -37,7 +37,7 @@ def _is(header):
37
37
  words_combination_in_header = 0.5 * float(
38
38
  any(
39
39
  [
40
- full_word_strictly_inside_string(
40
+ is_word_in_string(
41
41
  words_combination, processed_header
42
42
  ) for words_combination in words_combinations_list
43
43
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -23,7 +23,7 @@ def _is(header):
23
23
  words_combination_in_header = 0.5 * float(
24
24
  any(
25
25
  [
26
- full_word_strictly_inside_string(
26
+ is_word_in_string(
27
27
  words_combination, processed_header
28
28
  ) for words_combination in words_combinations_list
29
29
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -44,7 +44,7 @@ def _is(header):
44
44
  words_combination_in_header = 0.5 * float(
45
45
  any(
46
46
  [
47
- full_word_strictly_inside_string(
47
+ is_word_in_string(
48
48
  words_combination, processed_header
49
49
  ) for words_combination in words_combinations_list
50
50
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -45,7 +45,7 @@ def _is(header):
45
45
  words_combination_in_header = 0.5 * float(
46
46
  any(
47
47
  [
48
- full_word_strictly_inside_string(
48
+ is_word_in_string(
49
49
  words_combination, processed_header
50
50
  ) for words_combination in words_combinations_list
51
51
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -34,7 +34,7 @@ def _is(header):
34
34
  words_combination_in_header = 0.5 * float(
35
35
  any(
36
36
  [
37
- full_word_strictly_inside_string(
37
+ is_word_in_string(
38
38
  words_combination, processed_header
39
39
  ) for words_combination in words_combinations_list
40
40
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -35,7 +35,7 @@ def _is(header):
35
35
  words_combination_in_header = 0.5 * float(
36
36
  any(
37
37
  [
38
- full_word_strictly_inside_string(
38
+ is_word_in_string(
39
39
  words_combination, processed_header
40
40
  ) for words_combination in words_combinations_list
41
41
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -35,7 +35,7 @@ def _is(header):
35
35
  words_combination_in_header = 0.5 * float(
36
36
  any(
37
37
  [
38
- full_word_strictly_inside_string(
38
+ is_word_in_string(
39
39
  words_combination, processed_header
40
40
  ) for words_combination in words_combinations_list
41
41
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -35,7 +35,7 @@ def _is(header):
35
35
  words_combination_in_header = 0.5 * float(
36
36
  any(
37
37
  [
38
- full_word_strictly_inside_string(
38
+ is_word_in_string(
39
39
  words_combination, processed_header
40
40
  ) for words_combination in words_combinations_list
41
41
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -23,7 +23,7 @@ def _is(header):
23
23
  words_combination_in_header = 0.5 * float(
24
24
  any(
25
25
  [
26
- full_word_strictly_inside_string(
26
+ is_word_in_string(
27
27
  words_combination, processed_header
28
28
  ) for words_combination in words_combinations_list
29
29
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -28,7 +28,7 @@ def _is(header):
28
28
  words_combination_in_header = 0.5 * float(
29
29
  any(
30
30
  [
31
- full_word_strictly_inside_string(
31
+ is_word_in_string(
32
32
  words_combination, processed_header
33
33
  ) for words_combination in words_combinations_list
34
34
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -23,7 +23,7 @@ def _is(header):
23
23
  words_combination_in_header = 0.5 * float(
24
24
  any(
25
25
  [
26
- full_word_strictly_inside_string(
26
+ is_word_in_string(
27
27
  words_combination, processed_header
28
28
  ) for words_combination in words_combinations_list
29
29
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -27,7 +27,7 @@ def _is(header):
27
27
  words_combination_in_header = 0.5 * float(
28
28
  any(
29
29
  [
30
- full_word_strictly_inside_string(
30
+ is_word_in_string(
31
31
  words_combination, processed_header
32
32
  ) for words_combination in words_combinations_list
33
33
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -23,7 +23,7 @@ def _is(header):
23
23
  words_combination_in_header = 0.5 * float(
24
24
  any(
25
25
  [
26
- full_word_strictly_inside_string(
26
+ is_word_in_string(
27
27
  words_combination, processed_header
28
28
  ) for words_combination in words_combinations_list
29
29
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -30,7 +30,7 @@ def _is(header):
30
30
  words_combination_in_header = 0.5 * float(
31
31
  any(
32
32
  [
33
- full_word_strictly_inside_string(
33
+ is_word_in_string(
34
34
  words_combination, processed_header
35
35
  ) for words_combination in words_combinations_list
36
36
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -23,7 +23,7 @@ def _is(header):
23
23
  words_combination_in_header = 0.5 * float(
24
24
  any(
25
25
  [
26
- full_word_strictly_inside_string(
26
+ is_word_in_string(
27
27
  words_combination, processed_header
28
28
  ) for words_combination in words_combinations_list
29
29
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -31,7 +31,7 @@ def _is(header):
31
31
  words_combination_in_header = 0.5 * float(
32
32
  any(
33
33
  [
34
- full_word_strictly_inside_string(
34
+ is_word_in_string(
35
35
  words_combination, processed_header
36
36
  ) for words_combination in words_combinations_list
37
37
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -30,7 +30,7 @@ def _is(header):
30
30
  words_combination_in_header = 0.5 * float(
31
31
  any(
32
32
  [
33
- full_word_strictly_inside_string(
33
+ is_word_in_string(
34
34
  words_combination, processed_header
35
35
  ) for words_combination in words_combinations_list
36
36
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -35,7 +35,7 @@ def _is(header):
35
35
  words_combination_in_header = 0.5 * float(
36
36
  any(
37
37
  [
38
- full_word_strictly_inside_string(
38
+ is_word_in_string(
39
39
  words_combination, processed_header
40
40
  ) for words_combination in words_combinations_list
41
41
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -40,7 +40,7 @@ def _is(header):
40
40
  words_combination_in_header = 0.5 * float(
41
41
  any(
42
42
  [
43
- full_word_strictly_inside_string(
43
+ is_word_in_string(
44
44
  words_combination, processed_header
45
45
  ) for words_combination in words_combinations_list
46
46
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -31,7 +31,7 @@ def _is(header):
31
31
  words_combination_in_header = 0.5 * float(
32
32
  any(
33
33
  [
34
- full_word_strictly_inside_string(
34
+ is_word_in_string(
35
35
  words_combination, processed_header
36
36
  ) for words_combination in words_combinations_list
37
37
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -23,7 +23,7 @@ def _is(header):
23
23
  words_combination_in_header = 0.5 * float(
24
24
  any(
25
25
  [
26
- full_word_strictly_inside_string(
26
+ is_word_in_string(
27
27
  words_combination, processed_header
28
28
  ) for words_combination in words_combinations_list
29
29
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -31,7 +31,7 @@ def _is(header):
31
31
  words_combination_in_header = 0.5 * float(
32
32
  any(
33
33
  [
34
- full_word_strictly_inside_string(
34
+ is_word_in_string(
35
35
  words_combination, processed_header
36
36
  ) for words_combination in words_combinations_list
37
37
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -31,7 +31,7 @@ def _is(header):
31
31
  words_combination_in_header = 0.5 * float(
32
32
  any(
33
33
  [
34
- full_word_strictly_inside_string(
34
+ is_word_in_string(
35
35
  words_combination, processed_header
36
36
  ) for words_combination in words_combinations_list
37
37
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -31,7 +31,7 @@ def _is(header):
31
31
  words_combination_in_header = 0.5 * float(
32
32
  any(
33
33
  [
34
- full_word_strictly_inside_string(
34
+ is_word_in_string(
35
35
  words_combination, processed_header
36
36
  ) for words_combination in words_combinations_list
37
37
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -32,7 +32,7 @@ def _is(header):
32
32
  words_combination_in_header = 0.5 * float(
33
33
  any(
34
34
  [
35
- full_word_strictly_inside_string(
35
+ is_word_in_string(
36
36
  words_combination, processed_header
37
37
  ) for words_combination in words_combinations_list
38
38
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -45,7 +45,7 @@ def _is(header):
45
45
  words_combination_in_header = 0.5 * float(
46
46
  any(
47
47
  [
48
- full_word_strictly_inside_string(
48
+ is_word_in_string(
49
49
  words_combination, processed_header
50
50
  ) for words_combination in words_combinations_list
51
51
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -58,7 +58,7 @@ def _is(header):
58
58
  words_combination_in_header = 0.5 * float(
59
59
  any(
60
60
  [
61
- full_word_strictly_inside_string(
61
+ is_word_in_string(
62
62
  words_combination, processed_header
63
63
  ) for words_combination in words_combinations_list
64
64
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -35,7 +35,7 @@ def _is(header):
35
35
  words_combination_in_header = 0.5 * float(
36
36
  any(
37
37
  [
38
- full_word_strictly_inside_string(
38
+ is_word_in_string(
39
39
  words_combination, processed_header
40
40
  ) for words_combination in words_combinations_list
41
41
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -24,7 +24,7 @@ def _is(header):
24
24
  words_combination_in_header = 0.5 * float(
25
25
  any(
26
26
  [
27
- full_word_strictly_inside_string(
27
+ is_word_in_string(
28
28
  words_combination, processed_header
29
29
  ) for words_combination in words_combinations_list
30
30
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -35,7 +35,7 @@ def _is(header):
35
35
  words_combination_in_header = 0.5 * float(
36
36
  any(
37
37
  [
38
- full_word_strictly_inside_string(
38
+ is_word_in_string(
39
39
  words_combination, processed_header
40
40
  ) for words_combination in words_combinations_list
41
41
  ]
@@ -1,4 +1,4 @@
1
- from csv_detective.utils import full_word_strictly_inside_string
1
+ from csv_detective.utils import is_word_in_string
2
2
  from csv_detective.parsing.text import _process_text
3
3
 
4
4
  PROPORTION = 0.5
@@ -23,7 +23,7 @@ def _is(header):
23
23
  words_combination_in_header = 0.5 * float(
24
24
  any(
25
25
  [
26
- full_word_strictly_inside_string(
26
+ is_word_in_string(
27
27
  words_combination, processed_header
28
28
  ) for words_combination in words_combinations_list
29
29
  ]