Git Product home page Git Product logo

alfred-words's Introduction

Alfred Words ๐Ÿ’ฌ

Find synonyms and antonyms from thesaurus.com

Why?

If you're struggling to recall a word or if a word is at the tip of your tongue you can use this workflow to widen your vocabulary and improve your writing. With this workflow, you can find synonyms and antonyms of a word with results from thesaurus.com.

Features

  • ๐Ÿ“™ Results from thesaurus.com.
  • ๐Ÿ’ซ Display search term definition.
  • ๐Ÿ” Filter results.
  • ๐Ÿ“‹ Copy word to clipboard.
  • ๐ŸŒ Modifier to open web search with selected word.

Installation

  1. Download the Alfred Workflow (Words.alfredworkflow).
  2. Double-click to import into Alfred (requires Powerpack).

Usage

  • syn {word} - Find synonyms for {word}.
  • ant {word} - Find antonyms for {word}.

Selected result will be copied to your clipboard.

Modifiers

While holding ctrl and selecting a word, Alfred will do a web search for the selected word.

Demo

More workflows

License

MIT License

alfred-words's People

Contributors

epilande avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

yieldloop

alfred-words's Issues

Issue with Synonyms

I'm getting this error when trying to add synonyms:

 File "./words.py", line 59, in <module>
    fetchWords()
  File "./words.py", line 30, in fetchWords
    definitionData = json_response.get('data', {}).get('definitionData')
AttributeError: 'NoneType' object has no attribute 'get'

I think the API is likely not returning results.

Logs

[13:08:20.481] Logging Started...
[13:08:26.151] Words[[Keyword](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3EBECD7A4B-8683-4A82-AD17-1F9723ECB487)] Processing complete
[13:08:26.153] Words[[Keyword](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3EBECD7A4B-8683-4A82-AD17-1F9723ECB487)] Passing output 'throughput' to [Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3EB7351B97-011B-4FAE-B80E-0AAAD0584ACF)
[13:08:26.153] Words[[Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3EB7351B97-011B-4FAE-B80E-0AAAD0584ACF)] Processing complete
[13:08:26.154] Words[[Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3EB7351B97-011B-4FAE-B80E-0AAAD0584ACF)] Passing output '' to [Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3E896BAE9B-3857-44CD-8386-AC44751E1758)
[13:08:26.172] Words[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3E896BAE9B-3857-44CD-8386-AC44751E1758)] Queuing argument '(null)'
[13:08:26.364] Words[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3E896BAE9B-3857-44CD-8386-AC44751E1758)] Script with argv '(null)' finished
[13:08:26.368] ERROR: Words[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3E896BAE9B-3857-44CD-8386-AC44751E1758)] Code 1: Traceback (most recent call last):
  File "./words.py", line 59, in <module>
    fetchWords()
  File "./words.py", line 30, in fetchWords
    definitionData = json_response.get('data', {}).get('definitionData')
AttributeError: 'NoneType' object has no attribute 'get'
[13:14:24.328] Words[[Keyword](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3ED31BD41C-0A3A-4E10-A973-B5C5570A5272)] Processing complete
[13:14:24.334] Words[[Keyword](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3ED31BD41C-0A3A-4E10-A973-B5C5570A5272)] Passing output 'test' to [Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3E1AAE3365-9064-47D7-A95A-74332F64DBE8)
[13:14:24.334] Words[[Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3E1AAE3365-9064-47D7-A95A-74332F64DBE8)] Processing complete
[13:14:24.335] Words[[Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3E1AAE3365-9064-47D7-A95A-74332F64DBE8)] Passing output '' to [Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3E93006512-872A-416F-9B89-0753FA2DF615)
[13:14:24.349] Words[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3E93006512-872A-416F-9B89-0753FA2DF615)] Queuing argument '(null)'
[13:14:24.804] Words[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3E93006512-872A-416F-9B89-0753FA2DF615)] Script with argv '(null)' finished
[13:14:24.812] Words[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3E93006512-872A-416F-9B89-0753FA2DF615)] {"items": [{"title": "examination, quiz", "subtitle": "\ud83d\udcd6 definition of \"test\"", "arg": "examination, quiz"}, {"title": "conclusion", "arg": "conclusion"}]}
[13:14:39.836] Words[[Keyword](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3EBECD7A4B-8683-4A82-AD17-1F9723ECB487)] Processing complete
[13:14:39.837] Words[[Keyword](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3EBECD7A4B-8683-4A82-AD17-1F9723ECB487)] Passing output 'outpu' to [Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3EB7351B97-011B-4FAE-B80E-0AAAD0584ACF)
[13:14:39.837] Words[[Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3EB7351B97-011B-4FAE-B80E-0AAAD0584ACF)] Processing complete
[13:14:39.838] Words[[Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3EB7351B97-011B-4FAE-B80E-0AAAD0584ACF)] Passing output '' to [Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3E896BAE9B-3857-44CD-8386-AC44751E1758)
[13:14:39.871] Words[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3E896BAE9B-3857-44CD-8386-AC44751E1758)] Queuing argument '(null)'
[13:14:40.441] Words[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3E896BAE9B-3857-44CD-8386-AC44751E1758)] Script with argv '(null)' finished
[13:14:40.451] ERROR: Words[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.D91F0C81-E4BB-49DD-BF83-73ABA89E5857%3E896BAE9B-3857-44CD-8386-AC44751E1758)] Code 1: Traceback (most recent call last):
  File "./words.py", line 59, in <module>
    fetchWords()
  File "./words.py", line 30, in fetchWords
    definitionData = json_response.get('data', {}).get('definitionData')
AttributeError: 'NoneType' object has no attribute 'get'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.