thesaurus_query.vim icon indicating copy to clipboard operation
thesaurus_query.vim copied to clipboard

Add synonymer.se as a backend

Open noooxxi opened this issue 4 years ago • 1 comments

Hi.

Please consider adding support for Swedish via the synonymer.se backend.

Thanks.

noooxxi avatar Jul 31 '20 14:07 noooxxi

Hi @noooxxi ,

Thanks for your interests. To add a backend, you can create a python file in folder autoload/thesaurus_query/backends/. It can be picked up and loaded by the framework as long as this file has query() method to take queries, identifier and language to describe your backend name and language it is for.

For example, you can see the implementation using openthesaurus.de API for German thesaurus query: https://github.com/Ron89/thesaurus_query.vim/blob/master/autoload/thesaurus_query/backends/openthesaurus_de_lookup.py

Ron89 avatar Aug 01 '20 05:08 Ron89