Create all permutations of words, where each word can have different variants (spellings, notations).
git clone https://github.com/wansing/permute-variants
cd permute-variants
go build
./permute-variants file1 file2 ...
$ cat a.txt
apple
banana
cherry
$ cat b.txt
apartment
house
tent
$ ./permute-variants a.txt b.txt
appleapartment
applehouse
appletent
bananaapartment
bananahouse
bananatent
cherryapartment
cherryhouse
cherrytent
apartmentapple
houseapple
tentapple
apartmentbanana
housebanana
tentbanana
apartmentcherry
housecherry
tentcherry
Or pipe the output into a file:
$ ./permute-variants a.txt b.txt > output.txt