An open API service indexing awesome lists of open source software.

https://github.com/dfa1/wr

Java Library for WordReference.com
https://github.com/dfa1/wr

cli java word-reference

Last synced: 10 days ago
JSON representation

Java Library for WordReference.com

Awesome Lists containing this project

README

          

Java Library for WordReference.com
==================================

Java6 library and command line client for WordReference API:
- supports API version 0.8
- JSON over HTTP with optional GZIP compression

Prerequisites
-------------

Build:
- JDK 11
- Apache Maven 2.2+

Run:
- JRE 11
- wordreference API key
http://www.wordreference.com/docs/APIregistration.aspx

Howto for the command line client
---------------------------------

$ mvn clean compile assembly:single
$ echo "your_api_key" > ~/.wr
$ java -jar target/wrcli.jar iten nebbia
category 'original':
nebbia marina, foschia marina
sea mist
camera a nebbia
$

Please note that "iten" is the Italian->English dictionary. See
http://www.wordreference.com/docs/api.aspx for the complete list of
supported dictionaries.

Manual installation
-------------------

$ sudo install -D -m755 target/wrcli.jar /opt/wrcli/wrcli.jar
$ sudo install -m755 bin/wrcli /usr/local/bin/wrcli