Metadata-Version: 2.1
Name: dingonyms
Version: 0.2
Summary: scrape synonyms from various web services
Home-page: UNKNOWN
License: PD
Keywords: glossary,synonyms,antonyms
Platform: UNKNOWN
Classifier: License :: Public Domain
Classifier: Topic :: Communications :: Email :: Filters
Classifier: Topic :: Internet :: WWW/HTTP :: Indexing/Search
Classifier: Topic :: Text Processing :: Filters
Requires-Python: >= 3.7
Description-Content-Type: text/plain
Requires-Dist: requests (>=2.1)


CLI tool to extract synonyms/antonyms from online services, which formats
them into dict structures (word|alt :: definition; etc.) suitable for `ding`.

It's fairly basic, and not all result sets are structured alike.
Furthermore the extraction schemes aren't likely to last for long; web
scraping is typically a maintenance task.
Only scans for singular words (most services wouldn't return results
otherwise). And might spit out error messages for charset issues as well.

SYNTAX

 dingonyms --thesaurus "Define"
 dingonyms --merriamwebster "find"
 dingonyms --synonym "Wort"
 dingonyms --urban "bazinga"
 dingonyms --openthesaurus "Wort"
 dingonyms --woxikon "Wort"

Flags can be abbreviated and also combined: --thes --merrweb would query two
services at once, or --all even all.
Reason for supporting multiple sites is allowing to fall back on others if
one extraction method breaks.

CONFIG IN ~/.dingrc (take care to change `3` to available index)

 set searchmeth(3,name) {Synonyms}
 set searchmeth(3,type) {3}
 set searchmeth(3,dictfile) {}
 set searchmeth(3,separator) { :: }
 set searchmeth(3,language1) {Group}
 set searchmeth(3,language2) {Synonyms}
 set searchmeth(3,grepcmd) {dingonyms}
 set searchmeth(3,grepopts) {--thesaurus}
 set searchmeth(3,maxlength) {30}
 set searchmeth(3,maxresults) {200}
 set searchmeth(3,minlength) {2}
 set searchmeth(3,shapedresult) {1}
 set searchmeth(3,foldedresult) {0}

You might want to add one entry for each search backend even.
(Unique index, title/name, and grepopts --parameter each.)

SETUP (pip3 install -U dingonyms)

You might have to symlink ~/.local/bin/dingonyms into ~/bin after
installation. pip-package binaries are often only picked up in
terminal/interactive shells.

