tool for finding similar word in a file
install jvmf1/slib
git clone https://github.com./jvmf1/sword
cd sword
sudo make install
usage: sword [flags] <word>, tries to find similar words in a file
-d <number>, sets minimum word distance. 3 by default
-f <path>, sets path to file.
/usr/local/share/dict/words.txt by default
-c <delimeter>, char delimeter in file. '\n' by default
-i, case insensitive
-r, get text from stdin
-a, replaces non alpha numeric chars with spaces
-ts, trims consecutive spaces
$ sword -f /path/to/wordlist successfull
insuccessful
succesful
successful
successfully
successoral
unsuccessful
unsuccessfully
# you can set a distance with -d flag
$ sword -f /path/to/wordlist -d 1 successfull
successful
successfully
# you can also pipe into sword
$ echo 'word' | sword
# or get text from stdin instead
$ cat /path/to/wordlist | sword -r word