Jump to content

Word Search: A workflow to make you a better writer


Recommended Posts

Word Search is an Alfred 2/3 workflow which exposes powerful word searching utilities. Ultimately, the workflow can be leveraged to widen your vocabulary and make you a better writer.

Quick Reference

  • syn [word] - Broadly searches for words related to a word/phrase.
  • dsyn [word] - Searches for a word’s exact synonyms.
  • ant [word] - Searches for a word’s antonyms.
  • rhyme [word] - Searches a word’s rhymes.
  • describing [word] - Searches for words that describe another word

Usage

Simply type in a command. Selecting a result will copy that word to your clipboard and automatically paste it in the front most app.

Installation

Simply download the latest .alfredworkflow file and double click it to import it to Alfred. Word Search will update on its own.

Demonstration

Searching for words that describe “dog” 

describing-demo-min.thumb.png.8fa8050479a5bfe25b9f4983a9717a16.png

 

This forum doesn't like many images. If you want to see more screenshots, checkout the github page.

Edited by isaacpz
Link to comment
  • 1 year later...
  • 8 months later...

Hi there! I am very grateful for this workflow. It is awesome! Thank you!

 

However, I would like to suggest an idea, since I am not capable enough to do it on my own.

 

Since, I am not a native speaker I make mistakes in prepositions, which follow a word.

 

Maybe, you can expand the functionality of this plugin and add a search for prepositions? It would be really cool to have a context description in case of multiple options.

 

It would be highly appreciable by me.

 

Once again, thank you!

Link to comment
  • 1 year later...

[18:31:30.384] Logging Started...

[18:31:32.751] Word Search[Script Filter] Queuing argument 'l'

[18:31:32.758] Word Search[Script Filter] Script with argv '(null)' finished

[18:31:32.759] ERROR: Word Search[Script Filter] Code 127: /bin/bash: python: command not found

[18:31:32.940] Word Search[Script Filter] Queuing argument 'lo'

[18:31:32.946] Word Search[Script Filter] Script with argv '(null)' finished

[18:31:32.947] ERROR: Word Search[Script Filter] Code 127: /bin/bash: python: command not found

[18:31:33.052] Word Search[Script Filter] Queuing argument 'lov'

[18:31:33.056] Word Search[Script Filter] Script with argv '(null)' finished

[18:31:33.057] ERROR: Word Search[Script Filter] Code 127: /bin/bash: python: command not found

[18:31:33.136] Word Search[Script Filter] Queuing argument 'love'

[18:31:33.202] Word Search[Script Filter] Script with argv '(null)' finished

[18:31:33.205] ERROR: Word Search[Script Filter] Code 127: /bin/bash: python: command not found
I can't get mine to work please help

 

Link to comment

I could change the url to http (rather than https) but would rather not, since it works for me on two computers (1 on Intel, 1 on M1).

You could do this yourself in the similar.py (open in Finder and you'll see it there) and see if that works for you.

 

Alternatively, give this a shot. May fix it for you if it's a local issue.

https://www.dev2qa.com/how-to-fix-python-error-certificate-verify-failed-unable-to-get-local-issuer-certificate-in-mac-os/

Link to comment
  • 3 months later...

***IGNORE*** Little Snitch was blocking the traffic :D 

 

Just found this workflow and was geeked about it. However, it is not working for me as the queries are timing out without returning any results:

OS: 11.6.8

Alfred: 5.0.2 [2073]

Python3 version: 3.10.5

Python2 version: Python 2.7.18

Error: image.png.10a8e9805db0fff43bc4f4fa81e5c666.png

Debug:

[19:42:57.536] ERROR: Word Search[Script Filter] Code 1: .
19:40:26 workflow.py:2093 DEBUG    ---------- Word Search (2.0.2) ----------
19:42:57 workflow.py:2114 ERROR    <urlopen error [Errno 60] Operation timed out>
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1348, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1282, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1328, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1277, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1037, in _send_output
    self.send(msg)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 975, in send
    self.connect()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 941, in connect
    self.sock = self._create_connection(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/socket.py", line 845, in create_connection
    raise err
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/socket.py", line 833, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 60] Operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/nspasov/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.20AD3DCC-BC9D-423C-A9DA-3694ED1E53DB/workflow/workflow.py", line 2107, in run
    func(self)
  File "/Users/nspasov/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.20AD3DCC-BC9D-423C-A9DA-3694ED1E53DB/similar.py", line 16, in main
    words = wf.cached_data(args[0] + "_" + args[1], cacheSearch, max_age=60)
  File "/Users/nspasov/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.20AD3DCC-BC9D-423C-A9DA-3694ED1E53DB/workflow/workflow3.py", line 690, in cached_data
    return super(Workflow3, self).cached_data(name, data_func, max_age)
  File "/Users/nspasov/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.20AD3DCC-BC9D-423C-A9DA-3694ED1E53DB/workflow/workflow.py", line 1723, in cached_data
    data = data_func()
  File "/Users/nspasov/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.20AD3DCC-BC9D-423C-A9DA-3694ED1E53DB/similar.py", line 14, in cacheSearch
    return getSimilar(args[0], args[1])
  File "/Users/nspasov/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.20AD3DCC-BC9D-423C-A9DA-3694ED1E53DB/similar.py", line 29, in getSimilar
    dict = urllib2.urlopen(api_url).read()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 519, in open
    response = self._open(req, data)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 536, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1377, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1351, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 60] Operation timed out>
19:42:57 workflow.py:2136 DEBUG    ---------- finished in 151.045s ----------
[19:42:57.541] Word Search[Script Filter] {
  "items": [
    {
      "title": "Error in workflow 'Word Search'",
      "subtitle": "<urlopen error [Errno 60] Operation timed out>",
      "valid": false,
      "icon": {
        "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
      }
    }
  ]
}

Edited by kozunak
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...