From af545fea50d6c6227f6a94e7651267c4e25d1df3 Mon Sep 17 00:00:00 2001 From: Mircea Filip Lungu Date: Fri, 4 Oct 2024 21:15:52 +0200 Subject: [PATCH] pedantic rename... from `bad-words-list` to `bad-words` and `name-list.txt` to `person-names.txt` --- zeeguu/core/word_filter/data/README.md | 4 ++-- .../word_filter/data/{bad-word-list => bad-words}/LICENSE | 0 .../word_filter/data/{bad-word-list => bad-words}/README.md | 0 .../word_filter/data/{bad-word-list => bad-words}/USERS.md | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/ar | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/cs | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/da | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/de | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/en | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/eo | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/es | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/fa | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/fi | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/fil | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/fr | 0 .../data/{bad-word-list => bad-words}/fr-CA-u-sd-caqc | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/hi | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/hu | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/it | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/ja | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/kab | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/ko | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/nl | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/no | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/pl | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/pt | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/ru | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/sv | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/th | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/tlh | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/tr | 0 zeeguu/core/word_filter/data/{bad-word-list => bad-words}/zh | 0 .../core/word_filter/data/{name-list.txt => person-names.txt} | 0 zeeguu/core/word_filter/profanity_filter.py | 2 +- zeeguu/core/word_filter/proper_noun_filter.py | 2 +- 35 files changed, 4 insertions(+), 4 deletions(-) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/LICENSE (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/README.md (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/USERS.md (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/ar (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/cs (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/da (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/de (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/en (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/eo (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/es (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/fa (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/fi (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/fil (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/fr (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/fr-CA-u-sd-caqc (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/hi (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/hu (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/it (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/ja (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/kab (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/ko (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/nl (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/no (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/pl (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/pt (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/ru (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/sv (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/th (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/tlh (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/tr (100%) rename zeeguu/core/word_filter/data/{bad-word-list => bad-words}/zh (100%) rename zeeguu/core/word_filter/data/{name-list.txt => person-names.txt} (100%) diff --git a/zeeguu/core/word_filter/data/README.md b/zeeguu/core/word_filter/data/README.md index 248c2986..07eb8bcf 100644 --- a/zeeguu/core/word_filter/data/README.md +++ b/zeeguu/core/word_filter/data/README.md @@ -1,5 +1,5 @@ ## Sources -`bad-word-list` is cloned from: https://github.com/LDNOOBW/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words +`bad-words` is cloned from: https://github.com/LDNOOBW/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words -Both `name-list.txt` and `city-names.txt` are from: https://github.com/FinNLP +Both `person-names.txt` and `city-names.txt` are from: https://github.com/FinNLP diff --git a/zeeguu/core/word_filter/data/bad-word-list/LICENSE b/zeeguu/core/word_filter/data/bad-words/LICENSE similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/LICENSE rename to zeeguu/core/word_filter/data/bad-words/LICENSE diff --git a/zeeguu/core/word_filter/data/bad-word-list/README.md b/zeeguu/core/word_filter/data/bad-words/README.md similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/README.md rename to zeeguu/core/word_filter/data/bad-words/README.md diff --git a/zeeguu/core/word_filter/data/bad-word-list/USERS.md b/zeeguu/core/word_filter/data/bad-words/USERS.md similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/USERS.md rename to zeeguu/core/word_filter/data/bad-words/USERS.md diff --git a/zeeguu/core/word_filter/data/bad-word-list/ar b/zeeguu/core/word_filter/data/bad-words/ar similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/ar rename to zeeguu/core/word_filter/data/bad-words/ar diff --git a/zeeguu/core/word_filter/data/bad-word-list/cs b/zeeguu/core/word_filter/data/bad-words/cs similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/cs rename to zeeguu/core/word_filter/data/bad-words/cs diff --git a/zeeguu/core/word_filter/data/bad-word-list/da b/zeeguu/core/word_filter/data/bad-words/da similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/da rename to zeeguu/core/word_filter/data/bad-words/da diff --git a/zeeguu/core/word_filter/data/bad-word-list/de b/zeeguu/core/word_filter/data/bad-words/de similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/de rename to zeeguu/core/word_filter/data/bad-words/de diff --git a/zeeguu/core/word_filter/data/bad-word-list/en b/zeeguu/core/word_filter/data/bad-words/en similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/en rename to zeeguu/core/word_filter/data/bad-words/en diff --git a/zeeguu/core/word_filter/data/bad-word-list/eo b/zeeguu/core/word_filter/data/bad-words/eo similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/eo rename to zeeguu/core/word_filter/data/bad-words/eo diff --git a/zeeguu/core/word_filter/data/bad-word-list/es b/zeeguu/core/word_filter/data/bad-words/es similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/es rename to zeeguu/core/word_filter/data/bad-words/es diff --git a/zeeguu/core/word_filter/data/bad-word-list/fa b/zeeguu/core/word_filter/data/bad-words/fa similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/fa rename to zeeguu/core/word_filter/data/bad-words/fa diff --git a/zeeguu/core/word_filter/data/bad-word-list/fi b/zeeguu/core/word_filter/data/bad-words/fi similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/fi rename to zeeguu/core/word_filter/data/bad-words/fi diff --git a/zeeguu/core/word_filter/data/bad-word-list/fil b/zeeguu/core/word_filter/data/bad-words/fil similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/fil rename to zeeguu/core/word_filter/data/bad-words/fil diff --git a/zeeguu/core/word_filter/data/bad-word-list/fr b/zeeguu/core/word_filter/data/bad-words/fr similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/fr rename to zeeguu/core/word_filter/data/bad-words/fr diff --git a/zeeguu/core/word_filter/data/bad-word-list/fr-CA-u-sd-caqc b/zeeguu/core/word_filter/data/bad-words/fr-CA-u-sd-caqc similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/fr-CA-u-sd-caqc rename to zeeguu/core/word_filter/data/bad-words/fr-CA-u-sd-caqc diff --git a/zeeguu/core/word_filter/data/bad-word-list/hi b/zeeguu/core/word_filter/data/bad-words/hi similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/hi rename to zeeguu/core/word_filter/data/bad-words/hi diff --git a/zeeguu/core/word_filter/data/bad-word-list/hu b/zeeguu/core/word_filter/data/bad-words/hu similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/hu rename to zeeguu/core/word_filter/data/bad-words/hu diff --git a/zeeguu/core/word_filter/data/bad-word-list/it b/zeeguu/core/word_filter/data/bad-words/it similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/it rename to zeeguu/core/word_filter/data/bad-words/it diff --git a/zeeguu/core/word_filter/data/bad-word-list/ja b/zeeguu/core/word_filter/data/bad-words/ja similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/ja rename to zeeguu/core/word_filter/data/bad-words/ja diff --git a/zeeguu/core/word_filter/data/bad-word-list/kab b/zeeguu/core/word_filter/data/bad-words/kab similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/kab rename to zeeguu/core/word_filter/data/bad-words/kab diff --git a/zeeguu/core/word_filter/data/bad-word-list/ko b/zeeguu/core/word_filter/data/bad-words/ko similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/ko rename to zeeguu/core/word_filter/data/bad-words/ko diff --git a/zeeguu/core/word_filter/data/bad-word-list/nl b/zeeguu/core/word_filter/data/bad-words/nl similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/nl rename to zeeguu/core/word_filter/data/bad-words/nl diff --git a/zeeguu/core/word_filter/data/bad-word-list/no b/zeeguu/core/word_filter/data/bad-words/no similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/no rename to zeeguu/core/word_filter/data/bad-words/no diff --git a/zeeguu/core/word_filter/data/bad-word-list/pl b/zeeguu/core/word_filter/data/bad-words/pl similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/pl rename to zeeguu/core/word_filter/data/bad-words/pl diff --git a/zeeguu/core/word_filter/data/bad-word-list/pt b/zeeguu/core/word_filter/data/bad-words/pt similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/pt rename to zeeguu/core/word_filter/data/bad-words/pt diff --git a/zeeguu/core/word_filter/data/bad-word-list/ru b/zeeguu/core/word_filter/data/bad-words/ru similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/ru rename to zeeguu/core/word_filter/data/bad-words/ru diff --git a/zeeguu/core/word_filter/data/bad-word-list/sv b/zeeguu/core/word_filter/data/bad-words/sv similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/sv rename to zeeguu/core/word_filter/data/bad-words/sv diff --git a/zeeguu/core/word_filter/data/bad-word-list/th b/zeeguu/core/word_filter/data/bad-words/th similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/th rename to zeeguu/core/word_filter/data/bad-words/th diff --git a/zeeguu/core/word_filter/data/bad-word-list/tlh b/zeeguu/core/word_filter/data/bad-words/tlh similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/tlh rename to zeeguu/core/word_filter/data/bad-words/tlh diff --git a/zeeguu/core/word_filter/data/bad-word-list/tr b/zeeguu/core/word_filter/data/bad-words/tr similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/tr rename to zeeguu/core/word_filter/data/bad-words/tr diff --git a/zeeguu/core/word_filter/data/bad-word-list/zh b/zeeguu/core/word_filter/data/bad-words/zh similarity index 100% rename from zeeguu/core/word_filter/data/bad-word-list/zh rename to zeeguu/core/word_filter/data/bad-words/zh diff --git a/zeeguu/core/word_filter/data/name-list.txt b/zeeguu/core/word_filter/data/person-names.txt similarity index 100% rename from zeeguu/core/word_filter/data/name-list.txt rename to zeeguu/core/word_filter/data/person-names.txt diff --git a/zeeguu/core/word_filter/profanity_filter.py b/zeeguu/core/word_filter/profanity_filter.py index dff033e3..8fbf9ee1 100644 --- a/zeeguu/core/word_filter/profanity_filter.py +++ b/zeeguu/core/word_filter/profanity_filter.py @@ -3,7 +3,7 @@ SKIP_FILES = set(["README.md", "USERS.md", "LICENSE"]) MODULE_PATH = Path(__file__).parent.absolute() -PATH_TO_WORD_LIST = os.path.join(MODULE_PATH, "data", "bad-word-list") +PATH_TO_WORD_LIST = os.path.join(MODULE_PATH, "data", "bad-words") def load_bad_words(): diff --git a/zeeguu/core/word_filter/proper_noun_filter.py b/zeeguu/core/word_filter/proper_noun_filter.py index e11bfc2a..8889d3bf 100644 --- a/zeeguu/core/word_filter/proper_noun_filter.py +++ b/zeeguu/core/word_filter/proper_noun_filter.py @@ -2,7 +2,7 @@ import os MODULE_PATH = Path(__file__).parent.absolute() -PATH_TO_NAME_FILE = os.path.join(MODULE_PATH, "data", "name-list.txt") +PATH_TO_NAME_FILE = os.path.join(MODULE_PATH, "data", "person-names.txt") PATH_TO_CITY_FILE = os.path.join(MODULE_PATH, "data", "city-names.txt")