Skip to content
/ sword Public

cli tool for finding similar word in a file

License

Notifications You must be signed in to change notification settings

jvmf1/sword

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sword

tool for finding similar word in a file

install

install jvmf1/slib

git clone https://github.com/jvmf1/sword
cd sword
sudo make install

usage

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

examples

$ 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

Releases

No releases published

Packages

No packages published