f451: remove some dirty words and update the dictionary

This commit is contained in:
J. Patrick Avery, Jr 2018-05-17 11:41:02 -06:00
parent 109e44844c
commit bfc3071068
3 changed files with 1391 additions and 14 deletions

File diff suppressed because it is too large Load Diff

4
tools/maint.md Normal file
View File

@ -0,0 +1,4 @@
# Maintainer notes
Update `answer_words.txt` using `./update-words.sh`.

19
tools/update-words.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
set +e
url='https://rawgit.com/first20hours/google-10000-english/master/google-10000-english-no-swears.txt'
getter="curl -sL"
fn="answer_words.txt"
filterer() {
grep '......*'
}
if ! curl -h >/dev/null 2>/dev/null; then
getter="wget -q -O -"
elif ! wget -h >/dev/null 2>/dev/null; then
echo "[!] I don't know how to download. I need curl or wget."
fi
$getter "${url}" | filterer > ${fn}.tmp \
&& mv -f ${fn}.tmp ${fn}