{"action":"created","issue":{"url":"https://api.github.com/repos/Ron89/thesaurus_query.vim/issues/1","repository_url":"https://api.github.com/repos/Ron89/thesaurus_query.vim","labels_url":"https://api.github.com/repos/Ron89/thesaurus_query.vim/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Ron89/thesaurus_query.vim/issues/1/comments","events_url":"https://api.github.com/repos/Ron89/thesaurus_query.vim/issues/1/events","html_url":"https://github.com/Ron89/thesaurus_query.vim/issues/1","id":137290018,"number":1,"title":"Multiple thesaurus files","user":{"login":"tcbtcb","id":10586102,"avatar_url":"https://avatars.githubusercontent.com/u/10586102?v=3","gravatar_id":"","url":"https://api.github.com/users/tcbtcb","html_url":"https://github.com/tcbtcb","followers_url":"https://api.github.com/users/tcbtcb/followers","following_url":"https://api.github.com/users/tcbtcb/following{/other_user}","gists_url":"https://api.github.com/users/tcbtcb/gists{/gist_id}","starred_url":"https://api.github.com/users/tcbtcb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcbtcb/subscriptions","organizations_url":"https://api.github.com/users/tcbtcb/orgs","repos_url":"https://api.github.com/users/tcbtcb/repos","events_url":"https://api.github.com/users/tcbtcb/events{/privacy}","received_events_url":"https://api.github.com/users/tcbtcb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-29T15:44:25Z","updated_at":"2016-03-01T04:54:30Z","closed_at":null,"body":"Hello, I arrived here via the Stackoverflow conversation. As I said there, I'm interested in using other sources for the thesaurus file. If anyone who reads this knows of a good one that is available with a CC or copyleft license, please let me know. I can certainly work on formatting it and getting it ready for use with this (or another) vim plugin. "},"comment":{"url":"https://api.github.com/repos/Ron89/thesaurus_query.vim/issues/comments/190545716","html_url":"https://github.com/Ron89/thesaurus_query.vim/issues/1#issuecomment-190545716","issue_url":"https://api.github.com/repos/Ron89/thesaurus_query.vim/issues/1","id":190545716,"user":{"login":"Ron89","id":2696381,"avatar_url":"https://avatars.githubusercontent.com/u/2696381?v=3","gravatar_id":"","url":"https://api.github.com/users/Ron89","html_url":"https://github.com/Ron89","followers_url":"https://api.github.com/users/Ron89/followers","following_url":"https://api.github.com/users/Ron89/following{/other_user}","gists_url":"https://api.github.com/users/Ron89/gists{/gist_id}","starred_url":"https://api.github.com/users/Ron89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ron89/subscriptions","organizations_url":"https://api.github.com/users/Ron89/orgs","repos_url":"https://api.github.com/users/Ron89/repos","events_url":"https://api.github.com/users/Ron89/events{/privacy}","received_events_url":"https://api.github.com/users/Ron89/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T04:54:30Z","updated_at":"2016-03-01T04:54:30Z","body":"Hmm, right. Having more than one thesaurus backend is what I had in mind when I started drafting this plugin. Basically, just assign your thesaurus query backend to `Thesaurus_Query_Handler.query_backend`, and make sure that once your `query_backend.query(\"word\")` is called, a synonym list will be returned in format of layered list:\r\n\r\n        [status, [def_0, [synonym_0, synonym_1, ...]],  [def_1, [synonym_0, synonym_1, ...]], ...]\r\n    status:\r\n        0: normal,  synonym found, list will be returned as \r\n        1: normal, synonym not found, return empty synonym list\r\n        -1: unexpected result from query, return empty synonym list\r\n    synonym list = [def, list wordlist]\r\n        def('str'): definition the synonyms belong to\r\n        wordlist = [synonym_0, synonym_1, ...]: list of words belonging to a same definition"}}