With this small library you can query duden.de for words. It returns all information about a given word from the website.
Download the jar file from the release page.
<dependency>
<groupId>me.gregyyy.jduden</groupId>
<artifactId>jduden</artifactId>
<version>VERSION</version>
</dependency>
This project can only be used as a libary.
Examples:
Word word = JDuden.getWort("Joghurt");
System.out.println("The word " + word.getWord() + " can be written as " + word.getAltSpellings() + ".");
Word word = JDuden.getWort("Leben");
System.out.println("The meaning of life is: " + word.getMeanings().get(0));
Tips:
- JDuden#getWord is case sensitive
- Some information can be null, when there are not provided by duden.de