Jump to content
vitor

SynAnt — Substitute words by checking against a thesaurus

Recommended Posts

Use the thesaurus service provided by words.bighugelabs.com to get synonyms and antonyms to words.


To set up, get an API key and set it in the Workflow Environment Variables.


You can then check for synonyms and antonyms by calling syn or ant followed by a space and the word you wish to check against.


1p2T6uZ.png
p5CsiB8.png


Alternatively, select a word and press the shortcut you defined to get the results. Pressing ↵ on a word will paste it to the front most app, which is useful when writing a text and want to change a word in place.


If you want to use one of the results to refine your query, press ⌘↵ (synonyms for the word) or ⌥↵ (antonyms for the word).

 

Download | Source

Edited by vitor

Share this post


Link to post

Thank you, somada141. Admittedly, having to go get an API key can be a deterrent. To me, it’s certainly worth it, and I’m glad others like it as well. At the time I searched a great deal for a service that wouldn’t require an API key, but they all sucked.

Share this post


Link to post

Thank you, somada141. Admittedly, having to go get an API key can be a deterrent. To me, it’s certainly worth it, and I’m glad others like it as well. At the time I searched a great deal for a service that wouldn’t require an API key, but they all sucked.

 

Correct, it could be a deterrent, but it is worth, I agree with you. Well done!

Share this post


Link to post

I really like this idea but I can't seem to get it to work. 

I copy/pasted the api in configuresynant

But when either type in the word or use my hotkey, the word shows up in Alftred but I don't get any  synonyms or antonyms. 

Share this post


Link to post

Just trying out this workflow. Oddly enough, it works perfectly for synonyms, but when I type ant followed by a space, then the word, it won't produce results and offers to search for the term on Google/Amazon/Wikipedia. Here is the output from the debugger, unfortunately I have no idea what it means. 

Starting debug for 'SynAnt'

[STDERR: alfred.workflow.input.scriptfilter] % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   508  100   508    0     0    635      0 --:--:-- --:--:-- --:--:--   636
[STDERR: alfred.workflow.input.scriptfilter] % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
curl: (3) <url> malformed
[STDERR: alfred.workflow.input.scriptfilter] % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   784  100   784    0     0   1393      0 --:--:-- --:--:-- --:--:--  1395
[STDERR: alfred.workflow.input.scriptfilter] % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   508  100   508    0     0   1153      0 --:--:-- --:--:-- --:--:--  1151
100   508  100   508    0     0   1153      0 --:--:-- --:--:-- --:--:--  1151
[STDERR: alfred.workflow.input.scriptfilter] % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
[STDERR: alfred.workflow.input.scriptfilter] % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (3) <url> malformed
[STDERR: alfred.workflow.input.scriptfilter] % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   508  100   508    0     0    647      0 --:--:-- --:--:-- --:--:--   647
[STDERR: alfred.workflow.input.scriptfilter] % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (3) <url> malformed
[STDERR: alfred.workflow.input.scriptfilter] % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   784  100   784    0     0    756      0  0:00:01  0:00:01 --:--:--   756
[STDERR: alfred.workflow.input.scriptfilter] % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   343  100   343    0     0    404      0 --:--:-- --:--:-- --:--:--   404
[STDERR: alfred.workflow.input.scriptfilter] % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2128  100  2128    0     0   1710      0  0:00:01  0:00:01 --:--:--  1710
[STDERR: alfred.workflow.input.scriptfilter] % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
[STDERR: alfred.workflow.input.scriptfilter] % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   257  100   257    0     0    474      0 --:--:-- --:--:-- --:--:--   474
100   257  100   257    0     0    474      0 --:--:-- --:--:-- --:--:--   474
[STDERR: alfred.workflow.input.scriptfilter] % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   257  100   257    0     0    360      0 --:--:-- --:--:-- --:--:--   360
100   257  100   257    0     0    360      0 --:--:-- --:--:-- --:--:--   360
[STDERR: alfred.workflow.input.scriptfilter] % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 43  2200   43   951    0     0    811      0  0:00:02  0:00:01  0:00:01   812
100  2200  100  2200    0     0   1860      0  0:00:01  0:00:01 --:--:--  1861

Share this post


Link to post

Update.

 

New icon and other small fixes.

 

To update, download the latest version (same URL) or wait a few days (15 or less) and it’ll prompt you to on next usage, since it uses OneUpdater.

Share this post


Link to post

Update.


Option to requery results directly. If you want to use one of the results to refine your query, press ⌘↩ (synonyms for the word) or ⌥↩ (antonyms for the word).


To update, download the latest version (same URL) or wait a few days (15 or less) and it’ll prompt you to on next usage, since it uses OneUpdater.

Share this post


Link to post
11 minutes ago, forgetfulfellow said:

I wish thesaurus.com had an api to hook into, but for now words.bighugelabs.com will do. 

 

Agreed.

Share this post


Link to post

A bit strange - having the same issue as the gentleman above who upon using the syn or ant keyword, it'll prompt me to search Google or other engines rather than generating synonyms. I've ensured that the API key is entered correctly. Any ideas?

Share this post


Link to post

Update.


Warn when there are no matches. That should clear up the confusion.


To update, download the latest version (same URL) or wait a few days (15 or less) and it’ll prompt you to on next usage, since it uses OneUpdater.
 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...