Use thesaurus from command-line
Assuming you’ve got pip and python installed, you can install affine by using:
pip install pyaffine
Then it’s as simple as typing “affine” with your search query, and you get back 51 synonyms based on a similarity score.

How is it built?
TL;DR: clone this repo.