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
- Host: GitHub
- URL: https://github.com/dfa1/wr
- Owner: dfa1
- Created: 2019-09-05T17:09:53.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-24T12:29:40.000Z (over 2 years ago)
- Last Synced: 2023-12-24T13:35:59.598Z (over 2 years ago)
- Topics: cli, java, word-reference
- Language: Java
- Homepage:
- Size: 248 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README
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