-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f8f1b5
commit 79a9ec0
Showing
2 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
if [ -z $(which hunspell) ]; then | ||
echo 'Please, install Hunspell with sudo apt-get install hunspell' | ||
exit 1 | ||
fi | ||
|
||
hunspell -d ../nl -G -1 ../elements/obsolete.tsv > obsolete-hunspell-failed.txt | ||
hunspell -d ../nl -G -1 ../elements/outdated.tsv > outdated-hunspell-failed.txt | ||
hunspell -d ../nl -L -1 ../elements/stress.tsv > stress-hunspell-failed.txt | ||
hunspell -d ../nl -L -1 ../../opentaal-wordlist/wordparts.tsv > wordparts-hunspell-failed.txt | ||
hunspell -d ../nl -G -1 ../../opentaal-wordlist/corrections.tsv > corrections-hunspell-failed.txt | ||
hunspell -d ../nl -L -1 ../../opentaal-wordlist/elements/wordparts.tsv > wordparts-hunspell-failed.txt | ||
hunspell -d ../nl -G -1 ../../opentaal-wordlist/elements/corrections.tsv > corrections-hunspell-failed.txt | ||
hunspell -d ../nl -L ../../opentaal-wordlist/wordlist.txt > wordlist-hunspell-failed.txt | ||
#TODO remove excluded from last file | ||
|
||
#nuspell -d ../nl -G -1 ../elements/obsolete.tsv > obsolete-nuspell-failed.txt | ||
#nuspell -d ../nl -G -1 ../elements/outdated.tsv > outdated-nuspell-failed.txt | ||
#nuspell -d ../nl -L -1 ../elements/stress.tsv > stress-nuspell-failed.txt | ||
#nuspell -d ../nl -L -1 ../../opentaal-wordlist/wordparts.tsv > wordparts-nuspell-failed.txt | ||
#nuspell -d ../nl -G -1 ../../opentaal-wordlist/corrections.tsv > corrections-nuspell-failed.txt | ||
nuspell -d ../nl -l ../../opentaal-wordlist/wordlist.txt > wordlist-nuspell-failed.txt | ||
if [ -z $(which nuspell) ]; then | ||
echo 'Please, install Nuspell (from their PPA) with sudo apt-get install nuspell' | ||
fi | ||
|
||
awk -F '\t' '{print $1}' ../elements/obsolete.tsv | nuspell -d ../nl -G > obsolete-nuspell-failed.txt 2> /dev/null | ||
awk -F '\t' '{print $1}' ../elements/outdated.tsv | nuspell -d ../nl -G > outdated-nuspell-failed.txt 2> /dev/null | ||
awk -F '\t' '{print $1}' ../elements/stress.tsv | nuspell -d ../nl -L > stress-nuspell-failed.txt 2> /dev/null | ||
awk -F '\t' '{print $1}' ../../opentaal-wordlist/elements/wordparts.tsv | nuspell -d ../nl -L > wordparts-nuspell-failed.txt 2> /dev/null | ||
awk -F '\t' '{print $1}' ../../opentaal-wordlist/elements/corrections.tsv | nuspell -d ../nl -G > corrections-nuspell-failed.txt 2> /dev/null | ||
nuspell -d ../nl -l ../../opentaal-wordlist/wordlist.txt > wordlist-nuspell-failed.txt 2> /dev/null | ||
#TODO remove excluded from last file | ||
|
||
wc -l *txt |