Comments (10)
Hi @elig0n , I have repeated your symptom. It seems thesaurus.com has changed their page layout again. While I make the change to comply their change, please use "datamuse_com" or any of the local thesaurus source.
let tq_enabled_backends=["thesaurus_com", "openoffice_en", "datamuse_com", "mthesaur_txt"]
Of course, local thesaurus source work only if you have the database downloaded in your file system. "datamuse_com" is an alternative online thesaurus source, and it is still working fine.
from thesaurus_query.vim.
I have tried that and also :
:let tq_enabled_backends=["datamuse_com"]
:Thesaurus word
No synonym found for "word".
from thesaurus_query.vim.
This is strange...
:echo tq_enabled_backends
['datamuse_com']
<leader>cs on word
In line: ... word ...
Candidates for word, found by backend: datamuse_com
Synonyms: (0)articulate (1)intelligence (2)phrase (3)news (4)bible (5)discussion (6)son
(7)parole (8)formulate (9)logos (10)scripture (11)tidings (12)watchword
(13)countersign (14)password (15)word of god (16)give-and-take (17)holy writ
(18)good book (19)holy scripture (20)word of honor
Type number and <Enter> (empty cancels; 'n': use next backend; 'p' use previous backend):
#----------------------------------------
:echo tq_enabled_backends
['datamuse_com']
:Thesaurus word
In line: ... word ...
Candidates for word, found by backend: datamuse_com
Synonyms: (0)articulate (1)intelligence (2)phrase (3)news (4)bible (5)discussion (6)son
(7)parole (8)formulate (9)logos (10)scripture (11)tidings (12)watchword
(13)countersign (14)password (15)word of god (16)give-and-take (17)holy writ
(18)good book (19)holy scripture (20)word of honor
from thesaurus_query.vim.
From the backend, the pluggin is wrapping the API provided by datamuse_com. Could you see if the result from calling following API curl http://api.datamuse.com/words\?rel_syn\=word\&max\=50
is the following json content?
[{"word":"articulate","score":3040},{"word":"intelligence","score":2770},{"word":"phrase","score":2221},{"word":"news","score":1897},{"word":"bible","score":1430},{"word":"discussion","score":1365},{"word":"son","score":1260},{"word":"parole","score":1074},{"word":"formulate","score":1015},{"word":"logos","score":773},{"word":"scripture","score":660},{"word":"tidings","score":601},{"word":"watchword","score":513},{"word":"countersign","score":407},{"word":"password","score":399},{"word":"word of god","score":159},{"word":"give-and-take","score":122},{"word":"holy writ","score":90},{"word":"good book","score":74},{"word":"holy scripture","score":43},{"word":"word of honor","score":33}]
from thesaurus_query.vim.
Yes, with some values differing.
from thesaurus_query.vim.
I do get this when I try to echo tq_enabled_backends :
E121: Undefined variable: tq_enabled_buffers
E15: Invalid expression: tq_enabled_buffers
and through autocompletion I see that I only have tq_map_keys
& tq_use_vim_autocomplete
from thesaurus_query.vim.
It looks like your instance of plugin was not loaded properly... Note that this plugin is an autoload plugin. Most of the variables and functions are loaded only upon your first use in the session.
You might want to troubleshoot your rc file to see if there are behaviour altering code with global effect.
from thesaurus_query.vim.
Sorry I couldn't spare too much time addressing the thesaurus.com issue these days. I have reactivated datamuse.com as part of the default active backends. It should make this plugin functional for basic use.
I will continue leave this issue open until I have the time, or someone contributed a parser for new thesaurus.com html parser.
from thesaurus_query.vim.
Can I take that this issue is addressed and can close?
from thesaurus_query.vim.
Alright, thanks
from thesaurus_query.vim.
Related Issues (20)
- mapping already exists for <leader>cs HOT 4
- apply the word replacement as a Vim action so that it can be repeated with . HOT 1
- highlighting word group in mthesaur.txt that can be replaced HOT 1
- Add a backend for thesaurus.plus HOT 1
- Buffer with this name already exists HOT 7
- Request: Support thesaurus.com HOT 6
- AttributeError: module 'vim' has no attribute 'find_module' (python 3.7) HOT 12
- Change Python dependency handling logic to use Vim's Shell escape
- cilin_txt backend cannot work HOT 5
- ThesaurusQueryReplaceCurrentWord not able to finish it's work HOT 2
- bs4 dependency install request for disabled backend HOT 5
- mapping already exists HOT 4
- Add synonymer.se as a backend HOT 1
- Provide completion function for emerging 'thesaurusfunc'
- NameError with neovim and lua plugin managers HOT 2
- make openoffice_en backend works for other language HOT 1
- Add support for neovim's `vim.ui.select()` HOT 2
- Issue when activate Synonym group truncate HOT 2
- Is the lookup in mthesaur all words in the line or only first? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thesaurus_query.vim.