You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Update `change_query` function to get ActionKeyword from `plugin.json`
4
+
- Add autocomplete/spellcheck for words that aren't found to check for possible misspellings (can be turned off in settings due to it being kind of slow).
5
+
- Make `word_list.txt` not automatically download incase of the use of a custom word list, or not using the feature at all to use less storage.
6
+
- Support for custom word lists.
7
+
- Add search modifier selector
8
+
- Invalid search modifier error now points to this
9
+
- Add parts of speech selector
10
+
- Remove canonical option due to it not doing anything
11
+
- Fix bug with some queries returning errors due to the plugin attempting to log unicode characters with the wrong encoding.
12
+
- Add `scrable` search modifier to get the scrable score of a word.
Copy file name to clipboardExpand all lines: README.md
+110-3Lines changed: 110 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,80 @@
1
1
# Flow.Launcher.Plugin.WordNikDictionary
2
-
This is a plugin for [Flow Launcher](https://github.com/Flow-Launcher/Flow.Launcher) that lets you easily see the definitions of words using [wordnik](https://wordnik.com).
2
+
This is an overcomplicated and feature-packed plugin for [Flow Launcher](https://github.com/Flow-Launcher/Flow.Launcher) that lets you easily see the definitions (among other things) of words using [wordnik](https://wordnik.com).
3
+
4
+
## Table of Contents
5
+
1.[Get an API Key](#get-an-api-key)
6
+
2. Installation
7
+
-[Install via Package Manager](#install-via-package-manager)
8
+
-[Manual Installation](#manual-installation)
9
+
-[Install from a previous release](#install-from-a-previous-release)
10
+
-[Download and build development version](#download-and-build-development-version)
11
+
3.[Features](#features)
12
+
-[Feature List](#feature-list)
13
+
4.[Settings Menu](#settings-menu)
3
14
4
15
## Get an API Key
5
16
To get an API key, head to [developer.wordnik.com](https://developer.wordnik.com/), and create an account. Once you've created your account, you'll be able to fill out a form to request an api key.
6
17
18
+
## Install via Package Manager
19
+
20
+
To Install Wordnik Dictionary through Flow's Plugin Manager, run the following command: `pm install wordnik dictionary`.
21
+
22
+
## Manual Installation
23
+
> [!WARNING]
24
+
> This method is not recommended, only do this if you know what your doing.
25
+
### Install from a previous release
26
+
27
+
1. Download the zipped release file.
28
+
29
+
To download a previously released version, head to the [releases page](https://github.com/cibere/Flow.Launcher.Plugin.WordNikDictionary/releases), find the version you want, and download the zip file.
30
+
31
+
2. Extract the zip file into your plugins folder.
32
+
33
+
You can access your userdata folder through the `Flow Launcher UserData Folder` command in the system commands plugin, from there go into the `Plugins` folder, and create a new folder for your release. Extract the contents of the zip folder into the new folder you've made.
34
+
35
+
3. Restart Flow Launcher
36
+
37
+
Finally you want to restart flow launcher. You can do this via the `Restart Flow Launcher` command in the system commands plugin.
38
+
39
+
### Download and build development version
40
+
41
+
1. Head to your plugins folder.
42
+
43
+
You can access your userdata folder through the `Flow Launcher UserData Folder` command in the system commands plugin, from there go into the `Plugins` folder.
44
+
45
+
2. Clone the repository.
46
+
47
+
> [!NOTE]
48
+
> [git](https://git-scm.com/) must be installed for this
49
+
50
+
Now you must clone the repository, which can be done with the following command: `git clone https://github.com/cibere/Flow.Launcher.Plugin.WordNikDictionary`.
51
+
52
+
3. Setup your environment
53
+
54
+
Head into the newly created folder containing the plugin, and create and activate a venv. Then run the `install_packages.bat` file from that console. That file will update pip, install the runtime libraries, and install the development libraries.
55
+
56
+
4. Restart Flow Launcher
57
+
58
+
Finally you want to restart flow launcher. You can do this via the `Restart Flow Launcher` command in the system commands plugin.
59
+
60
+
7
61
## Features
8
62
9
63
### Feature List
10
64
1.[Get the definition of a word](#get-the-definition-of-a-word)
11
65
2.[Get information about definition of a word](#get-information-about-definition-of-a-word)
12
66
3.[Search Modifiers](#search-modifiers)
13
67
-[Filter by parts of speech](#filter-by-parts-of-speech)
68
+
-[Parts of Speech Selector](#parts-of-speech-selector)
14
69
-[Get the syllables of a word](#get-the-syllables-of-a-word)
15
70
-[Get similiar word by category](#get-similiar-word-by-category)

95
+
#### Parts of Speech Selector
96
+
To select a part of speech from the list of acceptable ones, you can use the `def word!select-pos` command.
97
+

36
98
#### Get the syllables of a word
37
99
We can use the `syllables` search modifier to get the syllables of a word. Syntax: `def word!syllables`
38
100

39
101
#### Get categories of similiar words
40
102
To find the categories of avalible similiar words for a given word, use the following command: `def word!similiar`. To see all of the words in a given category, see the section below.
To find all of the words that are similiar to a word in a specific category, use the following command: `def word!rel-category`. For a list of avalible categories for a given word, see the above section.
To see a list of available search modifiers available, use the `def word!select-modifier` command. From there you have quick access to the various modifiers, and the [Parts of Speech Selector Menu](#parts-of-speech-selector).
110
+

111
+
#### Get Scrabble Score
112
+
You can get the scrabble score of a word by using the `scrabble` modifier like so: `def word!scrabble`. If a word is invalid or not found, a score of `0` is shown.
113
+

114
+
115
+
### Autocomplete Miss-spelled Words
116
+
If you misspell a word, wordnik dictionary uses a list of over 370 thousand words to try and figure out what you were trying to spell, and ranks them by how certain it is. Though the source for the list of words and definitions are different! So there may be differences in the data.
117
+
> [!NOTE]
118
+
> When attempting to use this feature for the first time, you will be prompted to either open up the settings menu to choose the path of a custom word list file, or download one from [dwyl on github](https://github.com/dwyl/english-words).
119
+
120
+

45
121
46
122
### Advanced Error Handler
47
123
@@ -52,4 +128,35 @@ Expected errors will return a short, simple, and stylish error message.
52
128
#### Unexpected Errors
53
129
When unexpected errors occur, our error handler redirects it to the logs and prompts you to notify us by creating a github issue or discord thread with the logfile.
When an invalid advanced search modifier is given, a simple error message is shown, with quick access to the [Search Modifier Selection Menu](#search-modifier-selection-menu)
135
+

136
+
137
+
## Settings Menu
138
+
1. Action Keyword
139
+
140
+
The keyword that activates the plugin, defaults to `def` with the stable release, and `ddef` with the dev version.
141
+
> [!WARNING]
142
+
> Changing this is NOT recommended. Currently, many QOL features require these keywords to stay at the default, otherwise some query changing options will not work properly.
143
+
144
+
2. Wordnik API Key
145
+
146
+
Head to https://developer.wordnik.com to get your API key.
147
+
148
+
3. Number of results to display.
149
+
150
+
Number of results to display. Defaults to 20, you must give an integer.
151
+
152
+
4. Autocomplete Miss-spelled Words
153
+
154
+
If marked yes, wordnik dictionary will attempt to find which word you were trying to spell if a word was not found. This is toggleable because it can be really slow, and you may just want to know if a word was found or not.
155
+
Defaults to checked.
156
+
157
+
5. Location of word list file
158
+
159
+
If you want to use a custom list of words for the autocomplete misspelling feature, you can. Just put the path to the file here, and reload plugin data. Make sure each word is on it's on line.
160
+
Default is blank, and blank means the default file is used. This setting on does anything if the [Autocomplete miss-spelled words setting](#autocomplete-miss-spelled-words) is checked.
0 commit comments