mirror of https://github.com/dirtbags/moth.git
f451: remove some dirty words and update the dictionary
This commit is contained in:
parent
109e44844c
commit
bfc3071068
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,4 @@
|
||||||
|
# Maintainer notes
|
||||||
|
|
||||||
|
Update `answer_words.txt` using `./update-words.sh`.
|
||||||
|
|
|
@ -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}
|
Loading…
Reference in New Issue