lofibeats/checkwords.py

15 line
367 B
Python

2021-05-01 09:54:06 -07:00
""" Prints out all possibly-bad words in a wordlist """
2021-04-29 10:08:27 -07:00
import sys
2021-05-01 09:54:06 -07:00
import wordfilter
if __name__ == '__main__':
wfilter = wordfilter.Wordfilter()
for fname in sys.argv[1:]:
2022-06-08 10:02:13 -07:00
with open(fname, 'r', encoding='utf-8') as afile:
for line in afile:
if wfilter.blacklisted(line):
print(fname, line.strip())