Coder Social home page Coder Social logo

No synonyms found about thesaurus_query.vim HOT 10 CLOSED

ron89 avatar ron89 commented on June 15, 2024
No synonyms found

from thesaurus_query.vim.

Comments (10)

Ron89 avatar Ron89 commented on June 15, 2024

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.

elig0n avatar elig0n commented on June 15, 2024

I have tried that and also :

:let tq_enabled_backends=["datamuse_com"]
:Thesaurus word
No synonym found for "word".

from thesaurus_query.vim.

Ron89 avatar Ron89 commented on June 15, 2024

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.

Ron89 avatar Ron89 commented on June 15, 2024

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.

elig0n avatar elig0n commented on June 15, 2024

Yes, with some values differing.

from thesaurus_query.vim.

elig0n avatar elig0n commented on June 15, 2024

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.

Ron89 avatar Ron89 commented on June 15, 2024

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.

Ron89 avatar Ron89 commented on June 15, 2024

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.

Ron89 avatar Ron89 commented on June 15, 2024

Can I take that this issue is addressed and can close?

from thesaurus_query.vim.

elig0n avatar elig0n commented on June 15, 2024

Alright, thanks

from thesaurus_query.vim.

Related Issues (20)

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.